-// Copyright (C) 2012-2015 CEA/DEN, EDF R&D
+// Copyright (C) 2012-2022 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
// 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__
#include <map>
#include <string>
#include <vector>
+#include <list>
#ifdef WIN32
#define NOMINMAX
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; }
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<std::string>& getInFiles(){ return _in_files;}
+ const std::list<std::string>& getInFiles()const { return _in_files;}
+ YACSEVALYFX_EXPORT void checkConsistency() const;
private:
bool _exclusiveness;
std::string _remoteWorkingDir;
std::string _wcKey;
std::string _maxDuration;
unsigned int _nbOfProcs;
+ std::list<std::string> _in_files;
};
class YACSEvalListOfResources : public YACSEvalNonConstLocker
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; }