Changeset 1450 in Sophya for trunk/SophyaPI/PIext/cxxexecutor.cc


Ignore:
Timestamp:
Apr 6, 2001, 11:52:28 AM (24 years ago)
Author:
ansari
Message:

Compil PIext pour PEIDA ... Reza 6/4/2001

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/cxxexecutor.cc

    r1319 r1450  
    426426  os<<obtype<<"* "<<stmp
    427427    <<" = dynamic_cast< "<<obtype<<" * >(omg.GetObj(___nomobj));"<<endl;
     428#ifdef SANS_EVOLPLANCK
     429  os<<"if("<<stmp<<"==NULL) { \n"
     430    <<" cerr << \"CxxExecutor::PutObject: Non existing object "
     431    <<" ... please update file \\n \" ;"
     432    <<" throw nullPtrErr ; \n } "<<endl;
     433#else
    428434  os<<"if("<<stmp<<"==NULL) throw NullPtrError"
    429435    <<"(\"CxxExecutor::PutObject: Non existing object "<<nobj
    430436    <<"... please update file\");"<<endl;
     437#endif
    431438  os<<obtype<<"& "<<nobj<<" = (*"<<stmp<<");"<<endl<<endl;
    432439}
Note: See TracChangeset for help on using the changeset viewer.