X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2Fevalyfx%2FYACSEvalResource.hxx;h=02939e26d16239991f7e69baea1a894d8f0c68e1;hb=e2b7b63bbc98ea8773a58495787e7fb7233baa5a;hp=19d06d3270e938db89898b9ac4cbfd8145efaf5e;hpb=fb3a657d28982730e1657cbef5f50420029c49b9;p=modules%2Fyacs.git diff --git a/src/evalyfx/YACSEvalResource.hxx b/src/evalyfx/YACSEvalResource.hxx index 19d06d327..02939e26d 100644 --- a/src/evalyfx/YACSEvalResource.hxx +++ b/src/evalyfx/YACSEvalResource.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2012-2015 CEA/DEN, EDF R&D +// Copyright (C) 2012-2016 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -15,7 +15,7 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com -// +// // Author : Anthony Geay (EDF R&D) #ifndef __YACSEVALRESOURCE_HXX__ @@ -26,6 +26,7 @@ #include #include #include +#include #ifdef WIN32 #define NOMINMAX @@ -136,7 +137,7 @@ class YACSEvalParamsForCluster public: YACSEvalParamsForCluster():_exclusiveness(false),_nbOfProcs(1) { } bool getExclusiveness() const { return _exclusiveness; } - void setExclusiveness(bool newStatus); + YACSEVALYFX_EXPORT void setExclusiveness(bool newStatus); std::string getRemoteWorkingDir() const { return _remoteWorkingDir; } void setRemoteWorkingDir(const std::string& remoteWorkingDir) { _remoteWorkingDir=remoteWorkingDir; } std::string getLocalWorkingDir() const { return _localWorkingDir; } @@ -147,7 +148,9 @@ public: void setNbProcs(unsigned int nbProcs) { _nbOfProcs=nbProcs; } void setMaxDuration(const std::string& maxDuration) { _maxDuration=maxDuration; } std::string getMaxDuration() const { return _maxDuration; } - void checkConsistency() const; + std::list& getInFiles(){ return _in_files;} + const std::list& getInFiles()const { return _in_files;} + YACSEVALYFX_EXPORT void checkConsistency() const; private: bool _exclusiveness; std::string _remoteWorkingDir; @@ -155,6 +158,7 @@ private: std::string _wcKey; std::string _maxDuration; unsigned int _nbOfProcs; + std::list _in_files; }; class YACSEvalListOfResources : public YACSEvalNonConstLocker @@ -173,6 +177,8 @@ public: YACSEVALYFX_EXPORT const YACSEvalParamsForCluster& getAddParamsForCluster() const { return _paramsInCaseOfCluster; } void apply(); YACSEVALYFX_EXPORT ~YACSEvalListOfResources(); +public:// info only + YACSEVALYFX_EXPORT bool isMachineInteractive(const std::string& machine) const; public: ResourcesManager_cpp *getCatalogEntry() const { return _rm; } YACS::ENGINE::DeploymentTree *getDeploymentTree() const { return _dt; }