#include <SMESH_NoteBook.hxx>

Public Types | |
| typedef std::map < TCollection_AsciiString, TCollection_AsciiString > | TDistributionMap |
Public Member Functions | |
| LayerDistributionStates () | |
| Constructor. | |
| virtual | ~LayerDistributionStates () |
| Destructor. | |
| void | AddDistribution (const TCollection_AsciiString &theDistribution) |
| AddDistribution. | |
| bool | HasDistribution (const TCollection_AsciiString &theDistribution) const |
| HasDistribution. | |
| bool | SetDistributionType (const TCollection_AsciiString &theDistribution, const TCollection_AsciiString &theType) |
| SetDistributionType. | |
| TCollection_AsciiString | GetDistributionType (const TCollection_AsciiString &theDistribution) const |
| GetDistributionType. | |
| 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 | |
| TDistributionMap | _distributions |
Definition at line 60 of file SMESH_NoteBook.hxx.
| typedef std::map<TCollection_AsciiString,TCollection_AsciiString> LayerDistributionStates.TDistributionMap |
Definition at line 63 of file SMESH_NoteBook.hxx.
| LayerDistributionStates::LayerDistributionStates | ( | ) |
Constructor.
Definition at line 127 of file SMESH_NoteBook.cxx.
: SMESH_ObjectStates("LayerDistribution") { }
| LayerDistributionStates::~LayerDistributionStates | ( | ) | [virtual] |
| void LayerDistributionStates::AddDistribution | ( | const TCollection_AsciiString & | theDistribution | ) |
AddDistribution.
Definition at line 146 of file SMESH_NoteBook.cxx.
References _distributions.
Referenced by SMESH_NoteBook.ReplaceVariables().
{
_distributions.insert(pair<TCollection_AsciiString,TCollection_AsciiString>(theDistribution,""));
}
| void SMESH_ObjectStates::AddState | ( | const TState & | theState | ) | [inherited] |
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 [inherited] |
Definition at line 97 of file SMESH_NoteBook.cxx.
{
return _states;
}
| TState SMESH_ObjectStates::GetCurrectState | ( | ) | const [inherited] |
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 LayerDistributionStates::GetDistributionType | ( | const TCollection_AsciiString & | theDistribution | ) | const |
GetDistributionType.
Definition at line 182 of file SMESH_NoteBook.cxx.
References _distributions.
{
TDistributionMap::const_iterator it = _distributions.find(theDistribution);
return (it == _distributions.end()) ? TCollection_AsciiString() : (*it).second;
}
| TCollection_AsciiString SMESH_ObjectStates::GetObjectType | ( | ) | const [inherited] |
Definition at line 117 of file SMESH_NoteBook.cxx.
Referenced by SMESH_NoteBook.ReplaceVariables().
{
return _type;
}
| bool LayerDistributionStates::HasDistribution | ( | const TCollection_AsciiString & | theDistribution | ) | const |
HasDistribution.
Definition at line 156 of file SMESH_NoteBook.cxx.
References _distributions.
{
return _distributions.find(theDistribution) != _distributions.end();
}
| void SMESH_ObjectStates::IncrementState | ( | ) | [inherited] |
Definition at line 107 of file SMESH_NoteBook.cxx.
Referenced by SMESH_NoteBook.ReplaceVariables().
{
_dumpstate++;
}
| bool LayerDistributionStates::SetDistributionType | ( | const TCollection_AsciiString & | theDistribution, |
| const TCollection_AsciiString & | theType | ||
| ) |
SetDistributionType.
Definition at line 166 of file SMESH_NoteBook.cxx.
References _distributions.
{
TDistributionMap::iterator it = _distributions.find(theDistribution);
if(it == _distributions.end())
return false;
(*it).second = theType;
return true;
}
Definition at line 76 of file SMESH_NoteBook.hxx.
Referenced by AddDistribution(), GetDistributionType(), HasDistribution(), and SetDistributionType().