Version: 8.3.0
SALOMEDSImpl_GenericVariable Class Reference

#include <SALOMEDSImpl_GenericVariable.hxx>

Inheritance diagram for SALOMEDSImpl_GenericVariable:

Public Types

enum  VariableTypes { REAL_VAR, INTEGER_VAR, BOOLEAN_VAR, STRING_VAR }
 

Public Member Functions

 SALOMEDSImpl_GenericVariable (VariableTypes theType, const std::string &theName)
 Function : SALOMEDSImpl_GenericVariable Purpose : More...
 
 ~SALOMEDSImpl_GenericVariable ()
 Function : ~SALOMEDSImpl_GenericVariable Purpose : More...
 
VariableTypes Type () const
 Function : Type Purpose : More...
 
std::string Name () const
 Function : Name Purpose : More...
 
bool setType (const VariableTypes theType)
 Function : setType Purpose : More...
 
bool setName (const std::string &theName)
 Function : setName Purpose : More...
 
virtual std::string Save () const
 Function : Save Purpose : More...
 
virtual std::string SaveToScript () const
 Function : SaveToScript Purpose : More...
 
virtual std::string SaveType () const
 Function : SaveType Purpose : More...
 
virtual void Load (const std::string &theStrValue)
 Function : Load Purpose : More...
 

Static Public Member Functions

static VariableTypes String2VariableType (const std::string &theStrType)
 Function : String2VariableType Purpose : More...
 

Private Attributes

VariableTypes _type
 
std::string _name
 

Member Enumeration Documentation

Enumerator
REAL_VAR 
INTEGER_VAR 
BOOLEAN_VAR 
STRING_VAR 

Constructor & Destructor Documentation

SALOMEDSImpl_GenericVariable::SALOMEDSImpl_GenericVariable ( SALOMEDSImpl_GenericVariable::VariableTypes  theType,
const std::string &  theName 
)

Function : SALOMEDSImpl_GenericVariable Purpose :

SALOMEDSImpl_GenericVariable::~SALOMEDSImpl_GenericVariable ( )

Function : ~SALOMEDSImpl_GenericVariable Purpose :

Member Function Documentation

void SALOMEDSImpl_GenericVariable::Load ( const std::string &  theStrValue)
virtual

Function : Load Purpose :

Reimplemented in SALOMEDSImpl_ScalarVariable.

Referenced by ReadNoteBookVariables().

std::string SALOMEDSImpl_GenericVariable::Name ( ) const

Function : Name Purpose :

References _name.

Referenced by SALOMEDSImpl_Study::RemoveVariable(), and SALOMEDSImpl_Study::RenameVariable().

std::string SALOMEDSImpl_GenericVariable::Save ( ) const
virtual

Function : Save Purpose :

Reimplemented in SALOMEDSImpl_ScalarVariable.

std::string SALOMEDSImpl_GenericVariable::SaveToScript ( ) const
virtual

Function : SaveToScript Purpose :

Reimplemented in SALOMEDSImpl_ScalarVariable.

Referenced by SALOMEDSImpl_Study::RemoveVariable().

std::string SALOMEDSImpl_GenericVariable::SaveType ( ) const
virtual

Function : SaveType Purpose :

Reimplemented in SALOMEDSImpl_ScalarVariable.

bool SALOMEDSImpl_GenericVariable::setName ( const std::string &  theName)

Function : setName Purpose :

References _name.

Referenced by SALOMEDSImpl_Study::RenameVariable().

bool SALOMEDSImpl_GenericVariable::setType ( const VariableTypes  theType)

Function : setType Purpose :

References _type.

SALOMEDSImpl_GenericVariable::VariableTypes SALOMEDSImpl_GenericVariable::String2VariableType ( const std::string &  theStrType)
static

Function : String2VariableType Purpose :

Referenced by ReadNoteBookVariables().

Field Documentation

std::string SALOMEDSImpl_GenericVariable::_name
private

Referenced by Name(), and setName().

VariableTypes SALOMEDSImpl_GenericVariable::_type
private

Referenced by setType(), and Type().