21 #ifndef CO_DISPATCHER_H 22 #define CO_DISPATCHER_H 25 #include <co/commandFunc.h> 30 namespace detail {
class Dispatcher; }
59 template<
typename T >
void 71 CO_API
virtual bool dispatchCommand(
ICommand& command );
75 CO_API Dispatcher(
const Dispatcher& from );
76 CO_API
virtual ~Dispatcher();
84 CO_API
bool _cmdUnknown(
ICommand& command );
87 detail::Dispatcher*
const _impl;
89 CO_API
void _registerCommand(
const uint32_t command,
93 template<
typename T >
101 #endif // CO_DISPATCHER_H Defines export visibility macros for library Collage.
A thread-safe, blocking queue for ICommand buffers.
void registerCommand(const uint32_t command, const CommandFunc< T > &func, CommandQueue *queue)
Register a command member function for a command.
Object-oriented network library.
CommandFunc< Dispatcher > Func
The signature of the base Dispatcher callback.
A class managing received commands.
A wrapper to register a function callback on an object instance.
A class providing command dispatch functionality to networked objects.