common/message.h File Reference

#include <sys/types.h>
#include <loki/SmartPtr.h>

Include dependency graph for message.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Message
 An object that contains messages or data to be passed. More...
class  Data
 A sub-class of Message that makes it more clear that this Message object only exists as a chunk of data. More...

Typedefs

typedef Loki::SmartPtr
< Message,
Loki::RefCountedMTAdj
< Loki::ObjectLevelLockable >
::RefCountedMT,
Loki::DisallowConversion,
Loki::AssertCheck,
Loki::LockedStorage > 
MessageP
 The typedef used to deal with Message objects.

Functions

std::ostream & operator<< (std::ostream &out, const Data &blob)
 This can only take a Data object.


Typedef Documentation

typedef Loki::SmartPtr<Message, Loki::RefCountedMTAdj<Loki::ObjectLevelLockable>::RefCountedMT, Loki::DisallowConversion, Loki::AssertCheck, Loki::LockedStorage> MessageP

The typedef used to deal with Message objects.

Definition at line 122 of file message.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const Data blob 
)

This can only take a Data object.

Should it maybe know how to take a MessageP? Then it would have to do something intelligent with non-Data messages.

This can only take a Data object.

Note:
This can be used to effectively view the blob as a text string, if it is textual data.

Definition at line 153 of file message.cc.

References Data::data(), and Data::len().

Here is the call graph for this function:


Generated on Tue May 13 11:32:39 2008 for consmgr by  doxygen 1.5.5