boolean setAll();
string getCommandToRun() ;
- long compute(out string errStr);
+ //long compute(out string errStr);
+ long compute();
+ string getErrMsg();
string getFileName() ;
string getExeName();
void copyMgAdaptHypothesisData(in MgAdaptHypothesisData f ) ;
char* errStr;
try
{
- err = getModel()->compute(errStr);
+ err = getModel()->compute();
+ errStr = getModel()->getErrMsg();
std::string msg = err == 0 ? " ok" : std::string("Not ok \n")+CORBA::string_dup(errStr) ;
}
catch (const std::exception& e)
return CORBA::string_dup(myMgAdapt->getCommandToRun().c_str());
}
-CORBA::Long MG_ADAPT_i::compute(::CORBA::String_out errStr)
+//~CORBA::Long MG_ADAPT_i::compute(::CORBA::String_out errStr)
+//~{
+ //~std::string err("");
+ //~CORBA::Long ret = myMgAdapt->compute(err);
+ //~errStr = err.c_str();
+ //~return ret;
+//~}
+CORBA::Long MG_ADAPT_i::compute()
{
- std::string err("");
- CORBA::Long ret = myMgAdapt->compute(err);
- errStr = err.c_str();
+ errStr = "";
+ CORBA::Long ret = myMgAdapt->compute(errStr);
+ //~errStr = err.c_str();
return ret;
}
+char* MG_ADAPT_i::getErrMsg()
+{
+ return CORBA::string_dup(errStr.c_str());
+}
char* MG_ADAPT_i::getFileName()
{
return CORBA::string_dup(myMgAdapt->getFileName().c_str());
bool setAll();
char* getCommandToRun() ;
- CORBA::Long compute(::CORBA::String_out errStr);
+ //~CORBA::Long compute(::CORBA::String_out errStr);
+ CORBA::Long compute();
char* getFileName();
char* getExeName();
void copyMgAdaptHypothesisData( const SMESH::MgAdaptHypothesisData& data ) ;
void copyHypothesisDataToImpl(const SMESH::MgAdaptHypothesisData& from, ::MG_ADAPT::MgAdaptHypothesisData* to) const;
//~TOptionValues getOptionValues() const;
//~const TOptionValues& getCustomOptionValues() const ;
+ char* getErrMsg();
private:
::MG_ADAPT::MgAdapt* myMgAdapt;
-
+ std::string errStr;
//~CORBA::ORB_ptr _orb;
//~ADAPT::ADAPT_Gen_var _gen_i;