Nebula
Toggle main menu visibility
Loading...
Searching...
No Matches
iointerfacehandler.h
Go to the documentation of this file.
1
#pragma once
2
//------------------------------------------------------------------------------
12
#include "
interface/interfacehandlerbase.h
"
13
#include "
io/console.h
"
14
#include "
io/ioserver.h
"
15
#include "
io/iointerfaceprotocol.h
"
16
17
//------------------------------------------------------------------------------
18
namespace
IO
19
{
20
class
IoInterfaceHandler
:
public
Interface::InterfaceHandlerBase
21
{
22
__DeclareClass
(
IoInterfaceHandler
);
23
public
:
25
IoInterfaceHandler
();
27
virtual
~IoInterfaceHandler
();
28
30
virtual
void
Open
();
32
virtual
void
Close
();
34
virtual
bool
HandleMessage
(
const
Ptr<Messaging::Message>
& msg);
35
36
protected
:
38
void
OnCreateDirectory
(
const
Ptr<IO::CreateDirectory>
& msg);
40
void
OnDeleteDirectory
(
const
Ptr<IO::DeleteDirectory>
& msg);
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);
50
void
OnMountArchive
(
const
Ptr<IO::MountArchive>
& msg);
51
52
Ptr<IO::IoServer>
ioServer
;
53
};
54
55
}
// namespace IO
56
//------------------------------------------------------------------------------
57
58
IO::IoInterfaceHandler::OnMountArchive
void OnMountArchive(const Ptr< IO::MountArchive > &msg)
handle MountArchive message
Definition
iointerfacehandler.cc:107
IO::IoInterfaceHandler::OnCreateDirectory
void OnCreateDirectory(const Ptr< IO::CreateDirectory > &msg)
handle CreateDirectory message
Definition
iointerfacehandler.cc:117
IO::IoInterfaceHandler::Close
virtual void Close()
close the handler
Definition
iointerfacehandler.cc:52
IO::IoInterfaceHandler::OnWriteStream
void OnWriteStream(const Ptr< IO::WriteStream > &msg)
handle WriteStream message
Definition
iointerfacehandler.cc:157
IO::IoInterfaceHandler::ioServer
Ptr< IO::IoServer > ioServer
Definition
iointerfacehandler.h:52
IO::IoInterfaceHandler::OnCopyFile
void OnCopyFile(const Ptr< IO::CopyFile > &msg)
handle CopyFile message
Definition
iointerfacehandler.cc:137
IO::IoInterfaceHandler::IoInterfaceHandler
IoInterfaceHandler()
constructor
Definition
iointerfacehandler.cc:19
IO::IoInterfaceHandler::OnDeleteDirectory
void OnDeleteDirectory(const Ptr< IO::DeleteDirectory > &msg)
handle DeleteDirectory message
Definition
iointerfacehandler.cc:127
IO::IoInterfaceHandler::Open
virtual void Open()
open the handler
Definition
iointerfacehandler.cc:39
IO::IoInterfaceHandler::OnReadStream
void OnReadStream(const Ptr< IO::ReadStream > &msg)
handle ReadStream message
Definition
iointerfacehandler.cc:188
IO::IoInterfaceHandler::~IoInterfaceHandler
virtual ~IoInterfaceHandler()
destructor
Definition
iointerfacehandler.cc:26
IO::IoInterfaceHandler::HandleMessage
virtual bool HandleMessage(const Ptr< Messaging::Message > &msg)
handle a message, return true if handled
Definition
iointerfacehandler.cc:63
IO::IoInterfaceHandler::__DeclareClass
__DeclareClass(IoInterfaceHandler)
IO::IoInterfaceHandler::OnDeleteFile
void OnDeleteFile(const Ptr< IO::DeleteFile > &msg)
handle DeleteFile message
Definition
iointerfacehandler.cc:147
Interface::InterfaceHandlerBase
Base class for message handlers attached to Interface objects.
Definition
interfacehandlerbase.h:19
Ptr
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition
ptr.h:38
console.h
interfacehandlerbase.h
iointerfaceprotocol.h
ioserver.h
IO
Instances of wrapped stream classes.
Definition
multiplayerfeatureunit.cc:324
code
foundation
io
iointerfacehandler.h
Generated on
for Nebula. Dark theme by
Tilen Majerle
. All rights reserved.