Changeset 227 in PSPA for Interface_Web/trunk/pspaWT/include


Ignore:
Timestamp:
Dec 30, 2012, 12:11:42 PM (11 years ago)
Author:
lemeur
Message:

usage de WApplication::appRoot() pour WORKINGAREA

Location:
Interface_Web/trunk/pspaWT/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/include/GWt_pspaApplication.h

    r226 r227  
    3838 dataManager* dtmanage_;
    3939 string nameOfCase_;
    40 
     40 string workingDir_;
    4141 WDialog* dialogSave_;
    4242 WDialog* dialogOpen_;
  • Interface_Web/trunk/pspaWT/include/dataManager.h

    r226 r227  
    2121  vector<sectionToExecute*> jobList_;
    2222
    23   bool createInputFileParmela( unsigned int numeroDeb, unsigned int numerpFin);
    24   bool createInputFileTransport( unsigned int numeroDeb, unsigned int numeroFin);
     23  bool createInputFileParmela( unsigned int numeroDeb, unsigned int numerpFin, string workingDir);
     24  bool createInputFileTransport( unsigned int numeroDeb, unsigned int numeroFin, string workingDir);
    2525  void removeFile(string nameOfFile);
    2626  void clearSectionToExecute();
     
    4848  abstractElement* addElement(typedElement elemType);
    4949  string getLabelFromElementNumero(int numero);
    50   void initializeExecution();
     50  void initializeExecution(string workingDir);
    5151  string checkExecute();
    52   bool executeTransport( unsigned int indexDeb, unsigned int indexFin, string& resul);
    53   bool executeParmela( unsigned int indexDeb, unsigned int indexFin, string& resul);
    54   bool executeAll(string& resul);
    55   void saveConfiguration(string nameOfFile);
    56   bool restoreElements(string inputFileName);
     52  bool executeTransport( unsigned int indexDeb, unsigned int indexFin, string workingDir,  string& resul);
     53  bool executeParmela( unsigned int indexDeb, unsigned int indexFin, string workingDir, string& resul);
     54  bool executeAll(string workingDir, string& resul);
     55  void saveConfiguration(string workingDir, string nameOfFile);
     56  bool restoreElements(string workingDir, string inputFileName);
    5757  void donneesRmsEnveloppe( string type, unsigned int numeroDeb, unsigned int numeroFin, vector<double>& xcor, vector<double>& ycor);
    5858};
  • Interface_Web/trunk/pspaWT/include/environmentVariables.h

    r121 r227  
    44#include <stdlib.h>
    55#include <stdio.h>
    6 static string WHERE_WE_ARE = string(getenv("PWD"));
    7 static string WORKINGAREA =  WHERE_WE_ARE.append("/workingArea/");
    8 
     6//static string WHERE_WE_ARE = string(getenv("PWD"));
     7//static string WORKINGAREA =  WHERE_WE_ARE.append("/workingArea/");
     8static string WORKINGAREA = "../workingArea/";
    99#endif
    1010
  • Interface_Web/trunk/pspaWT/include/particleBeam.h

    r226 r227  
    6363  virtual ~particleBeam() {;}
    6464
    65   bool setFromParmela(unsigned numeroElement,double referencefrequency);
     65  bool setFromParmela(string workingDir,unsigned numeroElement,double referencefrequency);
    6666  void buildMomentRepresentation();
    6767
    68   bool  setFromTransport(string elementLabel, const nomdElements elem);
     68  bool  setFromTransport(string workingDir, string elementLabel, const nomdElements elem);
    6969
    7070  //  void setFromBeamParameters(double x, double xp, double y, double yp, double dl, double del, double P0);
Note: See TracChangeset for help on using the changeset viewer.