Back to index

salome-kernel  6.5.0
SALOMEDS_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 SALOMEDS_IParameters_H
00024 #define SALOMEDS_IParameters_H
00025 
00026 #include <string>
00027 #include <vector>
00028 #include <map>
00029 
00030 #include "SALOMEDSClient.hxx"
00031 #include "SALOMEDSClient_IParameters.hxx"
00032 
00036 class SALOMEDS_IParameters: public SALOMEDSClient_IParameters
00037 {
00038 public:
00039   SALOMEDS_IParameters(const _PTR(AttributeParameter)& ap); 
00040 
00041   virtual ~SALOMEDS_IParameters();
00042 
00048   virtual int append(const std::string& listName, const std::string& value); 
00049 
00053   virtual int nbValues(const std::string& listName);
00054 
00058   virtual std::vector<std::string> getValues(const std::string& listName);
00059 
00063   virtual std::string getValue(const std::string& listName, int index);
00064 
00068   virtual std::vector<std::string> getLists();
00069 
00073   virtual void setParameter(const std::string& entry, const std::string& parameterName, const std::string& value);
00074 
00078   virtual std::string getParameter(const std::string& entry, const std::string& parameterName);
00079 
00083   virtual void setIdParameter(const std::string& entry, const std::string& value);
00084 
00088   virtual std::string getIdParameter(const std::string& entry);
00089 
00093   virtual std::vector<std::string> getAllParameterNames(const std::string& entry);
00094 
00098   virtual std::vector<std::string> getAllParameterValues(const std::string& entry);
00099 
00103   virtual int getNbParameters(const std::string& entry);
00104 
00108   virtual std::vector<std::string> getEntries();
00109 
00113   virtual void setProperty(const std::string& name, const std::string& value);
00114 
00118   virtual std::string getProperty(const std::string& name);
00119 
00123   virtual std::vector<std::string> getProperties();
00124 
00129   virtual std::vector<std::string> parseValue(const std::string& value, const char separator, bool fromEnd = true);
00130 
00131 
00135   virtual std::string encodeEntry(const std::string& entry, const std::string& compName);
00136 
00140   virtual std::string decodeEntry(const std::string& entry);
00141 
00145   virtual void setDumpPython(_PTR(Study) study, const std::string& theID = "");
00146 
00150   virtual bool isDumpPython(_PTR(Study) study, const std::string& theID = "");  
00151 
00155   virtual std::string getDefaultVisualComponent();
00156 
00157 private:
00158   _PTR(AttributeParameter) _ap;
00159   _PTR(Study) _study;
00160   std::map<std::string, std::string> _compNames;
00161 };
00162 
00163 
00164 #endif