EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
ArchiveCommandRegistry.h
1 #ifndef EA4_PVRPC_ARCHIVE_COMMAND_REGISTRY_H
2 #define EA4_PVRPC_ARCHIVE_COMMAND_REGISTRY_H
3 
4 #include "pv/pvData.h"
5 #include "pvrpc/ArchiveCommand.h"
6 
7 namespace ea4 { namespace pvrpc {
8 
11 
12  public:
13 
16 
19 
20  public:
21 
23  inline const std::map<std::string, ArchiveCommand*>& getCommands() const;
24 
26  ArchiveCommand* const getCommand(const std::string& name) const;
27 
28  private:
29 
32 
33  private:
34 
35  static ArchiveCommandRegistry* theInstance;
36 
37  std::map<std::string, ArchiveCommand*> commands;
38 
39 };
40 
41 inline const std::map<std::string, ArchiveCommand*>&
43  return commands;
44 }
45 
46 }}
47 
48 #endif
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.