#include <message.h>
Inheritance diagram for Dv::Net::Message< T >:


Public Member Functions | |
| Message (const T &t=T()) throw (std::runtime_error) | |
| Constructor. | |
| ~Message () | |
| Destructor. | |
| operator T () const throw (std::runtime_error) | |
Reconstruct T by reading from stringstream on data. | |
Private Attributes | |
| std::ostrstream | oss_ |
Using this template, anything that can be printed (using operator>>) can be sent and anything that can be read using operator<< can be received. The template parameter type also needs a default constructor.
Definition at line 97 of file message.h.
|
||||||||||
|
Constructor.
Stores output of References Dv::Net::SimpleMessage::data(), and Dv::Net::Message< T >::oss_. |
|
|||||||||
|
Destructor. Definition at line 106 of file message.h. References Dv::Net::Message< T >::oss_. |
|
|||||||||
|
Reconstruct Definition at line 110 of file message.h. References Dv::Net::SimpleMessage::data(), and Dv::Net::SimpleMessage::size(). |
|
|||||
|
Definition at line 118 of file message.h. Referenced by Dv::Net::Message< T >::Message(), and Dv::Net::Message< T >::~Message(). |
| dvnet-0.9.11 | [27 December, 2004] |