Nebula
Loading...
Searching...
No Matches
iointerfacehandler.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
13#include "io/console.h"
14#include "io/ioserver.h"
16
17//------------------------------------------------------------------------------
18namespace IO
19{
21{
23public:
27 virtual ~IoInterfaceHandler();
28
30 virtual void Open();
32 virtual void Close();
34 virtual bool HandleMessage(const Ptr<Messaging::Message>& msg);
35
36protected:
42 void OnDeleteFile(const Ptr<IO::DeleteFile>& msg);
44 void OnWriteStream(const Ptr<IO::WriteStream>& msg);
46 void OnReadStream(const Ptr<IO::ReadStream>& msg);
48 void OnCopyFile(const Ptr<IO::CopyFile>& msg);
51
53};
54
55} // namespace IO
56//------------------------------------------------------------------------------
57
58
Handler class for io interfaces.
Definition iointerfacehandler.h:21
void OnMountArchive(const Ptr< IO::MountArchive > &msg)
handle MountArchive message
Definition iointerfacehandler.cc:107
void OnCreateDirectory(const Ptr< IO::CreateDirectory > &msg)
handle CreateDirectory message
Definition iointerfacehandler.cc:117
virtual void Close()
close the handler
Definition iointerfacehandler.cc:52
void OnWriteStream(const Ptr< IO::WriteStream > &msg)
handle WriteStream message
Definition iointerfacehandler.cc:157
Ptr< IO::IoServer > ioServer
Definition iointerfacehandler.h:52
void OnCopyFile(const Ptr< IO::CopyFile > &msg)
handle CopyFile message
Definition iointerfacehandler.cc:137
IoInterfaceHandler()
constructor
Definition iointerfacehandler.cc:19
void OnDeleteDirectory(const Ptr< IO::DeleteDirectory > &msg)
handle DeleteDirectory message
Definition iointerfacehandler.cc:127
virtual void Open()
open the handler
Definition iointerfacehandler.cc:39
void OnReadStream(const Ptr< IO::ReadStream > &msg)
handle ReadStream message
Definition iointerfacehandler.cc:188
virtual ~IoInterfaceHandler()
destructor
Definition iointerfacehandler.cc:26
virtual bool HandleMessage(const Ptr< Messaging::Message > &msg)
handle a message, return true if handled
Definition iointerfacehandler.cc:63
__DeclareClass(IoInterfaceHandler)
void OnDeleteFile(const Ptr< IO::DeleteFile > &msg)
handle DeleteFile message
Definition iointerfacehandler.cc:147
Base class for message handlers attached to Interface objects.
Definition interfacehandlerbase.h:19
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Instances of wrapped stream classes.
Definition orientation.cc:10