1 #ifndef EA4_PVRPC_ARCHIVE_COMMAND_REGISTRY_H
2 #define EA4_PVRPC_ARCHIVE_COMMAND_REGISTRY_H
5 #include "pvrpc/ArchiveCommand.h"
7 namespace ea4 {
namespace pvrpc {
23 inline const std::map<std::string, ArchiveCommand*>&
getCommands()
const;
37 std::map<std::string, ArchiveCommand*> commands;
41 inline const std::map<std::string, ArchiveCommand*>&
Registry of the RPC commands.
Definition: ArchiveCommandRegistry.h:10
ArchiveCommand *const getCommand(const std::string &name) const
Returns the selected command.
const std::map< std::string, ArchiveCommand * > & getCommands() const
Returns all commands.
Definition: ArchiveCommandRegistry.h:42
Basic class of the RPC commands.
Definition: ArchiveCommand.h:17
static ArchiveCommandRegistry * getInstance()
Returns singleton.
~ArchiveCommandRegistry()
Destructor.