21 #ifndef CO_DISPATCHER_H 22 #define CO_DISPATCHER_H 25 #include <co/commandFunc.h> 62 void registerCommand(
const uint32_t command,
const CommandFunc<T>& func,
73 CO_API
virtual bool dispatchCommand(
ICommand& command);
77 CO_API Dispatcher(
const Dispatcher& from);
78 CO_API
virtual ~Dispatcher();
86 CO_API
bool _cmdUnknown(
ICommand& command);
89 detail::Dispatcher*
const _impl;
91 CO_API
void _registerCommand(
const uint32_t command,
const Func& func,
103 #endif // CO_DISPATCHER_H Defines export visibility macros for library Collage.
CommandFunc< Dispatcher > Func
The signature of the base Dispatcher callback.
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.
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.