nMessageMock Class Reference

#include <nMessageMock.h>

List of all members.

Public Member Functions

 nMessageMock ()
 ~nMessageMock ()
void receive ()
void Write (unsigned short x)
void Read (unsigned short &x)
nMessageMockoperator<< (const float &x)
nMessageMockoperator>> (float &x)
nMessageMockoperator<< (const unsigned short &x)
nMessageMockoperator>> (unsigned short &x)
nMessageMockoperator<< (const int &x)
nMessageMockoperator>> (int &x)

Protected Attributes

std::ostringstream out
std::istream in


Detailed Description

Definition at line 8 of file nMessageMock.h.


Constructor & Destructor Documentation

nMessageMock::nMessageMock (  ) 

Definition at line 3 of file nMessageMock.cpp.

00003 :out(),in(out.rdbuf()) {}

nMessageMock::~nMessageMock (  ) 

Definition at line 4 of file nMessageMock.cpp.

00004 {}


Member Function Documentation

void nMessageMock::receive (  ) 

Definition at line 6 of file nMessageMock.cpp.

References out.

00007 {
00008     //  out(in.rdbuf());
00009 
00010     std::cerr << ">>" << out.str() << "<<" << std::endl;
00011 }

void nMessageMock::Write ( unsigned short  x  ) 

Definition at line 13 of file nMessageMock.cpp.

References out.

00013 { out << x; }

void nMessageMock::Read ( unsigned short &  x  ) 

Definition at line 14 of file nMessageMock.cpp.

References in.

00014 { in >> x; }

nMessageMock & nMessageMock::operator<< ( const float &  x  ) 

Definition at line 16 of file nMessageMock.cpp.

References out.

00016 { out << x; return *this; }

nMessageMock & nMessageMock::operator>> ( float &  x  ) 

Definition at line 20 of file nMessageMock.cpp.

References in.

00020 { in >> x; return *this; }

nMessageMock & nMessageMock::operator<< ( const unsigned short &  x  ) 

Definition at line 18 of file nMessageMock.cpp.

References out.

00018 { out << x; return *this; }

nMessageMock & nMessageMock::operator>> ( unsigned short &  x  ) 

Definition at line 22 of file nMessageMock.cpp.

References in.

00022 { in >> x; return *this; }

nMessageMock & nMessageMock::operator<< ( const int &  x  ) 

Definition at line 17 of file nMessageMock.cpp.

References out.

00017 { out << x; return *this; }

nMessageMock & nMessageMock::operator>> ( int &  x  ) 

Definition at line 21 of file nMessageMock.cpp.

References in.

00021 { in >> x; return *this; }


Member Data Documentation

std::ostringstream nMessageMock::out [protected]

Definition at line 10 of file nMessageMock.h.

Referenced by operator<<(), receive(), and Write().

std::istream nMessageMock::in [protected]

Definition at line 11 of file nMessageMock.h.

Referenced by operator>>(), and Read().


The documentation for this class was generated from the following files:
Generated on Sat Mar 15 23:48:11 2008 for Armagetron Advanced by  doxygen 1.5.4