#include <SMESH_NoteBook.hxx>

Public Member Functions | |
| SMESH_ObjectStates (TCollection_AsciiString theType) | |
| Constructor. | |
| virtual | ~SMESH_ObjectStates () |
| Destructor. | |
| void | AddState (const TState &theState) |
| Add new object state. | |
| TState | GetCurrectState () const |
| Return current object state \retval state - Object state (vector of notebook variable) | |
| TAllStates | GetAllStates () const |
| void | IncrementState () |
| TCollection_AsciiString | GetObjectType () const |
Private Attributes | |
| TCollection_AsciiString | _type |
| TAllStates | _states |
| int | _dumpstate |
Definition at line 38 of file SMESH_NoteBook.hxx.
| SMESH_ObjectStates::SMESH_ObjectStates | ( | TCollection_AsciiString | theType | ) |
| SMESH_ObjectStates::~SMESH_ObjectStates | ( | ) | [virtual] |
| void SMESH_ObjectStates::AddState | ( | const TState & | theState | ) |
Add new object state.
| theState | - Object state (vector of notebook variable) |
Definition at line 72 of file SMESH_NoteBook.cxx.
Referenced by SMESH_NoteBook.InitObjectMap().
{
_states.push_back(theState);
}
| TAllStates SMESH_ObjectStates::GetAllStates | ( | ) | const |
Definition at line 97 of file SMESH_NoteBook.cxx.
{
return _states;
}
| TState SMESH_ObjectStates::GetCurrectState | ( | ) | const |
Return current object state \retval state - Object state (vector of notebook variable)
Definition at line 83 of file SMESH_NoteBook.cxx.
Referenced by SMESH_NoteBook.ReplaceVariables(), and SetVariable().
{
if(_states.size() > _dumpstate)
return _states[_dumpstate];
TState empty;
return empty;
}
| TCollection_AsciiString SMESH_ObjectStates::GetObjectType | ( | ) | const |
Definition at line 117 of file SMESH_NoteBook.cxx.
Referenced by SMESH_NoteBook.ReplaceVariables().
{
return _type;
}
| void SMESH_ObjectStates::IncrementState | ( | ) |
Definition at line 107 of file SMESH_NoteBook.cxx.
Referenced by SMESH_NoteBook.ReplaceVariables().
{
_dumpstate++;
}
int SMESH_ObjectStates._dumpstate [private] |
Definition at line 57 of file SMESH_NoteBook.hxx.
TAllStates SMESH_ObjectStates._states [private] |
Definition at line 56 of file SMESH_NoteBook.hxx.
TCollection_AsciiString SMESH_ObjectStates._type [private] |
Definition at line 55 of file SMESH_NoteBook.hxx.