Back to index

salome-kernel  6.5.0
SALOMEDSClient_IParameters.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00004 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00005 //
00006 // This library is free software; you can redistribute it and/or
00007 // modify it under the terms of the GNU Lesser General Public
00008 // License as published by the Free Software Foundation; either
00009 // version 2.1 of the License.
00010 //
00011 // This library is distributed in the hope that it will be useful,
00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014 // Lesser General Public License for more details.
00015 //
00016 // You should have received a copy of the GNU Lesser General Public
00017 // License along with this library; if not, write to the Free Software
00018 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00019 //
00020 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00021 //
00022 
00023 #ifndef SALOMEDSClient_IParameters_H
00024 #define SALOMEDSClient_IParameters_H
00025 
00026 #include <string>
00027 #include <vector>
00028 #include <map>
00029 
00030 #include "SALOMEDSClient_definitions.hxx"
00031 #include "SALOMEDSClient_AttributeParameter.hxx"
00032 
00036 class SALOMEDSClient_IParameters
00037 {
00038 public:
00039   
00040    virtual ~SALOMEDSClient_IParameters() {}
00041 
00047   virtual int append(const std::string& listName, const std::string& value) = 0; 
00048 
00052   virtual int nbValues(const std::string& listName) = 0;
00053 
00057   virtual std::vector<std::string> getValues(const std::string& listName) = 0;
00058 
00062   virtual std::string getValue(const std::string& listName, int index) = 0;
00063 
00067   virtual std::vector<std::string> getLists() = 0;
00068 
00072   virtual void setParameter(const std::string& entry, const std::string& parameterName, const std::string& value) = 0;
00073 
00077   virtual std::string getParameter(const std::string& entry, const std::string& parameterName) = 0;
00078 
00082   virtual void setIdParameter(const std::string& entry, const std::string& value) = 0;
00083 
00087   virtual std::string getIdParameter(const std::string& entry) = 0;
00088 
00092   virtual std::vector<std::string> getAllParameterNames(const std::string& entry) = 0;
00093 
00097   virtual std::vector<std::string> getAllParameterValues(const std::string& entry) = 0;
00098 
00102   virtual int getNbParameters(const std::string& entry) = 0;
00103 
00107   virtual std::vector<std::string> getEntries() = 0;
00108 
00112   virtual void setProperty(const std::string& name, const std::string& value) = 0;
00113 
00117   virtual std::string getProperty(const std::string& name) = 0;
00118 
00122   virtual std::vector<std::string> getProperties() = 0;
00123 
00128   virtual std::vector<std::string> parseValue(const std::string& value, const char separator, bool fromEnd = true) = 0;
00129 
00130 
00134   virtual std::string encodeEntry(const std::string& entry, const std::string& compName) = 0;
00135 
00139   virtual std::string decodeEntry(const std::string& entry) = 0;
00140 
00144   virtual void setDumpPython(_PTR(Study) study, const std::string& theID = "") = 0;
00145 
00149   virtual bool isDumpPython(_PTR(Study) study, const std::string& theID = "") = 0;  
00150 
00155   virtual std::string getDefaultVisualComponent() = 0;
00156 
00157 };
00158 
00159 
00160 #endif