Version: 9.15.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

◆ VariableTypes

Enumerator
REAL_VAR 
INTEGER_VAR 
BOOLEAN_VAR 
STRING_VAR 

Constructor & Destructor Documentation

◆ SALOMEDSImpl_GenericVariable()

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

Function : SALOMEDSImpl_GenericVariable Purpose :

◆ ~SALOMEDSImpl_GenericVariable()

SALOMEDSImpl_GenericVariable::~SALOMEDSImpl_GenericVariable ( )

Function : ~SALOMEDSImpl_GenericVariable Purpose :

Member Function Documentation

◆ Load()

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

Function : Load Purpose :

Reimplemented in SALOMEDSImpl_ScalarVariable.

Referenced by SALOME_DriverPy.SALOME_DriverPy_i::LoadASCII(), and ReadNoteBookVariables().

◆ Name()

std::string SALOMEDSImpl_GenericVariable::Name ( ) const

Function : Name Purpose :

References _name.

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

◆ Save()

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

Function : Save Purpose :

Reimplemented in SALOMEDSImpl_ScalarVariable.

Referenced by SALOME_DriverPy.SALOME_DriverPy_i::SaveASCII().

◆ SaveToScript()

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

Function : SaveToScript Purpose :

Reimplemented in SALOMEDSImpl_ScalarVariable.

Referenced by SALOMEDSImpl_Study::RemoveVariable().

◆ SaveType()

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

Function : SaveType Purpose :

Reimplemented in SALOMEDSImpl_ScalarVariable.

◆ setName()

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

◆ setType()

bool SALOMEDSImpl_GenericVariable::setType ( const VariableTypes  theType)

Function : setType Purpose :

References _type.

Referenced by uiexception.UiException::__init__(), and KERNEL_PY.kernel.uiexception.UiException::__init__().

◆ String2VariableType()

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

Function : String2VariableType Purpose :

Referenced by ReadNoteBookVariables().

◆ Type()

Field Documentation

◆ _name

std::string SALOMEDSImpl_GenericVariable::_name
private

Referenced by Name(), and setName().

◆ _type