1 #include <Standard_Stream.hxx>
3 #include <GEOM_IOperations.hxx>
7 #include <Utils_ExceptHandlers.hxx>
9 #include <TDataStd_TreeNode.hxx>
10 #include <TDataStd_ChildNodeIterator.hxx>
11 #include <TDF_TagSource.hxx>
13 //=============================================================================
15 * default constructor:
17 //=============================================================================
19 GEOM_IOperations::GEOM_IOperations(GEOM_Engine* theEngine, int theDocID)
20 : _engine(theEngine), _docID(theDocID)
22 _solver = new GEOM_Solver(theEngine);
25 //=============================================================================
29 //=============================================================================
31 GEOM_IOperations::~GEOM_IOperations()
34 MESSAGE("GEOM_IOperations::~GEOM_IOperations");
38 //=============================================================================
42 //=============================================================================
43 void GEOM_IOperations::StartOperation()
45 Handle(TDocStd_Document) aDoc = _engine->GetDocument(_docID);
46 if(aDoc->GetUndoLimit() > 0)
50 //=============================================================================
54 //=============================================================================
55 void GEOM_IOperations::FinishOperation()
57 Handle(TDocStd_Document) aDoc = _engine->GetDocument(_docID);
58 if(aDoc->GetUndoLimit() > 0)
59 aDoc->CommitCommand();
62 //=============================================================================
66 //=============================================================================
67 void GEOM_IOperations::AbortOperation()
69 Handle(TDocStd_Document) aDoc = _engine->GetDocument(_docID);
74 //=============================================================================
78 //=============================================================================
79 bool GEOM_IOperations::IsDone()
81 return (_errorCode == OK);