27 #ifndef __SALOMEDS_STUDY_H__
28 #define __SALOMEDS_STUDY_H__
37 #include <SALOMEconfig.h>
38 #include CORBA_SERVER_HEADER(SALOMEDS)
58 virtual bool Open(
const std::string& theStudyUrl);
59 virtual bool CanOpen(
const std::string& theStudyUrl);
61 virtual bool Save(
bool theMultiFile,
bool theASCII);
62 virtual bool SaveAs(
const std::string& theUrl,
bool theMultiFile,
bool theASCII);
65 virtual bool Copy(
const _PTR(SObject)& theSO);
74 virtual std::vector<
_PTR(SObject)>
FindObjectByName(
const std::string& anObjectName,
const std::string& aComponentName ) ;
83 virtual std::string
Name();
84 virtual void Name(
const std::string&
name);
86 virtual void IsSaved(
bool save);
89 virtual std::string
URL();
90 virtual void URL(
const std::string& url);
97 virtual bool DumpStudy(
const std::string& thePath,
const std::string& theBaseName,
bool isPublished,
bool isMultiFile);
100 const std::string& theModuleName,
int theSavePoint);
101 virtual void SetStudyLock(
const std::string& theLockerID);
103 virtual void UnLockStudy(
const std::string& theLockerID);
106 virtual void SetReal(
const std::string& theVarName,
const double theValue);
107 virtual void SetInteger(
const std::string& theVarName,
const int theValue);
108 virtual void SetBoolean(
const std::string& theVarName,
const bool theValue);
109 virtual void SetString(
const std::string& theVarName,
const std::string& theValue);
110 virtual void SetStringAsDouble(
const std::string& theVarName,
const double theValue);
112 virtual double GetReal(
const std::string& theVarName);
113 virtual int GetInteger(
const std::string& theVarName);
114 virtual bool GetBoolean(
const std::string& theVarName);
115 virtual std::string
GetString(
const std::string& theVarName);
117 virtual bool IsReal(
const std::string& theVarName);
118 virtual bool IsInteger(
const std::string& theVarName);
119 virtual bool IsBoolean(
const std::string& theVarName);
120 virtual bool IsString(
const std::string& theVarName);
122 virtual bool IsVariable(
const std::string& theVarName);
126 virtual bool RenameVariable(
const std::string& theVarName,
const std::string& theNewVarName);
128 virtual std::vector< std::vector<std::string> >
ParseVariables(
const std::string& theVars);
129 virtual void attach(SALOMEDS::Observer_ptr theObserver,
bool modify);
130 virtual void detach(SALOMEDS::Observer_ptr theObserver);
132 std::string ConvertObjectToIOR(CORBA::Object_ptr theObject);
133 CORBA::Object_ptr ConvertIORToObject(
const std::string& theIOR);
#define Standard_EXPORT
Definition: DF_definitions.hxx:53
#define _PTR(Class)
Definition: SALOMEDSClient_definitions.hxx:72
Definition: SALOMEDSClient_Study.hxx:47
virtual int GetInteger(const std::string &theVarName)=0
virtual clt_shared_ptr< SALOMEDSClient_SObject > FindObject(const std::string &anObjectName)=0
virtual void SetReal(const std::string &theVarName, const double theValue)=0
virtual bool CanCopy(const clt_shared_ptr< SALOMEDSClient_SObject > &theSO)=0
virtual clt_shared_ptr< SALOMEDSClient_ChildIterator > NewChildIterator(const clt_shared_ptr< SALOMEDSClient_SObject > &theSO)=0
virtual bool Save(bool theMultiFile, bool theASCII)=0
virtual std::string URL()=0
virtual std::vector< std::string > GetVariableNames()=0
virtual std::vector< clt_shared_ptr< SALOMEDSClient_SObject > > FindObjectByName(const std::string &anObjectName, const std::string &aComponentName)=0
virtual void Modified()=0
virtual bool DumpStudy(const std::string &thePath, const std::string &theBaseName, bool isPublished, bool isMultiFile)=0
virtual clt_shared_ptr< SALOMEDSClient_StudyBuilder > NewBuilder()=0
virtual clt_shared_ptr< SALOMEDSClient_AttributeStudyProperties > GetProperties()=0
virtual void SetStudyLock(const std::string &theLockerID)=0
virtual void SetInteger(const std::string &theVarName, const int theValue)=0
virtual bool IsString(const std::string &theVarName)=0
virtual bool IsBoolean(const std::string &theVarName)=0
virtual bool RemoveVariable(const std::string &theVarName)=0
virtual bool GetBoolean(const std::string &theVarName)=0
virtual std::string GetObjectPath(const clt_shared_ptr< SALOMEDSClient_SObject > &theSO)=0
virtual clt_shared_ptr< SALOMEDSClient_SComponentIterator > NewComponentIterator()=0
virtual clt_shared_ptr< SALOMEDSClient_SObject > FindObjectID(const std::string &anObjectID)=0
virtual bool CanPaste(const clt_shared_ptr< SALOMEDSClient_SObject > &theSO)=0
virtual bool IsVariableUsed(const std::string &theVarName)=0
virtual bool Open(const std::string &theStudyUrl)=0
virtual bool CanOpen(const std::string &theStudyUrl)=0
virtual bool IsInteger(const std::string &theVarName)=0
virtual clt_shared_ptr< SALOMEDSClient_SObject > CreateObjectID(const std::string &anObjectID)=0
virtual bool IsReal(const std::string &theVarName)=0
virtual std::vector< clt_shared_ptr< SALOMEDSClient_SObject > > FindDependances(const clt_shared_ptr< SALOMEDSClient_SObject > &theSO)=0
virtual void SetString(const std::string &theVarName, const std::string &theValue)=0
virtual std::vector< std::string > GetLockerID()=0
virtual std::vector< std::string > GetModificationsDate()=0
virtual clt_shared_ptr< SALOMEDSClient_SObject > Paste(const clt_shared_ptr< SALOMEDSClient_SObject > &theSO)=0
virtual clt_shared_ptr< SALOMEDSClient_SObject > FindObjectByPath(const std::string &thePath)=0
virtual clt_shared_ptr< SALOMEDSClient_AttributeParameter > GetCommonParameters(const std::string &theID, int theSavePoint)=0
virtual clt_shared_ptr< SALOMEDSClient_SComponent > FindComponentID(const std::string &aComponentID)=0
virtual void detach(SALOMEDS::Observer_ptr theObserver)=0
virtual std::string GetPersistentReference()=0
virtual std::vector< std::vector< std::string > > ParseVariables(const std::string &theVars)=0
virtual void SetBoolean(const std::string &theVarName, const bool theValue)=0
virtual bool IsModified()=0
virtual void SetStringAsDouble(const std::string &theVarName, const double theValue)=0
virtual clt_shared_ptr< SALOMEDSClient_SObject > FindObjectIOR(const std::string &anObjectIOR)=0
virtual clt_shared_ptr< SALOMEDSClient_UseCaseBuilder > GetUseCaseBuilder()=0
virtual bool Copy(const clt_shared_ptr< SALOMEDSClient_SObject > &theSO)=0
virtual double GetReal(const std::string &theVarName)=0
virtual std::string GetString(const std::string &theVarName)=0
virtual bool SaveAs(const std::string &theUrl, bool theMultiFile, bool theASCII)=0
virtual bool IsVariable(const std::string &theVarName)=0
virtual std::string GetLastModificationDate()=0
virtual bool IsStudyLocked()=0
virtual clt_shared_ptr< SALOMEDSClient_AttributeParameter > GetModuleParameters(const std::string &theID, const std::string &theModuleName, int theSavePoint)=0
virtual std::string Name()=0
virtual void EnableUseCaseAutoFilling(bool isEnabled)=0
virtual void UnLockStudy(const std::string &theLockerID)=0
virtual bool RenameVariable(const std::string &theVarName, const std::string &theNewVarName)=0
virtual void attach(SALOMEDS::Observer_ptr theObserver, bool modify)=0
virtual clt_shared_ptr< SALOMEDSClient_SComponent > FindComponent(const std::string &aComponentName)=0
Definition: SALOMEDSImpl_Study.hxx:59
Definition: SALOMEDS_Study.hxx:41
SALOMEDSImpl_Study * GetLocalImpl()
Definition: SALOMEDS_Study.hxx:135
virtual _PTR(SComponentIterator) NewComponentIterator()
virtual _PTR(ChildIterator) NewChildIterator(const _PTR(SObject) &theSO)
bool _isLocal
Definition: SALOMEDS_Study.hxx:44
virtual _PTR(AttributeStudyProperties) GetProperties()
SALOMEDS::Study_var _corba_impl
Definition: SALOMEDS_Study.hxx:46
virtual _PTR(UseCaseBuilder) GetUseCaseBuilder()
virtual _PTR(SObject) Paste(const _PTR(SObject) &theSO)
SALOMEDSImpl_Study * _local_impl
Definition: SALOMEDS_Study.hxx:45
CORBA::ORB_var _orb
Definition: SALOMEDS_Study.hxx:47
virtual _PTR(StudyBuilder) NewBuilder()
string name
Definition: pythfilter.py:56