Class which an interface to store the parameters of the objects. More...
#include <SALOMEDSImpl_IParameters.hxx>
Public Member Functions | |
| SALOMEDSImpl_IParameters (SALOMEDSImpl_AttributeParameter *ap) | |
| Constructor.  More... | |
| virtual | ~SALOMEDSImpl_IParameters () | 
| virtual int | append (const std::string &listName, const std::string &value) | 
| Appends a string value to a named list.  More... | |
| virtual int | nbValues (const std::string &listName) | 
| Returns a number elements in the list.  More... | |
| virtual std::vector< std::string > | getValues (const std::string &listName) | 
| Returns a list of values in the list.  More... | |
| virtual std::string | getValue (const std::string &listName, int index) | 
| Returns a value with given index, where index is in range [0:nbValues-1].  More... | |
| virtual std::vector< std::string > | getLists () | 
| Returns a list all entries lists.  More... | |
| virtual void | setParameter (const std::string &entry, const std::string ¶meterName, const std::string &value) | 
| Sets a new named parameter value for the given entry.  More... | |
| virtual std::string | getParameter (const std::string &entry, const std::string ¶meterName) | 
| Gets a named parameter value for the given entry.  More... | |
| virtual void | setIdParameter (const std::string &entry, const std::string &value) | 
| Sets an id parameter value for the given entry.  More... | |
| virtual std::string | getIdParameter (const std::string &entry) | 
| Gets an id parameter value for the given entry.  More... | |
| virtual std::vector< std::string > | getAllParameterNames (const std::string &entry) | 
| Returns all parameter names of the given entry.  More... | |
| virtual std::vector< std::string > | getAllParameterValues (const std::string &entry) | 
| Returns all parameter values of the given entry.  More... | |
| virtual int | getNbParameters (const std::string &entry) | 
| Returns a number of parameters of the given entry.  More... | |
| virtual std::vector< std::string > | getEntries () | 
| Returns a list all entries.  More... | |
| virtual void | setProperty (const std::string &name, const std::string &value) | 
| Sets a global named property value.  More... | |
| virtual std::string | getProperty (const std::string &name) | 
| Gets a value of global named property.  More... | |
| virtual std::vector< std::string > | getProperties () | 
| Returns a list all properties.  More... | |
| virtual std::string | decodeEntry (const std::string &entry) | 
| Returns decoded entry that is an absolute entry.  More... | |
Static Public Member Functions | |
| static bool | isDumpPython (SALOMEDSImpl_Study *study, const std::string &theID="") | 
| Returns whether there is the dumping visual parameters.  More... | |
| static int | getLastSavePoint (SALOMEDSImpl_Study *study, const std::string &theID="") | 
| Returns an ID of the last save point.  More... | |
| static std::string | getStudyScript (SALOMEDSImpl_Study *study, int savePoint, const std::string &theID="") | 
| Returns a Python script for the study, which sets up visual parameters.  More... | |
| static std::string | getDefaultScript (SALOMEDSImpl_Study *study, const std::string &moduleName, const std::string &shift, const std::string &theID="") | 
| Returns a default Python script that set ups visual parameters for the given module shift is a string that contain spaces to make valid Python script indentaion.  More... | |
| static std::string | getDefaultVisualComponent () | 
| Returns a default name of the component where the visula parameters are stored.  More... | |
Private Attributes | |
| SALOMEDSImpl_AttributeParameter * | _ap | 
| SALOMEDSImpl_Study * | _study | 
| std::map< std::string,  std::string >  | _compNames | 
Class which an interface to store the parameters of the objects.
| SALOMEDSImpl_IParameters::SALOMEDSImpl_IParameters | ( | SALOMEDSImpl_AttributeParameter * | ap | ) | 
Constructor.
References _ap, _study, SALOMEDSImpl_GenericAttribute::GetSObject(), and SALOMEDSImpl_SObject::GetStudy().
Referenced by getDefaultScript().
      
  | 
  virtual | 
References _compNames.
      
  | 
  virtual | 
Appends a string value to a named list.
Returns a number of the added value. Note: the name of the list MUST be unique
References _ap, _AP_ENTRIES_LIST_, _AP_LISTS_LIST_, _AP_PROPERTIES_LIST_, SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), PT_STRARRAY, and SALOMEDSImpl_AttributeParameter::SetStrArray().
Referenced by setIdParameter(), setParameter(), and setProperty().
      
  | 
  virtual | 
Returns decoded entry that is an absolute entry.
References _compNames, _study, SALOMEDSImpl_Study::FindComponent(), and SALOMEDSImpl_SObject::GetID().
Referenced by getDefaultScript().
      
  | 
  virtual | 
Returns all parameter names of the given entry.
References _ap, SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_STRARRAY.
Referenced by getDefaultScript().
      
  | 
  virtual | 
Returns all parameter values of the given entry.
References _ap, SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_STRARRAY.
Referenced by getDefaultScript().
      
  | 
  static | 
