Back to index

salome-geom  6.5.0
Public Member Functions | Private Attributes
GEOM_IOperations Class Reference

#include <GEOM_IOperations.hxx>

Inheritance diagram for GEOM_IOperations:
Inheritance graph
[legend]
Collaboration diagram for GEOM_IOperations:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Standard_EXPORT GEOM_IOperations (GEOM_Engine *theEngine, int theDocID)
 default constructor:
Standard_EXPORT ~GEOM_IOperations ()
 destructor
Standard_EXPORT void StartOperation ()
 StartOperation.
Standard_EXPORT void FinishOperation ()
 FinishOperation.
Standard_EXPORT void AbortOperation ()
 AbortOperation.
Standard_EXPORT bool IsDone ()
 IsDone.
Standard_EXPORT void SetNotDone ()
Standard_EXPORT void SetErrorCode (const TCollection_AsciiString &theErrorCode)
Standard_EXPORT char * GetErrorCode ()
Standard_EXPORT GEOM_EngineGetEngine ()
Standard_EXPORT GEOM_SolverGetSolver ()
Standard_EXPORT int GetDocID ()

Private Attributes

TCollection_AsciiString _errorCode
GEOM_Engine_engine
GEOM_Solver_solver
int _docID

Detailed Description

Definition at line 39 of file GEOM_IOperations.hxx.


Constructor & Destructor Documentation

GEOM_IOperations::GEOM_IOperations ( GEOM_Engine theEngine,
int  theDocID 
)

default constructor:

Definition at line 41 of file GEOM_IOperations.cxx.

: _engine(theEngine), _docID(theDocID)
{
  _solver = new GEOM_Solver(theEngine);
}

destructor

Definition at line 53 of file GEOM_IOperations.cxx.

{
  delete _solver;
  MESSAGE("GEOM_IOperations::~GEOM_IOperations");
}

Member Function Documentation

AbortOperation.

Definition at line 89 of file GEOM_IOperations.cxx.

{
  Handle(TDocStd_Document) aDoc = _engine->GetDocument(_docID);
  aDoc->AbortCommand();
}

Here is the call graph for this function:

FinishOperation.

Definition at line 77 of file GEOM_IOperations.cxx.

{
  Handle(TDocStd_Document) aDoc = _engine->GetDocument(_docID);
  if(aDoc->GetUndoLimit() > 0) 
    aDoc->CommitCommand();
}

Here is the call graph for this function:

Definition at line 77 of file GEOM_IOperations.hxx.

{ return _docID; }

Here is the caller graph for this function:

Definition at line 71 of file GEOM_IOperations.hxx.

{ return _engine; }

Here is the caller graph for this function:

Definition at line 66 of file GEOM_IOperations.hxx.

                                       {
    return (char*) _errorCode.ToCString();    
  }

Here is the caller graph for this function:

Definition at line 74 of file GEOM_IOperations.hxx.

{ return _solver; }

IsDone.

Definition at line 101 of file GEOM_IOperations.cxx.

{
  return (_errorCode == OK);
}  
Standard_EXPORT void GEOM_IOperations::SetErrorCode ( const TCollection_AsciiString &  theErrorCode) [inline]

Definition at line 61 of file GEOM_IOperations.hxx.

                                                                                 {
    _errorCode = theErrorCode;    
  } 

Here is the caller graph for this function:

Definition at line 58 of file GEOM_IOperations.hxx.

{ _errorCode = KO; }

StartOperation.

Definition at line 65 of file GEOM_IOperations.cxx.

{
  Handle(TDocStd_Document) aDoc = _engine->GetDocument(_docID);
  if(aDoc->GetUndoLimit() > 0) 
    aDoc->NewCommand();
}

Here is the call graph for this function:


Member Data Documentation

int GEOM_IOperations::_docID [private]

Definition at line 84 of file GEOM_IOperations.hxx.

Definition at line 82 of file GEOM_IOperations.hxx.

TCollection_AsciiString GEOM_IOperations::_errorCode [private]

Definition at line 81 of file GEOM_IOperations.hxx.

Definition at line 83 of file GEOM_IOperations.hxx.


The documentation for this class was generated from the following files: