Back to index

salome-kernel  6.5.0
SALOMEDS_AttributeParameter_i.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 //  File   : SALOMEDS_AttributeParameter_i.hxx
00024 //  Author : Sergey RUIN
00025 //  Module : SALOME
00026 //  $Header:
00027 //
00028 #ifndef SALOMEDS_AttributeParameter_i_HeaderFile
00029 #define SALOMEDS_AttributeParameter_i_HeaderFile
00030 
00031 // IDL headers
00032 #include <SALOMEconfig.h>
00033 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
00034 
00035 #include "SALOMEDS_GenericAttribute_i.hxx"
00036 #include "SALOMEDSImpl_AttributeParameter.hxx"
00037 
00043 class SALOMEDS_AttributeParameter_i: public virtual POA_SALOMEDS::AttributeParameter,
00044                                      public virtual SALOMEDS_GenericAttribute_i 
00045 {
00046 public:
00047   
00048   SALOMEDS_AttributeParameter_i(SALOMEDSImpl_AttributeParameter* theAttr, CORBA::ORB_ptr orb) 
00049     :SALOMEDS_GenericAttribute_i(theAttr, orb) {}; 
00050 
00051   ~SALOMEDS_AttributeParameter_i() {};
00052 
00053 
00054   virtual void SetInt(const char* theID, CORBA::Long theValue);
00055   virtual CORBA::Long GetInt(const char* theID)
00056     throw (SALOMEDS::AttributeParameter::InvalidIdentifier);
00057 
00058   virtual void SetReal(const char* theID, CORBA::Double theValue);
00059   virtual CORBA::Double GetReal(const char* theID)
00060     throw (SALOMEDS::AttributeParameter::InvalidIdentifier);
00061 
00062   virtual void SetString(const char* theID, const char* theValue);
00063   virtual char* GetString(const char* theID)
00064     throw (SALOMEDS::AttributeParameter::InvalidIdentifier);
00065   
00066   virtual void SetBool(const char* theID, CORBA::Boolean theValue);
00067   virtual CORBA::Boolean GetBool(const char* theID)
00068     throw (SALOMEDS::AttributeParameter::InvalidIdentifier);
00069   
00070   virtual void SetRealArray(const char* theID, const SALOMEDS::DoubleSeq& theArray);
00071   virtual SALOMEDS::DoubleSeq* GetRealArray(const char* theID)
00072     throw (SALOMEDS::AttributeParameter::InvalidIdentifier);
00073   
00074   virtual void SetIntArray(const char* theID, const SALOMEDS::LongSeq& theArray);
00075   virtual SALOMEDS::LongSeq* GetIntArray(const char* theID)
00076     throw (SALOMEDS::AttributeParameter::InvalidIdentifier);
00077 
00078   virtual void SetStrArray(const char* theID, const SALOMEDS::StringSeq& theArray);
00079   virtual SALOMEDS::StringSeq* GetStrArray(const char* theID)
00080     throw (SALOMEDS::AttributeParameter::InvalidIdentifier);
00081   
00082   virtual CORBA::Boolean IsSet(const char* theID, CORBA::Long theType);
00083   
00084   virtual CORBA::Boolean RemoveID(const char* theID, CORBA::Long theType);
00085 
00086   virtual SALOMEDS::AttributeParameter_ptr GetFather();
00087   virtual CORBA::Boolean HasFather();
00088   virtual CORBA::Boolean IsRoot();
00089 
00090   virtual void Clear();
00091 
00092   virtual SALOMEDS::StringSeq* GetIDs(CORBA::Long theType);
00093 
00094 };
00095 
00096 
00097 
00098 
00099 #endif