Returns a default Python script that set ups visual parameters for the given module shift is a string that contain spaces to make valid Python script indentaion.
References _PT_ID_, decodeEntry(), SALOMEDSImpl_Study::FindObjectID(), getAllParameterNames(), getAllParameterValues(), SALOMEDSImpl_Study::GetCommonParameters(), getDefaultVisualComponent(), getEntries(), getLastSavePoint(), getLists(), SALOMEDSImpl_Study::GetModuleParameters(), SALOMEDSImpl_SObject::GetName(), getProperties(), getProperty(), getValues(), isDumpPython(), and SALOMEDSImpl_IParameters().
Referenced by SALOMEDS_Study_i::GetDefaultScript().
      
  | 
  static | 
Returns a default name of the component where the visula parameters are stored.
Referenced by getDefaultScript(), SALOMEDS_DriverFactory_i::GetDriverByType(), getLastSavePoint(), getStudyScript(), isDumpPython(), and SALOMEDSImpl_StudyManager::Open().
      
  | 
  virtual | 
Returns a list all entries.
References _ap, _AP_ENTRIES_LIST_, SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_STRARRAY.
Referenced by getDefaultScript().
      
  | 
  virtual | 
Gets an id parameter value for the given entry.
References _ap, _PT_ID_, SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_STRARRAY.
      
  | 
  static | 
Returns an ID of the last save point.
References SALOMEDSImpl_StudyBuilder::FindAttribute(), SALOMEDSImpl_Study::FindComponent(), getDefaultVisualComponent(), SALOMEDSImpl_ChildIterator::More(), SALOMEDSImpl_Study::NewBuilder(), SALOMEDSImpl_Study::NewChildIterator(), SALOMEDSImpl_ChildIterator::Next(), and SALOMEDSImpl_ChildIterator::Value().
Referenced by SALOMEDSImpl_Study::DumpStudy(), and getDefaultScript().
      
  | 
  virtual | 
Returns a list all entries lists.
References _ap, _AP_LISTS_LIST_, SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_STRARRAY.
Referenced by getDefaultScript(), and getStudyScript().
      
  | 
  virtual | 
Returns a number of parameters of the given entry.
References _ap, SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_STRARRAY.
      
  | 
  virtual | 
Gets a named parameter value for the given entry.
References _ap, SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_STRARRAY.
      
  | 
  virtual | 
Returns a list all properties.
References _ap, _AP_PROPERTIES_LIST_, SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_STRARRAY.
Referenced by getDefaultScript(), and getStudyScript().
      
  | 
  virtual | 
Gets a value of global named property.
References _ap, SALOMEDSImpl_AttributeParameter::GetString(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_STRING.
Referenced by getDefaultScript(), and getStudyScript().
      
  | 
  static | 
Returns a Python script for the study, which sets up visual parameters.
References SALOMEDSImpl_Study::GetCommonParameters(), getDefaultVisualComponent(), getLists(), getProperties(), getProperty(), and getValues().
Referenced by SALOMEDSImpl_Study::DumpStudy().
      
  | 
  virtual | 
Returns a value with given index, where index is in range [0:nbValues-1].
References _ap, SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_STRARRAY.
      
  | 
  virtual | 
Returns a list of values in the list.
References _ap, SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_STRARRAY.
Referenced by getDefaultScript(), and getStudyScript().
      
  | 
  static | 
Returns whether there is the dumping visual parameters.
References _AP_DUMP_PYTHON_, SALOMEDSImpl_AttributeParameter::GetBool(), SALOMEDSImpl_Study::GetCommonParameters(), getDefaultVisualComponent(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_BOOLEAN.
Referenced by SALOMEDSImpl_Study::DumpStudy(), and getDefaultScript().
      
  | 
  virtual | 
Returns a number elements in the list.
References _ap, SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), and PT_STRARRAY.
      
  | 
  virtual | 
Sets an id parameter value for the given entry.
References _ap, _AP_ENTRIES_LIST_, _PT_ID_, append(), SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), PT_STRARRAY, and SALOMEDSImpl_AttributeParameter::SetStrArray().
      
  | 
  virtual | 
Sets a new named parameter value for the given entry.
References _ap, _AP_ENTRIES_LIST_, append(), SALOMEDSImpl_AttributeParameter::GetStrArray(), SALOMEDSImpl_AttributeParameter::IsSet(), PT_STRARRAY, and SALOMEDSImpl_AttributeParameter::SetStrArray().
      
  | 
  virtual | 
Sets a global named property value.
References _ap, _AP_PROPERTIES_LIST_, append(), SALOMEDSImpl_AttributeParameter::IsSet(), PT_STRING, and SALOMEDSImpl_AttributeParameter::SetString().
      
  | 
  private | 
Referenced by append(), getAllParameterNames(), getAllParameterValues(), getEntries(), getIdParameter(), getLists(), getNbParameters(), getParameter(), getProperties(), getProperty(), getValue(), getValues(), nbValues(), SALOMEDSImpl_IParameters(), setIdParameter(), setParameter(), and setProperty().
      
  | 
  private | 
Referenced by decodeEntry(), and ~SALOMEDSImpl_IParameters().
      
  | 
  private | 
Referenced by decodeEntry(), and SALOMEDSImpl_IParameters().