#include <SALOMEDSImpl_Study.hxx>
Public Member Functions | |
| SALOMEDSImpl_Study () | |
| standard constructor More... | |
| virtual | ~SALOMEDSImpl_Study () |
| standard destructor More... | |
| virtual void | Init () |
| Function : Init Purpose : Initialize study components. More... | |
| virtual void | Clear () |
| Function : Clear Purpose : Clear study components. More... | |
| virtual bool | Open (const std::string &aStudyUrl) |
| method to Open a Study from it's persistent reference More... | |
| virtual bool | Save (SALOMEDSImpl_DriverFactory *aFactory, bool theMultiFile, bool theASCII) |
| method to save a Study More... | |
| virtual bool | SaveAs (const std::string &aUrl, SALOMEDSImpl_DriverFactory *aFactory, bool theMultiFile, bool theASCII) |
| method to save a Study to the persistent reference aUrl More... | |
| bool | CopyLabel (SALOMEDSImpl_Driver *theEngine, const int theSourceStartDepth, const DF_Label &theSource, const DF_Label &theDestinationMain) |
| Function : CopyLabel Purpose : More... | |
| DF_Label | PasteLabel (SALOMEDSImpl_Driver *theEngine, const DF_Label &theSource, const DF_Label &theDestinationStart, const bool isFirstElement) |
| Function : PasteLabel Purpose : More... | |
| virtual bool | CanCopy (const SALOMEDSImpl_SObject &theObject, SALOMEDSImpl_Driver *Engine) |
| Function : CanCopy Purpose : More... | |
| virtual bool | Copy (const SALOMEDSImpl_SObject &theObject, SALOMEDSImpl_Driver *Engine) |
| Function : Copy Purpose : More... | |
| virtual bool | CanPaste (const SALOMEDSImpl_SObject &theObject, SALOMEDSImpl_Driver *Engine) |
| Function : CanPaste Purpose : More... | |
| virtual SALOMEDSImpl_SObject | Paste (const SALOMEDSImpl_SObject &theObject, SALOMEDSImpl_Driver *Engine) |
| Function : Paste Purpose : More... | |
| virtual bool | Impl_SaveAs (const std::string &aUrl, SALOMEDSImpl_DriverFactory *aFactory, bool theMultiFile, bool theASCII) |
| Function : _SaveAs Purpose : save the study in HDF file. More... | |
| virtual bool | Impl_SaveObject (const SALOMEDSImpl_SObject &SC, HDFgroup *hdf_group_datatype) |
| Function : Impl_SaveObject Purpose : More... | |
| virtual bool | Impl_SaveProperties (HDFgroup *hdf_group) |
| Function : _SaveProperties Purpose : save the study properties in HDF file. More... | |
| virtual std::string | GetPersistentReference () |
| method to Get persistent reference of study (idem URL()) More... | |
| virtual bool | IsEmpty () |
| method to detect if a study is empty More... | |
| virtual SALOMEDSImpl_SComponent | FindComponent (const std::string &aComponentName) |
| method to Find a Component with ComponentDataType = aComponentName More... | |
| virtual SALOMEDSImpl_SComponent | FindComponentID (const std::string &aComponentID) |
| method to Find a Component Find a Component from it's ID More... | |
| virtual SALOMEDSImpl_SObject | FindObject (const std::string &anObjectName) |
| method to Find an Object with SALOMEDSImpl::Name = anObjectName More... | |
| virtual std::vector< SALOMEDSImpl_SObject > | FindObjectByName (const std::string &anObjectName, const std::string &aComponentName) |
| method to Find Object(s) with SALOMEDSImpl::Name=anObjectName in a component with ComponentDataType = aComponentName More... | |
| virtual SALOMEDSImpl_SObject | FindObjectID (const std::string &anObjectID) |
| method to Find an Object with ID = anObjectID More... | |
| virtual SALOMEDSImpl_SObject | CreateObjectID (const std::string &anObjectID) |
| method to Create an Object with ID = anObjectID More... | |
| virtual SALOMEDSImpl_SObject | FindObjectIOR (const std::string &anObjectIOR) |
| method to Find an Object with ID = anObjectIOR More... | |
| virtual SALOMEDSImpl_SObject | FindObjectByPath (const std::string &thePath) |
| method to Find an Object by its path More... | |
| virtual std::string | GetObjectPath (const SALOMEDSImpl_SObject &theObject) |
| method to get a path of SObject More... | |
| std::string | GetObjectPathByIOR (const std::string &theIOR) |
| Function : GetObjectPathByIOR Purpose : More... | |
| virtual SALOMEDSImpl_ChildIterator | NewChildIterator (const SALOMEDSImpl_SObject &aSO) |
| method to Create a ChildIterator from an SObject More... | |
| virtual SALOMEDSImpl_SComponentIterator | NewComponentIterator () |
| method to Create a SComponentIterator More... | |
| virtual SALOMEDSImpl_StudyBuilder * | NewBuilder () |
| method to Create a StudyBuilder More... | |
| virtual std::string | Name () |
| method to get study name More... | |
| virtual void | Name (const std::string &name) |
| method to set study name More... | |
| virtual bool | IsSaved () |
| method to get if study has been saved More... | |
| virtual void | IsSaved (bool save) |
| method to set if study has been saved More... | |
| virtual bool | IsModified () |
| method to Detect if a Study has been modified since it has been saved More... | |
| virtual std::string | URL () |
| method to get URL of the study (idem GetPersistentReference) More... | |
| virtual void | URL (const std::string &url) |
| method to set URL of the study More... | |
| virtual bool | IsLocked () |
| virtual void | DeleteIORLabelMapItem (const std::string &anIOR) |
| virtual void | UpdateIORLabelMap (const std::string &anIOR, const std::string &aLabel) |
| virtual std::vector< SALOMEDSImpl_SObject > | FindDependances (const SALOMEDSImpl_SObject &anObject) |
| virtual SALOMEDSImpl_AttributeStudyProperties * | GetProperties () |
| virtual std::string | GetLastModificationDate () |
| virtual std::vector< std::string > | GetModificationsDate () |
| virtual SALOMEDSImpl_UseCaseBuilder * | GetUseCaseBuilder () |
| Function : GetUseCaseBuilder Purpose : Returns a UseCase builder. More... | |
| void | EnableUseCaseAutoFilling (bool isEnabled) |
| Function : EnableUseCaseAutoFilling Purpose : More... | |
| virtual std::string | GetErrorCode () |
| virtual bool | IsError () |
| virtual SALOMEDSImpl_SComponent | GetSComponent (const std::string &theEntry) |
| Function : GetSComponent Purpose : More... | |
| virtual SALOMEDSImpl_SComponent | GetSComponent (const DF_Label &theLabel) |
| Function : GetSComponent Purpose : More... | |
| virtual SALOMEDSImpl_SObject | GetSObject (const std::string &theEntry) |
| Function : GetSObject Purpose : More... | |
| virtual SALOMEDSImpl_SObject | GetSObject (const DF_Label &theEntryLabel) |
| Function : GetSObject Purpose : More... | |
| virtual DF_Attribute * | GetAttribute (const std::string &theEntry, const std::string &theType) |
| Function : GetAttribute Purpose : More... | |
| virtual bool | DumpStudy (const std::string &thePath, const std::string &theBaseName, bool isPublished, bool isMultiFile, SALOMEDSImpl_DriverFactory *theFactory) |
| Function : DumpStudy Purpose : More... | |
| std::string | GetDumpPath () |
| virtual DF_Document * | GetDocument () |
| void | dump (const std::string &theFileName) |
| Function : dump Purpose : More... | |
| void | Modify () |
| SALOMEDSImpl_AttributeParameter * | GetCommonParameters (const char *theID, int theSavePoint) |
| Function : Purpose : More... | |
| SALOMEDSImpl_AttributeParameter * | GetModuleParameters (const char *theID, const char *theModuleName, int theSavePoint) |
| Function : Purpose : More... | |
| void | SetStudyLock (const char *theLockerID) |
| Function : SetStudyLock Purpose : More... | |
| bool | IsStudyLocked () |
| Function : IsStudyLocked Purpose : More... | |
| void | UnLockStudy (const char *theLockerID) |
| Function : UnLockStudy Purpose : More... | |
| std::vector< std::string > | GetLockerID () |
| Function : GetLockerID Purpose : More... | |
| void | SetVariable (const std::string &theVarName, const double theValue, const SALOMEDSImpl_GenericVariable::VariableTypes) |
| Function : SetVariable Purpose : More... | |
| void | SetStringVariable (const std::string &theVarName, const std::string &theValue, const SALOMEDSImpl_GenericVariable::VariableTypes) |
| Function : SetStringVariable Purpose : More... | |
| void | SetStringVariableAsDouble (const std::string &theVarName, const double theValue, const SALOMEDSImpl_GenericVariable::VariableTypes) |
| Function : SetStringVariableAsDouble Purpose : More... | |
| double | GetVariableValue (const std::string &theVarName) |
| Function : GetReal Purpose : More... | |
| std::string | GetStringVariableValue (const std::string &theVarName) |
| Function : GetString Purpose : More... | |
| bool | IsTypeOf (const std::string &theVarName, SALOMEDSImpl_GenericVariable::VariableTypes theType) const |
| Function : IsTypeOf Purpose : More... | |
| bool | IsVariable (const std::string &theVarName) const |
| Function : IsVariable Purpose : More... | |
| std::vector< std::string > | GetVariableNames () const |
| Function : GetVariableNames Purpose : More... | |
| void | AddVariable (SALOMEDSImpl_GenericVariable *theVariable) |
| Function : AddVariable Purpose : More... | |
| SALOMEDSImpl_GenericVariable * | GetVariable (const std::string &theName) const |
| Function : AddVariable Purpose : More... | |
| bool | RemoveVariable (const std::string &theVarName) |
| Function : RemoveVariable Purpose : More... | |
| bool | RenameVariable (const std::string &theVarName, const std::string &theNewVarName) |
| Function : RenameVariable Purpose : More... | |
| bool | IsVariableUsed (const std::string &theVarName) |
| Function : IsVariableUsed Purpose : More... | |
| bool | FindVariableAttribute (SALOMEDSImpl_StudyBuilder *theStudyBuilder, SALOMEDSImpl_SObject theSObject, const std::string &theName) |
| Function : FindVariableAttribute Purpose : More... | |
| bool | FindVariableAttribute (const std::string &theName) |
| Function : FindVariableAttribute Purpose : More... | |
| void | ReplaceVariableAttribute (SALOMEDSImpl_StudyBuilder *theStudyBuilder, SALOMEDSImpl_SObject theSObject, const std::string &theSource, const std::string &theDest) |
| Function : ReplaceVariableAttribute Purpose : More... | |
| void | ReplaceVariableAttribute (const std::string &theSource, const std::string &theDest) |
| Function : ReplaceVariableAttribute Purpose : More... | |
| std::vector< std::vector< std::string > > | ParseVariables (const std::string &theVariables) const |
| Function : ParseVariables Purpose : More... | |
| SALOMEDSImpl_Callback * | GetCallback () |
| std::vector< std::string > | GetIORs () |
| Function : GetIORs Purpose : More... | |
| virtual bool | addSO_Notification (const SALOMEDSImpl_SObject &theSObject) |
| Function : addSO_Notification Purpose : This function tells all the observers that a SO has been added. More... | |
| virtual bool | removeSO_Notification (const SALOMEDSImpl_SObject &theSObject) |
| Function : removeSO_Notification Purpose : This function tells all the observers that a SO has been removed. More... | |
| virtual bool | modifySO_Notification (const SALOMEDSImpl_SObject &theSObject, int reason) |
| Function : modifySO_Notification Purpose : This function tells all the observers that a SO has been modified and pass the mofification reason. More... | |
| virtual void | setNotifier (SALOMEDSImpl_AbstractCallback *notifier) |
| Function : setNotifier Purpose : register a notifier. More... | |
| void | setGenObjRegister (SALOMEDSImpl_AbstractCallback *theRegister) |
| Stores theRegister. More... | |
Static Public Member Functions | |
| static SALOMEDSImpl_Study * | GetStudyImpl (const DF_Label &theLabel) |
| static SALOMEDSImpl_SObject | SObject (const DF_Label &theLabel) |
| static SALOMEDSImpl_SComponent | SComponent (const DF_Label &theLabel) |
| static void | IORUpdated (const SALOMEDSImpl_AttributeIOR *theAttribute) |
| static std::string | GetDumpStudyComment (const char *theComponentName=0) |
| static void | RegisterGenObj (const std::string &theIOR, DF_Label label) |
| Indirectly invokes GenericObj_i::Register() More... | |
| static void | UnRegisterGenObj (const std::string &theIOR, DF_Label label) |
| Indirectly invokes GenericObj_i::UnRegister() More... | |
Private Member Functions | |
| SALOMEDSImpl_SObject | _FindObject (const SALOMEDSImpl_SObject &SO, const std::string &anObjectName, bool &_find) |
| Function : _FindObject Purpose : Find an Object with SALOMEDSImpl_Name = anObjectName. More... | |
| SALOMEDSImpl_SObject | _FindObjectIOR (const SALOMEDSImpl_SObject &SO, const std::string &anObjectIOR, bool &_find) |
| Function : _FindObjectIOR Purpose : Find an Object with SALOMEDSImpl_IOR = anObjectIOR. More... | |
| std::string | _GetStudyVariablesScript () |
| Function : _GetStudyVariablesScript Purpose : More... | |
| std::string | _GetNoteBookAccessor () |
| Function : _GetNoteBookAccessor Purpose : Find an Object with SALOMEDSImpl_IOR = anObjectIOR. More... | |
| std::string | _GetNoteBookAccess () |
| Function : _GetNoteBookAccess Purpose : More... | |
Private Attributes | |
| std::string | _name |
| DF_Application * | _appli |
| DF_Document * | _doc |
| DF_Document * | _clipboard |
| bool | _Saved |
| std::string | _URL |
| bool | _autoFill |
| std::string | _errorCode |
| std::vector< std::string > | _lockers |
| SALOMEDSImpl_Callback * | _cb |
| SALOMEDSImpl_StudyBuilder * | _builder |
| SALOMEDSImpl_UseCaseBuilder * | _useCaseBuilder |
| SALOMEDSImpl_AbstractCallback * | _notifier |
| SALOMEDSImpl_AbstractCallback * | _genObjRegister |
| std::string | _dumpPath |
| std::map< std::string, SALOMEDSImpl_SObject > | _mapOfSO |
| std::map< std::string, SALOMEDSImpl_SComponent > | _mapOfSCO |
| std::map< std::string, DF_Label > | myIORLabels |
| std::vector< SALOMEDSImpl_GenericVariable * > | myNoteBookVars |
Friends | |
| class | SALOMEDSImpl_GenericAttribute |
| class | SALOMEDSImpl_GenericVariable |
| SALOMEDSImpl_Study::SALOMEDSImpl_Study | ( | ) |
standard constructor
Function : SALOMEDSImpl_Study Purpose : SALOMEDSImpl_Study constructor.
References _appli, _clipboard, Init(), and DF_Application::NewDocument().
|
virtual |
standard destructor
Function : ~SALOMEDSImpl_Study Purpose : SALOMEDSImpl_Study destructor.
References _appli, _clipboard, Clear(), and DF_Application::Close().
|
private |
Function : _FindObject Purpose : Find an Object with SALOMEDSImpl_Name = anObjectName.
References DF_Label::FindAttribute(), SALOMEDSImpl_AttributeName::GetID(), GetSObject(), DF_ChildIterator::More(), DF_ChildIterator::Next(), SALOME_ModuleCatalog::SO, DF_ChildIterator::Value(), and SALOMEDSImpl_AttributeName::Value().
Referenced by FindObject(), and FindObjectByName().
|
private |
Function : _FindObjectIOR Purpose : Find an Object with SALOMEDSImpl_IOR = anObjectIOR.
References DF_Label::FindAttribute(), SALOMEDSImpl_AttributeIOR::GetID(), GetSObject(), DF_ChildIterator::More(), DF_ChildIterator::Next(), SALOME_ModuleCatalog::SO, DF_ChildIterator::Value(), and SALOMEDSImpl_AttributeIOR::Value().
|
private |
Function : _GetNoteBookAccess Purpose :
References _GetNoteBookAccessor(), and KERNEL_PY.salome_notebook::notebook.
Referenced by DumpStudy().
|
private |
Function : _GetNoteBookAccessor Purpose : Find an Object with SALOMEDSImpl_IOR = anObjectIOR.
Referenced by _GetNoteBookAccess(), and _GetStudyVariablesScript().
|
private |
Function : _GetStudyVariablesScript Purpose :
References _GetNoteBookAccessor(), dump(), myNoteBookVars, and TestSalomeSDSHelper0::varName.
Referenced by DumpStudy().
|
virtual |
Function : addSO_Notification Purpose : This function tells all the observers that a SO has been added.
References _notifier, and SALOMEDSImpl_AbstractCallback::addSO_Notification().
Referenced by SALOMEDSImpl_UseCaseBuilder::Append(), SALOMEDSImpl_UseCaseBuilder::AppendTo(), SALOMEDSImpl_UseCaseBuilder::InsertBefore(), SALOMEDSImpl_StudyBuilder::NewComponent(), SALOMEDSImpl_StudyBuilder::NewObject(), SALOMEDSImpl_StudyBuilder::NewObjectToTag(), and PasteLabel().
| void SALOMEDSImpl_Study::AddVariable | ( | SALOMEDSImpl_GenericVariable * | theVariable | ) |
|
virtual |
Function : CanCopy Purpose :
References _errorCode, SALOMEDSImpl_Driver::CanCopy(), SALOMEDSImpl_SComponent::ComponentIOR(), SALOMEDSImpl_SObject::GetFatherComponent(), and SALOMEDSImpl_SObject::GetLabel().
Referenced by SALOMEDS_Study::CanCopy(), and SALOMEDS_Study_i::CanCopy().
|
virtual |
Function : CanPaste Purpose :
References _clipboard, _errorCode, SALOMEDSImpl_Driver::CanPaste(), SALOMEDSImpl_SComponent::ComponentIOR(), DF_Label::Father(), DF_Label::FindAttribute(), DF_Label::FindChild(), SALOMEDSImpl_SObject::GetFatherComponent(), SALOMEDSImpl_AttributeComment::GetID(), SALOMEDSImpl_AttributeInteger::GetID(), DF_Document::Main(), DF_Label::Root(), SALOMEDSImpl_AttributeComment::Value(), and SALOMEDSImpl_AttributeInteger::Value().
Referenced by SALOMEDS_Study::CanPaste(), and SALOMEDS_Study_i::CanPaste().
|
virtual |
Function : Clear Purpose : Clear study components.
References _appli, _builder, _cb, _doc, _mapOfSCO, _mapOfSO, _useCaseBuilder, DF_Application::Close(), and URL().
Referenced by SALOMEDS_Study_i::Clear(), and ~SALOMEDSImpl_Study().
|
virtual |
Function : Copy Purpose :
References _appli, _clipboard, _doc, _errorCode, DF_Application::Close(), SALOMEDSImpl_Driver::ComponentDataType(), CopyLabel(), DF_Label::Depth(), DF_Label::ForgetAllAttributes(), SALOMEDSImpl_AttributeIOR::GetID(), SALOMEDSImpl_SObject::GetLabel(), DF_Label::IsAttribute(), DF_Document::Main(), DF_ChildIterator::More(), DF_Application::NewDocument(), DF_ChildIterator::Next(), DF_Label::Root(), SALOMEDSImpl_AttributeComment::Set(), and DF_ChildIterator::Value().
Referenced by SALOMEDS_Study::Copy(), and SALOMEDS_Study_i::Copy().
| bool SALOMEDSImpl_Study::CopyLabel | ( | SALOMEDSImpl_Driver * | theEngine, |
| const int | theSourceStartDepth, | ||
| const DF_Label & | theSource, | ||
| const DF_Label & | theDestinationMain | ||
| ) |
Function : CopyLabel Purpose :
< TODO: conversion from size_t to int
References _errorCode, TestSalomeSDS1::a, DF_Label::AddAttribute(), SALOMEDSImpl_Driver::CopyFrom(), DF_Label::Depth(), DF_Label::Entry(), DF_Label::Father(), DF_Label::FindAttribute(), DF_Label::FindChild(), FindObjectID(), SALOMEDSImpl_TMPFile::Get(), DF_Label::GetAttributes(), SALOMEDSImpl_AttributeName::GetID(), SALOMEDSImpl_GenericAttribute::Impl_GetType(), DF_Attribute::NewEmpty(), DF_Attribute::Paste(), SALOMEDSImpl_AttributeComment::Set(), SALOMEDSImpl_AttributeName::Set(), SALOMEDSImpl_AttributeInteger::Set(), DF_Label::Tag(), and SALOMEDSImpl_AttributeName::Value().
Referenced by Copy().
|
virtual |
method to Create an Object with ID = anObjectID
Function : CreateObjectID Purpose : Creates an Object with ID = anObjectID.
References _doc, _errorCode, GetSObject(), DF_Label::IsNull(), DF_Label::Label(), and DF_Document::Main().
Referenced by BuildTree(), SALOMEDS_Study_i::CreateObjectID(), and ReadAttributes().
|
virtual |
| void SALOMEDSImpl_Study::dump | ( | const std::string & | theFileName | ) |
Function : dump Purpose :
References _errorCode, dumpSO(), FindObjectID(), SALOMEDSImpl_ChildIterator::More(), NewChildIterator(), SALOMEDSImpl_ChildIterator::Next(), out, and SALOMEDSImpl_ChildIterator::Value().
Referenced by _GetStudyVariablesScript().
|
virtual |
Function : DumpStudy Purpose :
< TODO: conversion from size_t to int
References _dumpPath, _errorCode, _GetNoteBookAccess(), _GetStudyVariablesScript(), SALOMEDSImpl_SComponent::ComponentDataType(), SALOMEDSImpl_SComponent::ComponentIOR(), SALOMEDSImpl_TMPFile::Data(), SALOMEDSImpl_Driver::DumpPython(), FindComponent(), GetComponentHeader(), SALOMEDSImpl_DriverFactory::GetDriverByIOR(), SALOMEDSImpl_DriverFactory::GetDriverByType(), GetDumpStudyComment(), SALOMEDSImpl_StudyBuilder::GetErrorCode(), SALOMEDSImpl_IParameters::getLastSavePoint(), SALOMEDSImpl_IParameters::getStudyScript(), SALOMEDSImpl_IParameters::isDumpPython(), SALOMEDSImpl_StudyBuilder::LoadWith(), SALOMEDSImpl_SComponentIterator::More(), NewBuilder(), NewComponentIterator(), SALOMEDSImpl_SComponentIterator::Next(), out, SALOMEDSImpl_Tool::RemoveTemporaryFiles(), replace_tabs(), and SALOMEDSImpl_SComponentIterator::Value().
Referenced by SALOMEDS_Study_i::DumpStudy().
| void SALOMEDSImpl_Study::EnableUseCaseAutoFilling | ( | bool | isEnabled | ) |
Function : EnableUseCaseAutoFilling Purpose :
References _autoFill, _builder, _cb, _errorCode, SALOMEDSImpl_StudyBuilder::SetOnAddSObject(), and SALOMEDSImpl_StudyBuilder::SetOnRemoveSObject().
Referenced by SALOMEDS_Study::EnableUseCaseAutoFilling(), and SALOMEDS_Study_i::EnableUseCaseAutoFilling().
|
virtual |
method to Find a Component with ComponentDataType = aComponentName
Function : FindComponent Purpose : Find a Component with ComponentDataType = aComponentName.
References _errorCode, SALOMEDSImpl_SComponent::ComponentDataType(), SALOMEDSImpl_SComponentIterator::More(), pythfilter::name, NewComponentIterator(), SALOMEDSImpl_SComponentIterator::Next(), and SALOMEDSImpl_SComponentIterator::Value().
Referenced by _PTR(), SALOMEDSImpl_IParameters::decodeEntry(), DumpStudy(), SALOMEDS_Study_i::FindComponent(), FindObjectByName(), GetCommonParameters(), and SALOMEDSImpl_IParameters::getLastSavePoint().
|
virtual |
method to Find a Component Find a Component from it's ID
Function : FindComponentID Purpose : Find a Component from it's ID.
References _errorCode, SALOMEDSImpl_SObject::GetID(), SALOMEDSImpl_SComponentIterator::More(), NewComponentIterator(), SALOMEDSImpl_SComponentIterator::Next(), and SALOMEDSImpl_SComponentIterator::Value().
Referenced by SALOMEDS_Study_i::FindComponentID().
|
virtual |
|
virtual |
method to Find an Object with SALOMEDSImpl::Name = anObjectName
Function : FindObject Purpose : Find an Object with SALOMEDSImpl_Name = anObjectName.
References _errorCode, _FindObject(), SALOMEDSImpl_SObject::GetName(), SALOMEDSImpl_SComponentIterator::More(), NewComponentIterator(), SALOMEDSImpl_SComponentIterator::Next(), and SALOMEDSImpl_SComponentIterator::Value().
Referenced by SALOMEDS_Study_i::FindObject().
|
virtual |
method to Find Object(s) with SALOMEDSImpl::Name=anObjectName in a component with ComponentDataType = aComponentName
Function : FindObjectByName Purpose : Find Objects with SALOMEDSImpl_Name = anObjectName in a Component : with ComponentDataType = aComponentName.
References _errorCode, _FindObject(), FindComponent(), SALOMEDSImpl_SObject::GetID(), SALOMEDSImpl_SObject::GetName(), SALOMEDSImpl_ChildIterator::More(), NewChildIterator(), SALOMEDSImpl_ChildIterator::Next(), and SALOMEDSImpl_ChildIterator::Value().
Referenced by SALOMEDS_Study_i::FindObjectByName().
|
virtual |
method to Find an Object by its path
Function : FindObjectByPath Purpose : Find an Object by its path = thePath.
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
References _doc, _errorCode, DF_Label::FindAttribute(), SALOMEDSImpl_AttributeName::GetID(), GetSObject(), DF_ChildIterator::Init(), DF_Document::Main(), DF_ChildIterator::More(), DF_ChildIterator::Next(), SALOMEDSImpl_Tool::splitString(), DF_ChildIterator::Value(), and SALOMEDSImpl_AttributeName::Value().
Referenced by SALOMEDS_Study_i::FindObjectByPath().
|
virtual |
method to Find an Object with ID = anObjectID
Function : FindObjectID Purpose : Find an Object with ID = anObjectID.
References _doc, _errorCode, GetSObject(), DF_Label::IsNull(), DF_Label::Label(), and DF_Document::Main().
Referenced by CopyLabel(), dump(), SALOMEDS_Study_i::FindObjectID(), SALOMEDSImpl_IParameters::getDefaultScript(), SALOMEDS_Study_i::GetObjectPath(), Impl_SaveAs(), and PasteLabel().
|
virtual |
method to Find an Object with ID = anObjectIOR
Function : FindObjectIOR Purpose : Find an Object with IOR = anObjectIOR.
References _errorCode, SALOMEDSImpl_AttributeIOR::GetID(), SALOMEDSImpl_SObject::GetLabel(), GetSObject(), DF_Label::IsAttribute(), and myIORLabels.
Referenced by SALOMEDS_Study_i::FindObjectIOR(), SALOMEDS_Study_i::GetObjectPath(), and GetObjectPathByIOR().
| bool SALOMEDSImpl_Study::FindVariableAttribute | ( | const std::string & | theName | ) |
Function : FindVariableAttribute Purpose :
References FindVariableAttribute(), SALOMEDSImpl_SComponentIterator::More(), NewBuilder(), NewComponentIterator(), SALOMEDSImpl_SComponentIterator::Next(), and SALOMEDSImpl_SComponentIterator::Value().
| bool SALOMEDSImpl_Study::FindVariableAttribute | ( | SALOMEDSImpl_StudyBuilder * | theStudyBuilder, |
| SALOMEDSImpl_SObject | theSObject, | ||
| const std::string & | theName | ||
| ) |
Function : FindVariableAttribute Purpose :
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
References SALOMEDSImpl_StudyBuilder::FindAttribute(), SALOMEDSImpl_ChildIterator::More(), NewChildIterator(), SALOMEDSImpl_ChildIterator::Next(), ParseVariables(), and SALOMEDSImpl_ChildIterator::Value().
Referenced by FindVariableAttribute(), and IsVariableUsed().
|
virtual |
Function : GetAttribute Purpose :
References SALOMEDSImpl_SObject::FindAttribute(), and GetSObject().
| SALOMEDSImpl_Callback* SALOMEDSImpl_Study::GetCallback | ( | ) |
Referenced by SALOMEDS_Study_i::EnableUseCaseAutoFilling().
| SALOMEDSImpl_AttributeParameter * SALOMEDSImpl_Study::GetCommonParameters | ( | const char * | theID, |
| int | theSavePoint | ||
| ) |
Function : Purpose :
References SALOMEDSImpl_StudyBuilder::FindAttribute(), DF_Label::FindChild(), FindComponent(), SALOMEDSImpl_StudyBuilder::FindOrCreateAttribute(), SALOMEDSImpl_SObject::GetLabel(), GetSObject(), DF_Label::IsNull(), NewBuilder(), SALOMEDSImpl_StudyBuilder::NewComponent(), and SALOMEDSImpl_StudyBuilder::NewObjectToTag().
Referenced by _PTR(), SALOMEDS_Study_i::GetCommonParameters(), SALOMEDSImpl_IParameters::getDefaultScript(), GetModuleParameters(), SALOMEDSImpl_IParameters::getStudyScript(), SALOMEDSImpl_IParameters::isDumpPython(), and SALOMEDSImplTest::testAttributeParameter().
|
virtual |
| std::string SALOMEDSImpl_Study::GetDumpPath | ( | ) |
References _dumpPath.
Referenced by SALOMEDS_Study_i::GetDumpPath().
|
static |
Referenced by DumpStudy().
|
virtual |
| std::vector< std::string > SALOMEDSImpl_Study::GetIORs | ( | ) |
Function : GetIORs Purpose :
References myIORLabels.
Referenced by SALOMEDS_Study_i::RemovePostponed().
|
virtual |
< TODO: conversion from size_t to int
References _errorCode, SALOMEDSImpl_AttributeStudyProperties::GetModifications(), and GetProperties().
Referenced by SALOMEDS_Study::GetLastModificationDate(), and SALOMEDS_Study_i::GetLastModificationDate().
| std::vector< std::string > SALOMEDSImpl_Study::GetLockerID | ( | ) |
Function : GetLockerID Purpose :
References _lockers.
Referenced by SALOMEDS_Study::GetLockerID(), SALOMEDS_Study_i::GetLockerID(), and main().
|
virtual |
< TODO: conversion from size_t to int
References _errorCode, SALOMEDSImpl_AttributeStudyProperties::GetModifications(), and GetProperties().
Referenced by SALOMEDS_Study::GetModificationsDate(), and SALOMEDS_Study_i::GetModificationsDate().
| SALOMEDSImpl_AttributeParameter * SALOMEDSImpl_Study::GetModuleParameters | ( | const char * | theID, |
| const char * | theModuleName, | ||
| int | theSavePoint | ||
| ) |
Function : Purpose :
References DF_Label::FindAttribute(), SALOMEDSImpl_StudyBuilder::FindOrCreateAttribute(), GetCommonParameters(), SALOMEDSImpl_AttributeParameter::GetID(), SALOMEDSImpl_SObject::GetLabel(), SALOMEDSImpl_GenericAttribute::GetSObject(), SALOMEDSImpl_AttributeParameter::GetString(), SALOMEDSImpl_AttributeParameter::IsSet(), SALOMEDSImpl_ChildIterator::More(), NewBuilder(), NewChildIterator(), SALOMEDSImpl_StudyBuilder::NewObject(), SALOMEDSImpl_ChildIterator::Next(), SALOMEDSImpl_AttributeParameter::SetString(), and SALOMEDSImpl_ChildIterator::Value().
Referenced by SALOMEDSImpl_IParameters::getDefaultScript(), and SALOMEDS_Study_i::GetModuleParameters().
|
virtual |
method to get a path of SObject
Function : GetObjectPath Purpose :
References _errorCode, SALOMEDSImpl_SObject::GetFather(), and SALOMEDSImpl_SObject::GetName().
Referenced by SALOMEDS_Study_i::GetObjectPath(), GetObjectPathByIOR(), and main().
| std::string SALOMEDSImpl_Study::GetObjectPathByIOR | ( | const std::string & | theIOR | ) |
Function : GetObjectPathByIOR Purpose :
References _errorCode, FindObjectIOR(), and GetObjectPath().
|
virtual |
method to Get persistent reference of study (idem URL())
Function : GetPersistentReference Purpose : Get persistent reference of study (idem URL())
References _errorCode, and URL().
Referenced by SALOMEDS_Study::GetPersistentReference(), and SALOMEDS_Study_i::GetPersistentReference().
|
virtual |
References _doc, _errorCode, DF_Document::Main(), and SALOMEDSImpl_AttributeStudyProperties::Set().
Referenced by _PTR(), SALOMEDSImpl_StudyBuilder::CheckLocked(), SALOMEDSImpl_StudyBuilder::CommitCommand(), GetLastModificationDate(), GetModificationsDate(), SALOMEDS_Study_i::GetProperties(), Impl_SaveAs(), Impl_SaveProperties(), Init(), IsLocked(), SALOMEDSImpl_StudyBuilder::LoadWith(), SALOMEDSImpl_StudyBuilder::NewCommand(), Open(), Paste(), SALOMEDSImpl_StudyBuilder::Redo(), and SALOMEDSImpl_StudyBuilder::Undo().
|
virtual |
Function : GetSComponent Purpose :
|
virtual |
Function : GetSComponent Purpose :
References _doc, _mapOfSCO, DF_Label::Label(), and DF_Document::Main().
Referenced by SALOMEDS_StudyBuilder_i::DefineComponentInstance(), SALOMEDS_StudyBuilder_i::LoadWith(), SALOMEDSImpl_StudyBuilder::NewComponent(), SALOMEDS_StudyBuilder_i::RemoveComponent(), and SComponent().
|
virtual |
Function : GetSObject Purpose :
|
virtual |
Function : GetSObject Purpose :
References _doc, _mapOfSO, DF_Label::Label(), and DF_Document::Main().
Referenced by _FindObject(), _FindObjectIOR(), SALOMEDS_StudyBuilder_i::Addreference(), SALOMEDS_Study_i::CanCopy(), SALOMEDS_Study_i::CanPaste(), SALOMEDS_Study_i::Copy(), CreateObjectID(), SALOMEDS_StudyBuilder_i::FindAttribute(), FindObjectByPath(), FindObjectID(), FindObjectIOR(), SALOMEDS_StudyBuilder_i::FindOrCreateAttribute(), GetAttribute(), GetCommonParameters(), SALOMEDS_StudyBuilder_i::IsGUID(), SALOMEDS_Study_i::NewChildIterator(), SALOMEDSImpl_StudyBuilder::NewObject(), SALOMEDS_StudyBuilder_i::NewObject(), SALOMEDSImpl_StudyBuilder::NewObjectToTag(), SALOMEDS_StudyBuilder_i::NewObjectToTag(), SALOMEDS_Study_i::Paste(), PasteLabel(), SALOMEDS_StudyBuilder_i::RemoveAttribute(), SALOMEDS_StudyBuilder_i::RemoveObject(), SALOMEDS_StudyBuilder_i::RemoveObjectWithChildren(), SALOMEDS_StudyBuilder_i::RemoveReference(), SALOMEDS_StudyBuilder_i::SetComment(), SALOMEDS_StudyBuilder_i::SetGUID(), SALOMEDS_StudyBuilder_i::SetIOR(), SALOMEDS_StudyBuilder_i::SetName(), and SObject().
| std::string SALOMEDSImpl_Study::GetStringVariableValue | ( | const std::string & | theVarName | ) |
Function : GetString Purpose :
References GetVariable().
Referenced by SALOMEDS_Study_i::GetString(), and SALOMEDS_Study::GetString().
|
static |
References DF_Label::FindAttribute(), SALOMEDSImpl_StudyHandle::Get(), SALOMEDSImpl_StudyHandle::GetID(), and DF_Label::Root().
Referenced by SALOMEDSImpl_UseCaseBuilder::Append(), SALOMEDSImpl_UseCaseBuilder::AppendTo(), SALOMEDSImpl_GenericAttribute::CheckLocked(), SALOMEDSImpl_IParameters::decodeEntry(), SALOMEDSImpl_UseCaseBuilder::InsertBefore(), IORUpdated(), SComponent(), SALOMEDSImpl_GenericAttribute::SetModifyFlag(), SALOMEDSImpl_AttributeIOR::SetValue(), and SObject().
|
virtual |
Function : GetUseCaseBuilder Purpose : Returns a UseCase builder.
References _errorCode, and _useCaseBuilder.
Referenced by _PTR(), SALOMEDS_Study_i::GetUseCaseBuilder(), and main().
| SALOMEDSImpl_GenericVariable * SALOMEDSImpl_Study::GetVariable | ( | const std::string & | theName | ) | const |
Function : AddVariable Purpose :
References myNoteBookVars.
Referenced by GetStringVariableValue(), GetVariableValue(), IsTypeOf(), IsVariable(), RemoveVariable(), RenameVariable(), SetStringVariable(), SetStringVariableAsDouble(), and SetVariable().
| std::vector< std::string > SALOMEDSImpl_Study::GetVariableNames | ( | ) | const |
Function : GetVariableNames Purpose :
References myNoteBookVars.
Referenced by SALOMEDS_Study::GetVariableNames(), and SALOMEDS_Study_i::GetVariableNames().
| double SALOMEDSImpl_Study::GetVariableValue | ( | const std::string & | theVarName | ) |
Function : GetReal Purpose :
References GetVariable().
Referenced by SALOMEDS_Study_i::GetBoolean(), SALOMEDS_Study::GetBoolean(), SALOMEDS_Study_i::GetInteger(), SALOMEDS_Study::GetInteger(), SALOMEDS_Study_i::GetReal(), and SALOMEDS_Study::GetReal().
|
virtual |
Function : _SaveAs Purpose : save the study in HDF file.
References _errorCode, HDFdataset::CloseOnDisk(), HDFfile::CloseOnDisk(), HDFgroup::CloseOnDisk(), SALOMEDSImpl_SComponent::ComponentDataType(), SALOMEDSImpl_SComponent::ComponentIOR(), HDFascii::ConvertFromHDFToASCII(), HDFdataset::CreateOnDisk(), HDFfile::CreateOnDisk(), HDFgroup::CreateOnDisk(), SALOMEDSImpl_TMPFile::Data(), FindObjectID(), SALOMEDSImpl_SObject::GetComment(), SALOMEDSImpl_Tool::GetDirFromPath(), SALOMEDSImpl_DriverFactory::GetDriverByIOR(), SALOMEDSImpl_DriverFactory::GetDriverByType(), SALOMEDSImpl_StudyBuilder::GetErrorCode(), SALOMEDSImpl_SObject::GetID(), SALOMEDSImpl_Tool::GetNameFromPath(), GetProperties(), SALOMEDSImpl_Tool::GetTmpDir(), HDF_STRING, Impl_SaveObject(), Impl_SaveProperties(), SALOMEDSImpl_SComponentIterator::Init(), IsSaved(), SALOMEDSImpl_StudyBuilder::LoadWith(), SALOMEDSImpl_SComponentIterator::More(), myNoteBookVars, Name(), NewBuilder(), NewComponentIterator(), SALOMEDSImpl_SComponentIterator::Next(), SALOMEDSImpl_Driver::Save(), SALOMEDSImpl_Driver::SaveASCII(), SaveAttributes(), SALOMEDSImpl_AttributeStudyProperties::SetComponentVersion(), Translate_IOR_to_persistentID(), SALOMEDS::unlock(), URL(), USE_CASE_LABEL_ID, SALOMEDSImpl_SComponentIterator::Value(), SALOMEDSImpl_Driver::Version(), and HDFdataset::WriteOnDisk().
|
virtual |
Function : Impl_SaveObject Purpose :
References _errorCode, HDFgroup::CloseOnDisk(), HDFgroup::CreateOnDisk(), DF_Label::GetAttributes(), SALOMEDSImpl_SObject::GetLabel(), DF_ChildIterator::Init(), DF_ChildIterator::More(), DF_ChildIterator::Next(), SaveAttributes(), SALOME_ModuleCatalog::SO, SObject(), and DF_ChildIterator::Value().
Referenced by Impl_SaveAs().
Function : _SaveProperties Purpose : save the study properties in HDF file.
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
References _errorCode, TestSalomeSDS1::a, HDFdataset::CloseOnDisk(), HDFdataset::CreateOnDisk(), SALOMEDSImpl_AttributeStudyProperties::GetComment(), SALOMEDSImpl_AttributeStudyProperties::GetComponentsVersions(), SALOMEDSImpl_AttributeStudyProperties::GetCreationMode(), SALOMEDSImpl_AttributeStudyProperties::GetModifications(), GetProperties(), SALOMEDSImpl_Tool::GetSystemDate(), SALOMEDSImpl_AttributeStudyProperties::GetUnits(), SALOMEDSImpl_Tool::GetUserName(), HDF_STRING, SALOMEDSImpl_AttributeStudyProperties::IsLocked(), SALOMEDSImpl_AttributeStudyProperties::SetModification(), SALOMEDSImpl_AttributeStudyProperties::SetModified(), SALOMEDS::unlock(), and HDFdataset::WriteOnDisk().
Referenced by Impl_SaveAs().
|
virtual |
Function : Init Purpose : Initialize study components.
References _appli, _autoFill, _builder, _cb, _doc, _errorCode, _genObjRegister, _name, _notifier, _Saved, _URL, _useCaseBuilder, GetProperties(), SALOMEDSImpl_Tool::GetSystemDate(), SALOMEDSImpl_Tool::GetUserName(), DF_Document::Main(), DF_Application::NewDocument(), DF_Label::Root(), SALOMEDSImpl_StudyHandle::Set(), SALOMEDSImpl_AttributeStudyProperties::SetCreationMode(), and SALOMEDSImpl_AttributeStudyProperties::SetModification().
Referenced by SALOMEDS_Study_i::Init(), and SALOMEDSImpl_Study().
|
static |
References DF_Label::Entry(), GetStudyImpl(), DF_Attribute::Label(), UpdateIORLabelMap(), and SALOMEDSImpl_AttributeIOR::Value().
Referenced by SALOMEDS_Study_i::IORUpdated(), and SALOMEDSImpl_AttributeIOR::SetValue().
|
virtual |
method to detect if a study is empty
Function : IsEmpty Purpose : Detect if study is empty.
References _doc, _errorCode, and DF_Document::IsEmpty().
Referenced by SALOMEDS_Study::IsEmpty(), and SALOMEDS_Study_i::IsEmpty().
|
virtual |
|
virtual |
References _errorCode, GetProperties(), and SALOMEDSImpl_AttributeStudyProperties::IsLocked().
Referenced by SALOMEDSImpl_GenericAttribute::CheckLocked(), and Paste().
|
virtual |
method to Detect if a Study has been modified since it has been saved
Function : IsModified Purpose : Detect if a Study has been modified since it has been saved.
References _doc, _errorCode, and DF_Document::IsModified().
Referenced by SALOMEDS_Study::IsModified(), and SALOMEDS_Study_i::IsModified().
|
virtual |
method to get if study has been saved
Function : IsSaved Purpose : get if study has been saved.
References _errorCode, and _Saved.
Referenced by Impl_SaveAs(), SALOMEDS_Study::IsSaved(), and SALOMEDS_Study_i::IsSaved().
|
virtual |
method to set if study has been saved
Function : IsSaved Purpose : set if study has been saved.
References _doc, _errorCode, _Saved, and DF_Document::SetModified().
| bool SALOMEDSImpl_Study::IsStudyLocked | ( | ) |
Function : IsStudyLocked Purpose :
References _lockers.
Referenced by SALOMEDS_Study::IsStudyLocked(), SALOMEDS_Study_i::IsStudyLocked(), and main().
| bool SALOMEDSImpl_Study::IsTypeOf | ( | const std::string & | theVarName, |
| SALOMEDSImpl_GenericVariable::VariableTypes | theType | ||
| ) | const |
Function : IsTypeOf Purpose :
References GetVariable(), and SALOMEDSImpl_GenericVariable::Type().
Referenced by SALOMEDS_Study_i::IsBoolean(), SALOMEDS_Study::IsBoolean(), SALOMEDS_Study_i::IsInteger(), SALOMEDS_Study::IsInteger(), SALOMEDS_Study_i::IsReal(), SALOMEDS_Study::IsReal(), SALOMEDS_Study_i::IsString(), and SALOMEDS_Study::IsString().
| bool SALOMEDSImpl_Study::IsVariable | ( | const std::string & | theVarName | ) | const |
Function : IsVariable Purpose :
References GetVariable().
Referenced by SALOMEDS_Study_i::IsVariable(), and SALOMEDS_Study::IsVariable().
| bool SALOMEDSImpl_Study::IsVariableUsed | ( | const std::string & | theVarName | ) |
Function : IsVariableUsed Purpose :
References FindVariableAttribute().
Referenced by SALOMEDS_Study_i::IsVariableUsed(), and SALOMEDS_Study::IsVariableUsed().
| void SALOMEDSImpl_Study::Modify | ( | ) |
References _doc, _errorCode, and DF_Document::SetModified().
Referenced by SALOMEDS_Study::Modified(), SALOMEDS_Study_i::Modified(), RemoveVariable(), RenameVariable(), SALOMEDSImpl_GenericAttribute::SetModifyFlag(), SetStringVariable(), and SetVariable().
|
virtual |
Function : modifySO_Notification Purpose : This function tells all the observers that a SO has been modified and pass the mofification reason.
References _notifier, and SALOMEDSImpl_AbstractCallback::modifySO_Notification().
Referenced by SALOMEDSImpl_StudyBuilder::RemoveAttribute(), and SALOMEDSImpl_GenericAttribute::SetModifyFlag().
|
virtual |
method to get study name
Function : Name Purpose : get study name.
References _errorCode, and _name.
Referenced by Impl_SaveAs(), SALOMEDS_Study::Name(), and SALOMEDS_Study_i::Name().
|
virtual |
method to set study name
Function : Name Purpose : set study name.
References _errorCode, _name, and pythfilter::name.
|
virtual |
method to Create a StudyBuilder
Function : NewBuilder Purpose : Create a StudyBuilder.
References _autoFill, _builder, _cb, _errorCode, SALOMEDSImpl_StudyBuilder::SetOnAddSObject(), and SALOMEDSImpl_StudyBuilder::SetOnRemoveSObject().
Referenced by _PTR(), DumpStudy(), FindVariableAttribute(), GetCommonParameters(), SALOMEDSImpl_IParameters::getLastSavePoint(), GetModuleParameters(), Impl_SaveAs(), SALOMEDS_Study_i::Init(), main(), ReadAttributes(), and ReplaceVariableAttribute().
|
virtual |
method to Create a ChildIterator from an SObject
Function : NewChildIterator Purpose : Create a ChildIterator from an SObject.
References _errorCode.
Referenced by _PTR(), dump(), dumpSO(), FindObjectByName(), FindVariableAttribute(), SALOMEDSImpl_IParameters::getLastSavePoint(), GetModuleParameters(), main(), and ReplaceVariableAttribute().
|
virtual |
method to Create a SComponentIterator
Function : NewComponentIterator Purpose : Create a SComponentIterator.
References _doc, and _errorCode.
Referenced by _PTR(), DumpStudy(), FindComponent(), FindComponentID(), FindObject(), FindVariableAttribute(), Impl_SaveAs(), SALOMEDS_Study_i::NewComponentIteratorImpl(), Open(), and ReplaceVariableAttribute().
|
virtual |
method to Open a Study from it's persistent reference
Function : Open Purpose : Open a Study from it's persistent reference.
References _doc, _errorCode, BuildTree(), HDFfile::CloseOnDisk(), HDFascii::ConvertFromASCIIToHDF(), HDFfile::ExistInternalObject(), SALOMEDSImpl_SObject::GetComment(), SALOMEDSImpl_IParameters::getDefaultVisualComponent(), SALOMEDSImpl_Tool::GetDirFromPath(), GetProperties(), HDF_RDONLY, HDFascii::isASCII(), DF_Document::Main(), SALOMEDSImpl_SComponentIterator::More(), NewComponentIterator(), SALOMEDSImpl_SComponentIterator::Next(), HDFfile::OpenOnDisk(), ReadNoteBookVariables(), SALOMEDSImpl_Tool::RemoveTemporaryFiles(), SALOMEDSImpl_AttributePersistentRef::Set(), SALOMEDSImpl_AttributeStudyProperties::SetComponentVersion(), SALOMEDS::unlock(), URL(), and SALOMEDSImpl_SComponentIterator::Value().
Referenced by SALOMEDS_Study_i::CanOpen(), and SALOMEDS_Study_i::Open().
| std::vector< std::vector< std::string > > SALOMEDSImpl_Study::ParseVariables | ( | const std::string & | theVariables | ) | const |
Function : ParseVariables Purpose :
References OPERATION_SEPARATOR, SALOMEDSImpl_Tool::splitStringWithEmpty(), and VARIABLE_SEPARATOR.
Referenced by FindVariableAttribute(), SALOMEDS_Study_i::ParseVariables(), SALOMEDS_Study::ParseVariables(), and ReplaceVariableAttribute().
|
virtual |
Function : Paste Purpose :
References _clipboard, _doc, _errorCode, DF_Label::FindAttribute(), SALOMEDSImpl_SObject::GetFatherComponent(), SALOMEDSImpl_AttributeComment::GetID(), SALOMEDSImpl_SObject::GetID(), GetProperties(), IsLocked(), DF_Label::Label(), DF_Document::Main(), DF_ChildIterator::More(), DF_ChildIterator::Next(), PasteLabel(), DF_Label::Root(), SObject(), and DF_ChildIterator::Value().
Referenced by _PTR(), and SALOMEDS_Study_i::Paste().
| DF_Label SALOMEDSImpl_Study::PasteLabel | ( | SALOMEDSImpl_Driver * | theEngine, |
| const DF_Label & | theSource, | ||
| const DF_Label & | theDestinationStart, | ||
| const bool | isFirstElement | ||
| ) |
Function : PasteLabel Purpose :
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
References _errorCode, TestSalomeSDS1::a, SALOMEDSImpl_AttributeTarget::Add(), DF_Label::AddAttribute(), addSO_Notification(), SALOMEDSImpl_Driver::CanPaste(), DF_Label::Depth(), DF_Label::Entry(), DF_Label::Father(), DF_Label::FindAttribute(), DF_Label::FindChild(), FindObjectID(), DF_Label::ForgetAttribute(), DF_Label::GetAttributes(), SALOMEDSImpl_SObject::GetFatherComponent(), SALOMEDSImpl_AttributeComment::GetID(), SALOMEDSImpl_AttributeInteger::GetID(), SALOMEDSImpl_AttributeName::GetID(), GetSObject(), DF_Attribute::ID(), DF_Label::Label(), DF_Attribute::NewEmpty(), DF_Attribute::Paste(), SALOMEDSImpl_Driver::PasteInto(), DF_Label::Root(), SALOMEDSImpl_AttributeTarget::Set(), SALOMEDSImpl_AttributeReference::Set(), SObject(), DF_Label::Tag(), SALOMEDSImpl_AttributeComment::Value(), SALOMEDSImpl_AttributeInteger::Value(), and SALOMEDSImpl_AttributeName::Value().
Referenced by Paste().
|
static |
Indirectly invokes GenericObj_i::Register()
References DF_Label::GetDocument(), and getGenObjRegister().
Referenced by SALOMEDSImpl_AttributeIOR::SetValue().
|
virtual |
Function : removeSO_Notification Purpose : This function tells all the observers that a SO has been removed.
References _notifier, and SALOMEDSImpl_AbstractCallback::removeSO_Notification().
Referenced by SALOMEDSImpl_StudyBuilder::RemoveObject(), and SALOMEDSImpl_StudyBuilder::RemoveObjectWithChildren().
| bool SALOMEDSImpl_Study::RemoveVariable | ( | const std::string & | theVarName | ) |
Function : RemoveVariable Purpose :
References GetVariable(), Modify(), myNoteBookVars, SALOMEDSImpl_GenericVariable::Name(), ReplaceVariableAttribute(), and SALOMEDSImpl_GenericVariable::SaveToScript().
Referenced by SALOMEDS_Study_i::RemoveVariable(), and SALOMEDS_Study::RemoveVariable().
| bool SALOMEDSImpl_Study::RenameVariable | ( | const std::string & | theVarName, |
| const std::string & | theNewVarName | ||
| ) |
Function : RenameVariable Purpose :
References GetVariable(), Modify(), myNoteBookVars, SALOMEDSImpl_GenericVariable::Name(), ReplaceVariableAttribute(), and SALOMEDSImpl_GenericVariable::setName().
Referenced by SALOMEDS_Study_i::RenameVariable(), and SALOMEDS_Study::RenameVariable().
| void SALOMEDSImpl_Study::ReplaceVariableAttribute | ( | const std::string & | theSource, |
| const std::string & | theDest | ||
| ) |
Function : ReplaceVariableAttribute Purpose :
References SALOMEDSImpl_SComponentIterator::More(), NewBuilder(), NewComponentIterator(), SALOMEDSImpl_SComponentIterator::Next(), ReplaceVariableAttribute(), and SALOMEDSImpl_SComponentIterator::Value().
| void SALOMEDSImpl_Study::ReplaceVariableAttribute | ( | SALOMEDSImpl_StudyBuilder * | theStudyBuilder, |
| SALOMEDSImpl_SObject | theSObject, | ||
| const std::string & | theSource, | ||
| const std::string & | theDest | ||
| ) |
Function : ReplaceVariableAttribute Purpose :
< TODO: conversion from size_t to int
< TODO: conversion from size_t to int
References SALOMEDSImpl_StudyBuilder::FindAttribute(), SALOMEDSImpl_ChildIterator::More(), NewChildIterator(), SALOMEDSImpl_ChildIterator::Next(), ParseVariables(), and SALOMEDSImpl_ChildIterator::Value().
Referenced by RemoveVariable(), RenameVariable(), and ReplaceVariableAttribute().
|
virtual |
method to save a Study
Function : Save Purpose : Save a Study to it's persistent reference.
References _errorCode, Impl_SaveAs(), and URL().
Referenced by SALOMEDS_Study_i::Save(), and SALOME_DriverPy.SALOME_DriverPy_i::SaveASCII().
|
virtual |
method to save a Study to the persistent reference aUrl
Function : SaveAs Purpose : Save a study to the persistent reference aUrl.
References _errorCode, and Impl_SaveAs().
Referenced by SALOMEDS_Study_i::SaveAs().
|
static |
References GetSComponent(), and GetStudyImpl().
Referenced by SALOMEDSImpl_SObject::GetFatherComponent(), and SALOMEDSImpl_SComponentIterator::Value().
| void SALOMEDSImpl_Study::setGenObjRegister | ( | SALOMEDSImpl_AbstractCallback * | theRegister | ) |
Stores theRegister.
References _doc, and getGenObjRegister().
Referenced by SALOMEDS_Study_i::Init().
|
virtual |
Function : setNotifier Purpose : register a notifier.
References _notifier.
Referenced by SALOMEDS_Study_i::Clear(), and SALOMEDS_Study_i::Init().
| void SALOMEDSImpl_Study::SetStringVariable | ( | const std::string & | theVarName, |
| const std::string & | theValue, | ||
| const SALOMEDSImpl_GenericVariable::VariableTypes | theType | ||
| ) |
Function : SetStringVariable Purpose :
References GetVariable(), Modify(), myNoteBookVars, and SALOMEDSImpl_ScalarVariable::setStringValue().
Referenced by SALOMEDS_Study_i::SetString(), and SALOMEDS_Study::SetString().
| void SALOMEDSImpl_Study::SetStringVariableAsDouble | ( | const std::string & | theVarName, |
| const double | theValue, | ||
| const SALOMEDSImpl_GenericVariable::VariableTypes | |||
| ) |
Function : SetStringVariableAsDouble Purpose :
References GetVariable().
Referenced by SALOMEDS_Study_i::SetStringAsDouble(), and SALOMEDS_Study::SetStringAsDouble().
| void SALOMEDSImpl_Study::SetStudyLock | ( | const char * | theLockerID | ) |
Function : SetStudyLock Purpose :
References _lockers.
Referenced by main(), and SALOMEDS_Study_i::SetStudyLock().
| void SALOMEDSImpl_Study::SetVariable | ( | const std::string & | theVarName, |
| const double | theValue, | ||
| const SALOMEDSImpl_GenericVariable::VariableTypes | theType | ||
| ) |
Function : SetVariable Purpose :
References GetVariable(), Modify(), myNoteBookVars, and SALOMEDSImpl_ScalarVariable::setValue().
Referenced by SALOMEDS_Study_i::SetBoolean(), SALOMEDS_Study::SetBoolean(), SALOMEDS_Study_i::SetInteger(), SALOMEDS_Study::SetInteger(), SALOMEDS_Study_i::SetReal(), and SALOMEDS_Study::SetReal().
|
static |
References GetSObject(), and GetStudyImpl().
Referenced by SALOMEDS_AttributeTarget_i::Add(), SALOMEDSImpl_StudyBuilder::Addreference(), SALOMEDSImpl_UseCaseBuilder::AddUseCase(), SALOMEDSImpl_SObject::FindSubObject(), SALOMEDSImpl_AttributeTarget::Get(), SALOMEDSImpl_UseCaseBuilder::GetCurrentObject(), SALOMEDSImpl_SObject::GetFather(), SALOMEDS_GenericAttribute_i::GetSObject(), SALOMEDSImpl_GenericAttribute::GetSObject(), SALOMEDSImpl_UseCaseBuilder::GetSObject(), Impl_SaveObject(), Paste(), PasteLabel(), SALOMEDSImpl_SObject::ReferencedObject(), SALOMEDS_AttributeTarget_i::Remove(), SALOMEDSImpl_StudyBuilder::RemoveObject(), SALOMEDSImpl_StudyBuilder::RemoveObjectWithChildren(), SALOMEDSImpl_StudyBuilder::RemoveReference(), SALOMEDSImpl_ChildIterator::SALOMEDSImpl_ChildIterator(), SALOMEDSImpl_UseCaseBuilder::SortChildren(), Translate_IOR_to_persistentID(), Translate_persistentID_to_IOR(), SALOMEDSImpl_ChildIterator::Value(), and SALOMEDSImpl_UseCaseIterator::Value().
| void SALOMEDSImpl_Study::UnLockStudy | ( | const char * | theLockerID | ) |
Function : UnLockStudy Purpose :
< TODO: conversion from size_t to int
References _lockers.
Referenced by main(), SALOMEDS_Study_i::UnLockStudy(), and SALOMEDS_Study::UnLockStudy().
|
static |
Indirectly invokes GenericObj_i::UnRegister()
References DF_Label::GetDocument(), and getGenObjRegister().
Referenced by SALOMEDSImpl_AttributeIOR::SetValue(), Translate_persistentID_to_IOR(), and SALOMEDSImpl_AttributeIOR::~SALOMEDSImpl_AttributeIOR().
|
virtual |
References _doc, _errorCode, DF_Label::Label(), DF_Document::Main(), and myIORLabels.
Referenced by IORUpdated(), and SALOMEDS_Study_i::UpdateIORLabelMap().
|
virtual |
method to get URL of the study (idem GetPersistentReference)
Function : URL Purpose : get URL of the study (persistent reference of the study)
References _errorCode, and _URL.
Referenced by Clear(), GetPersistentReference(), Impl_SaveAs(), Open(), Save(), SALOMEDS_Study::URL(), and SALOMEDS_Study_i::URL().
|
virtual |
method to set URL of the study
Function : URL Purpose : set URL of the study (persistent reference of the study)
References _errorCode, _name, and _URL.
|
friend |
|
friend |
|
private |
Referenced by Clear(), Copy(), Init(), SALOMEDSImpl_Study(), and ~SALOMEDSImpl_Study().
|
private |
Referenced by EnableUseCaseAutoFilling(), Init(), and NewBuilder().
|
private |
Referenced by Clear(), EnableUseCaseAutoFilling(), Init(), and NewBuilder().
|
private |
Referenced by Clear(), EnableUseCaseAutoFilling(), Init(), and NewBuilder().
|
private |
Referenced by CanPaste(), Copy(), Paste(), SALOMEDSImpl_Study(), and ~SALOMEDSImpl_Study().
|
private |
|
private |
Referenced by DumpStudy(), and GetDumpPath().
|
private |
Referenced by CanCopy(), CanPaste(), SALOMEDSImpl_GenericAttribute::CheckLocked(), Copy(), CopyLabel(), CreateObjectID(), dump(), DumpStudy(), EnableUseCaseAutoFilling(), FindComponent(), FindComponentID(), FindDependances(), FindObject(), FindObjectByName(), FindObjectByPath(), FindObjectID(), FindObjectIOR(), GetLastModificationDate(), GetModificationsDate(), GetObjectPath(), GetObjectPathByIOR(), GetPersistentReference(), GetProperties(), GetUseCaseBuilder(), Impl_SaveAs(), Impl_SaveObject(), Impl_SaveProperties(), Init(), IsEmpty(), IsLocked(), IsModified(), IsSaved(), Modify(), Name(), NewBuilder(), NewChildIterator(), NewComponentIterator(), Open(), Paste(), PasteLabel(), Save(), SaveAs(), UpdateIORLabelMap(), and URL().
|
private |
Referenced by Init().
|
private |
Referenced by GetLockerID(), IsStudyLocked(), SetStudyLock(), and UnLockStudy().
|
private |
Referenced by Clear(), and GetSComponent().
|
private |
Referenced by Clear(), and GetSObject().
|
private |
Referenced by addSO_Notification(), Init(), modifySO_Notification(), removeSO_Notification(), and setNotifier().
|
private |
Referenced by Clear(), GetUseCaseBuilder(), and Init().
|
private |
Referenced by DeleteIORLabelMapItem(), FindObjectIOR(), GetIORs(), and UpdateIORLabelMap().
|
private |