src/GraphBase/DataFlowBase_ServicesParameter.hxx

Go to the documentation of this file.
00001 //  SUPERV GraphBase : contains fondamental classes for Services, Input Ports, Output Ports Links and Nodes.
00002 //
00003 //  Copyright (C) 2003  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 //
00024 //  File   : DataFlowBase_ServicesParameter.hxx
00025 //  Module : SUPERV
00026 
00027 #ifndef _DATAFLOWBASE_SERVICESPARAMETER_HXX
00028 #define _DATAFLOWBASE_SERVICESPARAMETER_HXX
00029 
00030 #include "DataFlowBase_Base.hxx"
00031 
00032 namespace GraphBase {
00033 
00034   class ServicesParameter : public Base {
00035 
00036     private:
00037 
00038       SALOME_ModuleCatalog::ServicesParameter _ServicesParameter ;
00039 
00040     public:   
00041 
00042       ServicesParameter() {
00043          //cout << "ServicesParameter()" << endl ;
00044          _ServicesParameter.Parametername = (char *) NULL ;
00045          _ServicesParameter.Parametertype = (char *) NULL ;
00046     } ;
00047       ServicesParameter( const SALOME_ModuleCatalog::ServicesParameter aserviceParameter ) {
00048           _ServicesParameter.Parametertype = CORBA::string_dup( aserviceParameter.Parametertype ) ;
00049           _ServicesParameter.Parametername = CORBA::string_dup( aserviceParameter.Parametername ) ; } ;
00050       virtual ~ServicesParameter() {
00051 //            cout << "ServicesParameter::~ServicesParameter()" << endl ;
00052     } ;
00053       const SALOME_ModuleCatalog::ServicesParameter & GetServicesParameter() const {
00054             return _ServicesParameter ; } ;
00055       const char * ServicesParameterName() const {
00056             return _ServicesParameter.Parametername ; } ;
00057       const char * ServicesParameterType() const {
00058             return _ServicesParameter.Parametertype ; } ;
00059       void ServicesParameterType(char * aParametertype ) { 
00060            _ServicesParameter.Parametertype = CORBA::string_dup( aParametertype ) ; } ;
00061 
00062   } ;
00063 
00064 } ;
00065 
00066 #endif