Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PsIncomingSynchronisationMessage.h

Go to the documentation of this file.
00001 #ifndef PsIncomingSynchronisationMessageHEADER
00002 #define PsIncomingSynchronisationMessageHEADER
00003 
00010 #ifdef _USESSTREAM
00011 #include <sstream>
00012 #else
00013 #include <strstream>
00014 #endif
00015 #include <string>
00016 
00017 using namespace std ;
00018 
00019 class PsPackable ;
00020 
00021 #include "PsNumericType.h"
00022 
00029 class PsIncomingSynchronisationMessage
00030 {
00031 public:
00033    virtual ~PsIncomingSynchronisationMessage() ;
00034 
00036    PsIncomingSynchronisationMessage () ;
00037 
00039    virtual const PsDate & getMessageDate() = 0 ;
00040 
00042    template <typename T>
00043    PsIncomingSynchronisationMessage & operator >> (T & val) 
00044    {
00045       get ( val ) ; 
00046       return *this ;
00047    }
00048 
00050    PsIncomingSynchronisationMessage & operator >> (char * val) ;
00051 
00053    virtual void get ( PsPackable & val ) ;
00054 
00056    virtual void get ( bool & val ) = 0 ;
00057 
00059    virtual void get ( char & val ) = 0 ;
00060 
00062    virtual void get ( long & val ) = 0 ;
00063 
00065    virtual void get ( unsigned long & val ) = 0 ;
00066    
00068    virtual void get ( int & val ) = 0 ;
00069 
00071    virtual void get ( unsigned int & val ) = 0 ;
00072 
00074    virtual void get ( float & val ) = 0 ;
00075 
00077    virtual void get ( double & val) = 0 ;
00078 
00080    virtual void get ( short & val ) = 0 ;
00081 
00083    virtual void get ( unsigned short & val ) = 0 ;
00084 
00086    virtual void get (char * val) = 0 ;
00087 
00089    virtual void get ( string & val ) = 0 ;
00090 
00091 
00093    virtual void get ( char * val, int cnt ) = 0 ;
00094 
00096    virtual void get ( long * val, int cnt ) = 0 ;
00097 
00099    virtual void get ( unsigned long * val, int cnt ) = 0 ;
00100    
00102    virtual void get ( int * val, int cnt ) = 0 ;
00103 
00105    virtual void get ( unsigned int * val, int cnt ) = 0 ;
00106 
00108    virtual void get ( float * val, int cnt ) = 0 ;
00109 
00111    virtual void get ( double * val, int cnt ) = 0 ;
00112 
00114    virtual void get ( short * val, int cnt ) = 0 ;
00115 
00117    virtual void get ( unsigned short * val, int cnt ) = 0 ;
00118 
00120 #ifdef _USESSTREAM
00121    istringstream & getInputStream () ;
00122 #else
00123    istrstream & getInputStream () ;
00124 #endif
00125 
00129   virtual void unpackInputStream ( ) ;
00130 protected:
00132 #ifdef _USESSTREAM
00133    istringstream * _myis ;
00134 #else
00135   istrstream * _myis ;
00136 #endif
00137 };
00138 
00139 #endif

logo OpenMask

Documentation generated on Mon Nov 25 15:24:59 2002

Generated with doxygen 1.2.12 by Dimitri van Heesch ,   1997-2001