PyObject *o=PyList_GetItem(pyLi,i);
if(PyInt_Check(o))
{
- int val=(int)PyInt_AS_LONG(o);
+ int val=(int)PyLong_AS_LONG(o);
arr[i]=val;
}
else
for(int i=0;i<size;i++)
{
PyObject *o=PyTuple_GetItem(pyLi,i);
- if(PyInt_Check(o))
+ if(PyLong_Check(o))
{
- int val=(int)PyInt_AS_LONG(o);
+ int val=(int)PyLong_AS_LONG(o);
arr[i]=val;
}
else
std::size_t sz(arr.size());
PyObject *ret(PyList_New(sz));
for(std::size_t i=0;i<sz;i++)
- PyList_SetItem(ret,i,PyInt_FromLong(arr[i]));
+ PyList_SetItem(ret,i,PyLong_FromLong(arr[i]));
return ret;
}
std::size_t sz2(zeArr->size());
PyObject *ret2(PyList_New(sz2));
for(std::size_t i2=0;i2<sz2;i2++)
- PyList_SetItem(ret2,i2,PyInt_FromLong((*zeArr)[i2]));
+ PyList_SetItem(ret2,i2,PyLong_FromLong((*zeArr)[i2]));
PyList_SetItem(ret,i,ret2);
}
else
}
else if(PyInt_Check(parameter))
{
- YACSEvalAnyInt tmp((int)PyInt_AsLong(parameter));
+ YACSEvalAnyInt tmp((int)PyLong_AsLong(parameter));
self->setDefaultValue(&tmp);
}
else
{
public:
std::string getName() const;
+ bool setQOfInterestStatus(bool newStatus);
+ bool isQOfInterest() const;
private:
YACSEvalOutputPort();
};
std::vector<std::string> listOfPropertyKeys() const;
std::string getValueOfKey(const char *key) const;
void setProperty(const std::string& key, const std::string &value);
+ std::string getName() const;
private:
YACSEvalVirtualYACSContainer();
};
YACSEvalResource();
};
+class YACSEvalParamsForCluster
+{
+public:
+ bool getExclusiveness() const;
+ void setExclusiveness(bool newStatus);
+ std::string getRemoteWorkingDir();
+ void setRemoteWorkingDir(const std::string& remoteWorkingDir);
+ std::string getLocalWorkingDir();
+ void setLocalWorkingDir(const std::string& localWorkingDir);
+ std::string getWCKey() const;
+ void setWCKey(const std::string& wcKey);
+ unsigned int getNbProcs() const;
+ void setNbProcs(unsigned int nbProcs);
+ void setMaxDuration(const std::string& maxDuration);
+ std::string getMaxDuration() const;
+ void checkConsistency() const;
+private:
+ YACSEvalParamsForCluster();
+};
+
class YACSEvalListOfResources
{
public:
void setWantedMachine(const std::string& machine);
std::size_t size() const;
bool isInteractive() const;
+ bool isMachineInteractive(const std::string& machine) const;
YACSEvalResource *at(std::size_t i) const;
unsigned int getNumberOfProcsDeclared() const;
+ void checkOKForRun() const;
+ YACSEvalParamsForCluster& getAddParamsForCluster();
%extend
{
std::size_t __len__() const
~YACSEvalSession();
void launch();
bool isLaunched() const;
+ bool isAttached() const;
+ bool isAlreadyPyThreadSaved() const;
+ bool getForcedPyThreadSavedStatus() const;
+ void setForcedPyThreadSavedStatus(bool status);
void checkLaunched() const;
int getPort() const;
std::string getCorbaConfigFileName() const;
public:
bool getStopASAPAfterErrorStatus() const;
void setStopASAPAfterErrorStatus(bool newStatus);
+ bool getFetchRemoteDirForClusterStatus() const;
+ void setFetchRemoteDirForClusterStatus(bool newStatus);
private:
YACSEvalExecParams();
};
PyObject *ret0Py(ret0?Py_True:Py_False);
Py_XINCREF(ret0Py);
PyTuple_SetItem(ret,0,ret0Py);
- PyTuple_SetItem(ret,1,PyInt_FromLong(ret1));
+ PyTuple_SetItem(ret,1,PyLong_FromLong(ret1));
return ret;
}
}