OMKAddInputListenerPrm.h

Go to the documentation of this file.
00001 /************************************************************************/
00002 /* This file is part of openMask(c) INRIA, CNRS, Universite de Rennes 1 */
00003 /* 1993-2002, thereinafter the Software                                 */
00004 /*                                                                      */
00005 /* The Software has been developped within the Siames Project.          */
00006 /* INRIA, the University of Rennes 1 and CNRS jointly hold intellectual */
00007 /* property rights                                                      */
00008 /*                                                                      */
00009 /* The Software has been registered with the Agence pour la Protection  */
00010 /* des Programmes (APP) under registration number                       */
00011 /* IDDN.FR.001.510008.00.S.P.2001.000.41200                             */
00012 /*                                                                      */
00013 /* This file may be distributed under the terms of the Q Public License */
00014 /* version 1.0 as defined by Trolltech AS of Norway and appearing in    */
00015 /* the file LICENSE.QPL included in the packaging of this file.         */
00016 /*                                                                      */
00017 /* Licensees holding valid specific licenses issued by INRIA, CNRS or   */
00018 /* Universite Rennes 1 for the software may use this file in            */
00019 /* acordance with that specific license                                 */
00020 /************************************************************************/
00021                 
00022 
00023 #if !defined OMK_INP_ADDINPUTLISTENERPRM_H
00024 #define OMK_INP_ADDINPUTLISTENERPRM_H
00025 
00026 #include "OMKBase.h" 
00027 #include <string> 
00028 #include "OMKConfigurationParameterDescriptor.h"
00029 #include "OMKTracer.h"
00030 #include "OMKName.h"
00031 #include "OMKInputs.h"
00032 
00033 namespace OMK
00034 {
00035 class SimulatedObject ; 
00036 class ConfigurationParameterDescriptor ;
00037 namespace Inp
00038 {
00039 
00047   class OMKINPUTS_API AddInputListenerPrm : public OMK::Type::Base
00048 {
00049 public:
00051 
00052 
00053   AddInputListenerPrm();
00055   AddInputListenerPrm( const AddInputListenerPrm& ref ) ;
00057   AddInputListenerPrm( const std::string& listenerId,
00058                   const Name& classId,
00059                   const std::string& VisBase,
00060                   const ConfigurationParameterDescriptor* configParam ) ;
00062   virtual ~AddInputListenerPrm() ;
00064 
00066 
00067 public:
00069   virtual void resetDefaultValues() ;
00081   virtual bool loadParameters( const ConfigurationParameterDescriptor * node, 
00082                                const std::string& prefix = "", 
00083                                SimulatedObject* p = 0 ) ;
00084 protected:
00086   bool innerParametersLoader( const ConfigurationParameterDescriptor * node, 
00087                               const std::string& prefix = "", 
00088                               SimulatedObject* p = 0 ) ;
00090 
00092 
00093 public:
00095   void setListenerId( const std::string& listenerId ) { _listenerId = listenerId ; }
00097   const std::string& getListenerId() const { return _listenerId ; }
00098 
00100   void setClassId( const Name& classId ) { _classId = classId ; }
00102   const Name& getClassId() const { return _classId ; }
00103 
00105   void setVisBase( const std::string& visBase ) { _visBase = visBase ; }
00107   const std::string& getVisBase() const { return _visBase ; }
00108 
00110   void setConfigParam( const ConfigurationParameterDescriptor* configParam ) { _configParam = configParam ; }
00112   const ConfigurationParameterDescriptor* getConfigParam() const { return _configParam ; }
00114 
00116 
00117 
00118   bool operator == ( const AddInputListenerPrm& ref ) const { return !( *this != ref ) ; } 
00120   bool operator != ( const AddInputListenerPrm& ref ) const ;
00122   AddInputListenerPrm& operator = ( const AddInputListenerPrm& ref ) ;
00124   
00126 
00127 public:
00129   virtual void insertInStream( std::ostream& = std::cout ) const ;
00131   virtual void extract       ( std::istream& = std::cin  ) ;
00132 
00134   virtual void pack  ( OutgoingSynchronisationMessage& out ) const ;
00136   virtual void unpack( IncomingSynchronisationMessage& in  ) ;
00137 
00139   virtual OMK::Type::PolatorNT* createPolator() ;
00141 protected:
00143   void _copy( const AddInputListenerPrm& ref ) ;
00144   
00146 
00147 
00148 
00149 
00150   std::string _listenerId ;
00154   Name _classId ;
00158   std::string _visBase ;
00162   const ConfigurationParameterDescriptor* _configParam ;
00164 } ;
00165     } // namespace Inp
00166 } // namespace OMK
00167 #endif // defined OMK_INP_ADDINPUTLISTENERPRM_H

logo OpenMask

Documentation generated on Mon Jun 9 11:45:55 2008

Generated with doxygen by Dimitri van Heesch ,   1997-2007