}
- void BatchManager_eClient::importOutputFiles( const Job & job, const string directory ) throw(EmulationException)
+ void BatchManager_eClient::importOutputFiles( const Job & job, const string directory )
{
Parametre params = job.getParametre();
Versatile V = params[OUTFILE];
}
- MpiImpl *BatchManager_eClient::FactoryMpiImpl(string mpiImpl) throw(EmulationException)
+ MpiImpl *BatchManager_eClient::FactoryMpiImpl(string mpiImpl)
{
if(mpiImpl == "lam")
return new MpiImpl_LAM();
BatchManager_eClient(const Batch::FactBatchManager * parent, const char* host="localhost",
CommunicationProtocolType protocolType = SSH, const char* mpiImpl="mpich1");
virtual ~BatchManager_eClient();
- void importOutputFiles( const Job & job, const std::string directory ) throw(EmulationException);
+ void importOutputFiles( const Job & job, const std::string directory );
void setUsername(const std::string & username) {_username = username;}
std::string generateTemporaryFileName(const std::string & prefix);
std::string createAndOpenTemporaryFile(const std::string & prefix, std::ofstream & outputStream);
- MpiImpl* FactoryMpiImpl(std::string mpiImpl) throw(EmulationException);
+ MpiImpl* FactoryMpiImpl(std::string mpiImpl);
void exportInputFiles(const Job & job);
const std::string & getTmpDir();
==========
Certaines classes ont des methodes surchargees et SWIG ne gere pas bien
ces surcharges, d'ou un probleme d'utilisation en Python de celles-ci.
- En bref, �a ne marche pas et il faudra corriger le probleme...
+ En bref, ca ne marche pas et il faudra corriger le probleme...
TODO : corriger le probleme de surcharge des methodes en Python
#include "Batch_JobId.hxx"
#include "Batch_JobInfo.hxx"
+#include "Batch_CommunicationProtocol.hxx"
+
#include "Batch_BatchManager.hxx"
+#include "Batch_BatchManager_eClient.hxx"
#include "Batch_BatchManagerCatalog.hxx"
#include "Batch_FactBatchManager.hxx"
+#include "Batch_FactBatchManager_eClient.hxx"
%}
/* Les classes exportees en Python */
%include Batch_JobId.hxx
%include Batch_JobInfo.hxx
+%include Batch_CommunicationProtocol.hxx
+
%include Batch_BatchManager.hxx
+%include Batch_BatchManager_eClient.hxx
%include Batch_BatchManagerCatalog.hxx
%include Batch_FactBatchManager.hxx
+%include Batch_FactBatchManager_eClient.hxx
%include Batch_Constants.hxx
$1 = E;
}
+// Dynamic cast to FactBatchManager_eClient if necessary
+%typemap(out) Batch::FactBatchManager *
+{
+ if(dynamic_cast<Batch::FactBatchManager_eClient *>($1))
+ $result=SWIG_NewPointerObj((void*)$1,$descriptor(Batch::FactBatchManager_eClient *),$owner);
+ else
+ $result=SWIG_NewPointerObj((void*)$1,$descriptor(Batch::FactBatchManager *),$owner);
+}