Nebula
Loading...
Searching...
No Matches
messagewriter.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "io/streamwriter.h"
13#include "io/binarywriter.h"
14
15//------------------------------------------------------------------------------
16namespace Messaging
17{
18class Message;
19
21{
23public:
27 virtual void SetStream(const Ptr<IO::Stream>& s);
29 void WriteMessage(const Ptr<Message>& msg);
30
31private:
33};
34
35} // namespace Messaging
36//------------------------------------------------------------------------------
Stream writer classes provide a specialized write-interface for a stream.
Definition streamwriter.h:22
Implements a binary stream protocol for encoding messages into streams.
Definition messagewriter.h:21
virtual void SetStream(const Ptr< IO::Stream > &s)
set stream to write to
Definition messagewriter.cc:30
__DeclareClass(MessageWriter)
MessageWriter()
constructor
Definition messagewriter.cc:21
void WriteMessage(const Ptr< Message > &msg)
write a complete message to the stream
Definition messagewriter.cc:44
Ptr< IO::BinaryWriter > binaryWriter
Definition messagewriter.h:32
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Definition asyncport.cc:10