X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOMEDSClient%2FSALOMEDSClient_Study.hxx;h=7dfe851db0a31ab74bd27f15fa08e946877fbd49;hb=991804e5e6def86ec8f17019e3dab9f3785431ba;hp=33182f67363a20a77610e0095caf759af88d9c23;hpb=f14439749926cca959747bb79fda10529520bd0b;p=modules%2Fyacs.git diff --git a/src/SALOMEDSClient/SALOMEDSClient_Study.hxx b/src/SALOMEDSClient/SALOMEDSClient_Study.hxx index 33182f673..7dfe851db 100644 --- a/src/SALOMEDSClient/SALOMEDSClient_Study.hxx +++ b/src/SALOMEDSClient/SALOMEDSClient_Study.hxx @@ -1,26 +1,29 @@ -// Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// Copyright (C) 2007-2012 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 -// +// // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either +// License as published by the Free Software Foundation; either // version 2.1 of the License. -// -// This library is distributed in the hope that it will be useful -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. // -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // + // File : SALOMEDSClient_Study.hxx // Author : Sergey RUIN // Module : SALOME - +// #ifndef __SALOMEDSClient_STUDY_H__ #define __SALOMEDSClient_STUDY_H__ @@ -36,6 +39,9 @@ #include "SALOMEDSClient_UseCaseBuilder.hxx" #include "SALOMEDSClient_AttributeStudyProperties.hxx" #include "SALOMEDSClient_ChildIterator.hxx" +#include "SALOMEDSClient_Observer.hxx" +#include +#include CORBA_CLIENT_HEADER(SALOMEDS) class SALOMEDSClient_Study { @@ -82,15 +88,45 @@ public: virtual void Close() = 0; virtual void EnableUseCaseAutoFilling(bool isEnabled) = 0; virtual bool DumpStudy(const std::string& thePath, - const std::string& theBaseName, - bool isPublished) = 0; + const std::string& theBaseName, + bool isPublished, + bool isMultiFile) = 0; virtual _PTR(AttributeParameter) GetCommonParameters(const std::string& theID, int theSavePoint) = 0; virtual _PTR(AttributeParameter) GetModuleParameters(const std::string& theID, - const std::string& theModuleName, int theSavePoint) = 0; + const std::string& theModuleName, int theSavePoint) = 0; virtual void SetStudyLock(const std::string& theLockerID) = 0; virtual bool IsStudyLocked() = 0; virtual void UnLockStudy(const std::string& theLockerID) = 0; virtual std::vector GetLockerID() = 0; + + virtual void SetReal(const std::string& theVarName, const double theValue) = 0; + virtual void SetInteger(const std::string& theVarName, const int theValue) = 0; + virtual void SetBoolean(const std::string& theVarName, const bool theValue) = 0; + virtual void SetString(const std::string& theVarName, const std::string& theValue) = 0; + virtual void SetStringAsDouble(const std::string& theVarName, const double theValue) = 0; + + virtual double GetReal(const std::string& theVarName) = 0; + virtual int GetInteger(const std::string& theVarName) = 0; + virtual bool GetBoolean(const std::string& theVarName) = 0; + virtual std::string GetString(const std::string& theVarName) = 0; + + virtual bool IsReal(const std::string& theVarName) = 0; + virtual bool IsInteger(const std::string& theVarName) = 0; + virtual bool IsBoolean(const std::string& theVarName) = 0; + virtual bool IsString(const std::string& theVarName) = 0; + + virtual bool IsVariable(const std::string& theVarName) = 0; + virtual std::vector GetVariableNames() = 0; + + virtual bool RemoveVariable(const std::string& theVarName) = 0; + virtual bool RenameVariable(const std::string& theVarName, + const std::string& theNewVarName) = 0; + virtual bool IsVariableUsed(const std::string& theVarName) = 0; + + virtual std::vector< std::vector > ParseVariables(const std::string& theVars) = 0; + + virtual void attach(SALOMEDS::Observer_ptr theObserver,bool modify) = 0; + };