X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOMEDSClient%2FSALOMEDSClient_Study.hxx;h=8732b23d50c39a24acbf0857f5c3f7627c78aeb6;hb=074699f122e9bfd758dc805ca0023d355ce25ec5;hp=5492ffd4ae670c84e458feb3e34f129bac137f72;hpb=cd5265c03df3fa45b5c15edd02c06d2e0efb2b2e;p=modules%2Fkernel.git diff --git a/src/SALOMEDSClient/SALOMEDSClient_Study.hxx b/src/SALOMEDSClient/SALOMEDSClient_Study.hxx index 5492ffd4a..8732b23d5 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_Study.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_Study.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -49,8 +49,12 @@ class SALOMEDSClient_Study public: virtual ~SALOMEDSClient_Study() {} + virtual void Init() = 0; + virtual void Clear() = 0; + + virtual bool Open(const std::string& theStudyUrl) = 0; + virtual std::string GetPersistentReference() = 0; - virtual std::string GetTransientReference() = 0; virtual bool IsEmpty() = 0; virtual _PTR(SComponent) FindComponent (const std::string& aComponentName) = 0; virtual _PTR(SComponent) FindComponentID(const std::string& aComponentID) = 0; @@ -61,31 +65,30 @@ public: virtual _PTR(SObject) FindObjectIOR(const std::string& anObjectIOR) = 0; virtual _PTR(SObject) FindObjectByPath(const std::string& thePath) = 0; virtual std::string GetObjectPath(const _PTR(SObject)& theSO) = 0; - virtual void SetContext(const std::string& thePath) = 0; - virtual std::string GetContext() = 0; - virtual std::vector GetObjectNames(const std::string& theContext) = 0; - virtual std::vector GetDirectoryNames(const std::string& theContext) = 0; - virtual std::vector GetFileNames(const std::string& theContext) = 0; - virtual std::vector GetComponentNames(const std::string& theContext) = 0; virtual _PTR(ChildIterator) NewChildIterator(const _PTR(SObject)& theSO) = 0; virtual _PTR(SComponentIterator) NewComponentIterator() = 0; virtual _PTR(StudyBuilder) NewBuilder() = 0; virtual std::string Name() = 0; - virtual void Name(const std::string& name) = 0; virtual bool IsSaved() = 0; virtual void IsSaved(bool save) = 0; virtual bool IsModified() = 0; virtual void Modified() = 0; virtual std::string URL() = 0; virtual void URL(const std::string& url) = 0; - virtual int StudyId() = 0; - virtual void StudyId(int id) = 0; virtual std::vector<_PTR(SObject)> FindDependances(const _PTR(SObject)& theSO) = 0; virtual _PTR(AttributeStudyProperties) GetProperties() = 0; virtual std::string GetLastModificationDate() = 0; virtual std::vector GetModificationsDate() = 0; virtual _PTR(UseCaseBuilder) GetUseCaseBuilder() = 0; - virtual void Close() = 0; + + virtual bool Save(bool theMultiFile, bool theASCII) = 0; + virtual bool SaveAs(const std::string& theUrl, bool theMultiFile, bool theASCII) = 0; + + virtual bool CanCopy(const _PTR(SObject)& theSO) = 0; + virtual bool Copy(const _PTR(SObject)& theSO) = 0; + virtual bool CanPaste(const _PTR(SObject)& theSO) = 0; + virtual _PTR(SObject) Paste(const _PTR(SObject)& theSO) = 0; + virtual void EnableUseCaseAutoFilling(bool isEnabled) = 0; virtual bool DumpStudy(const std::string& thePath, const std::string& theBaseName,