//Parse the response and get the filename
string aTmpDir = "/tmp";
- string aClientFileDir = aTmpDir + "/SimanSalome/" + myUser + "/download/";
+ string aClientFileDir = aTmpDir + "/SimanSalome/" + myStudy + "/" + myScenario + "/" + myUser + "/";
+ //string aClientFileDir = aTmpDir + "/SimanSalome/" + myUser + "/download/";
string aClientFilePath = aClientFileDir + aResponseFileName;
//Cretae the directories
void SimanIO_Link::StoreConf(/*const*/ SimanIO_Configuration& theConf)
{
+ cout << "StoreConf method is started\n";
char* aSimanHost = getenv("SIMAN_WS_HOST");
if (aSimanHost == NULL)
{
//Prepare salome-siman.conf file
string aTmpDir = "/tmp";
- string aClientFileDir = aTmpDir + "/SimanSalome/" + myUser + "/download/";
+ string aClientFileDir = aTmpDir + "/SimanSalome/" + myStudy + "/" + myScenario + "/" + myUser + "/";
+ //string aClientFileDir = aTmpDir + "/SimanSalome/" + myUser + "/download/";
string aClientFilePath = aClientFileDir + "salome-siman.conf";
ofstream aSalomeSimanFile;
aSalomeSimanFile.open(aClientFilePath.c_str());
aCheckInRequest->setArgs1(atoll(myUser.c_str()));
aCheckInResponse = aStub->checkIn(aCheckInRequest);
-
+ //Delete the directories
+ system(("rm -r " + aTmpDir + "/SimanSalome/").c_str());
+
+ //Delete objects
+ delete aPutFileRequest;
+ delete aPutFileResponse;
+ delete aCheckInRequest;
+ delete aCheckInResponse;
+ delete aStub;
}