3 #include "GEOM_IOperations_i.hh"
7 #include "Utils_ExceptHandlers.hxx"
9 #include "GEOM_Engine.hxx"
11 //#include "GEOM_Gen_i.hh"
13 #include <TCollection_AsciiString.hxx>
14 #include <TDF_Tool.hxx>
16 //=============================================================================
18 * default constructor:
20 //=============================================================================
22 GEOM_IOperations_i::GEOM_IOperations_i(PortableServer::POA_ptr thePOA, GEOM::GEOM_Gen_ptr theEngine, ::GEOM_IOperations* theImpl)
23 :SALOME::GenericObj_i( thePOA ), _impl(theImpl), _engine(theEngine)
25 thePOA->activate_object(this);
28 //=============================================================================
32 //=============================================================================
34 GEOM_IOperations_i::~GEOM_IOperations_i()
38 //=============================================================================
42 //=============================================================================
43 CORBA::Boolean GEOM_IOperations_i::IsDone()
45 return _impl->IsDone();
49 //=============================================================================
53 //=============================================================================
54 void GEOM_IOperations_i::SetErrorCode(const char* theErrorCode)
56 _impl->SetErrorCode((char*)theErrorCode);
59 //=============================================================================
63 //=============================================================================
64 char* GEOM_IOperations_i::GetErrorCode()
66 return _impl->GetErrorCode();
69 //=============================================================================
73 //=============================================================================
74 CORBA::Long GEOM_IOperations_i::GetStudyID()
76 return _impl->GetDocID();
79 //=============================================================================
83 //=============================================================================
84 void GEOM_IOperations_i::StartOperation()
86 _impl->StartOperation();
89 //=============================================================================
93 //=============================================================================
94 void GEOM_IOperations_i::FinishOperation()
96 _impl->FinishOperation();
100 //=============================================================================
104 //=============================================================================
105 void GEOM_IOperations_i::AbortOperation()
107 _impl->AbortOperation();
110 //=============================================================================
114 //=============================================================================
115 GEOM::GEOM_Object_ptr GEOM_IOperations_i::GetObject(Handle(GEOM_Object) theObject)
117 if(theObject.IsNull()) return NULL;
118 TCollection_AsciiString anEntry;
119 TDF_Tool::Entry(theObject->GetEntry(), anEntry);
120 GEOM::GEOM_Object_var GO = GEOM::GEOM_Object::_duplicate(_engine->GetObject(theObject->GetDocID(), anEntry.ToCString()));