Version: 6.3.1
Public Member Functions | Private Attributes

SMESH_ObjectStates Class Reference

#include <SMESH_NoteBook.hxx>

Inheritance diagram for SMESH_ObjectStates:
Inheritance graph
[legend]

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

Detailed Description

Definition at line 38 of file SMESH_NoteBook.hxx.


Constructor & Destructor Documentation

SMESH_ObjectStates::SMESH_ObjectStates ( TCollection_AsciiString  theType)

Constructor.

Definition at line 51 of file SMESH_NoteBook.cxx.

{
  _type = theType;
  _dumpstate = 0;
}
SMESH_ObjectStates::~SMESH_ObjectStates ( ) [virtual]

Destructor.

Definition at line 62 of file SMESH_NoteBook.cxx.

{
}

Member Function Documentation

void SMESH_ObjectStates::AddState ( const TState theState)

Add new object state.

Parameters:
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++;
}

Field Documentation

Definition at line 57 of file SMESH_NoteBook.hxx.

Definition at line 56 of file SMESH_NoteBook.hxx.

TCollection_AsciiString SMESH_ObjectStates._type [private]

Definition at line 55 of file SMESH_NoteBook.hxx.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS