OMKIncomingSynchronisationMessage.cpp

Go to the documentation of this file.
00001 #include "OMKIncomingSynchronisationMessage.h"
00002 
00003 #include "OMKPackable.h"
00004 #include "OMKTracer.h"
00005 #include <typeinfo>
00006 
00007 using namespace std ;
00008 using namespace OMK ;
00009 
00010 IncomingSynchronisationMessage::IncomingSynchronisationMessage() :
00011    _myis ( 0 )
00012 {
00013 }
00014 
00015 
00016 IncomingSynchronisationMessage::~IncomingSynchronisationMessage()
00017 {
00018    delete _myis ;
00019 }
00020 
00021 istringstream & IncomingSynchronisationMessage::getInputStream () 
00022 {
00023    OMASSERT( _myis != NULL ) ;
00024    return *_myis ;
00025 }
00026 
00027 
00028 
00029 void IncomingSynchronisationMessage::unpackInputStream ( ) 
00030 {
00031    delete _myis ;
00032 
00033    string inputStream ;
00034    get ( inputStream ) ;
00035   _myis = new istringstream ( inputStream ) ;
00036 }
00037 
00038 
00039 
00040 IncomingSynchronisationMessage & IncomingSynchronisationMessage::operator >> (char * val) 
00041 {
00042    get ( val ) ; 
00043    return *this ;
00044 }
00045 
00046 
00047 void IncomingSynchronisationMessage::get (Packable & val) 
00048 {
00049    val.unpack(*this) ;
00050 }

logo OpenMask

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

Generated with doxygen by Dimitri van Heesch ,   1997-2007