EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
GetArchivesCommand.h
1 #ifndef EA4_PVRPC_GET_ARCHIVES_COMMAND_H
2 #define EA4_PVRPC_GET_ARCHIVES_COMMAND_H
3 
4 #include "pvrpc/ArchiveCommand.h"
5 
6 namespace ea4 { namespace pvrpc {
7 
10 
11 public:
12 
15 
16 public:
17 
18  // ArchiveCommand API
19 
21  virtual const char* getName()const { return commandName.c_str(); }
22 
24  virtual epics::pvData::PVStructurePtr createRequest();
25 
27  virtual epics::pvData::PVStructurePtr
28  process(epics::pvData::PVStructurePtr const & request);
29 
30 protected:
31 
32  void createRequestType();
33  void createInfoType();
34 
35  void createResponseType();
36 
37 protected:
38 
39  static std::string commandName;
40 
41  // {string command }
42  epics::pvData::StructureConstPtr requestType;
43 
44  // {infoType[] archives; }
45  epics::pvData::StructureConstPtr responseType;
46 
47  // {int key; string name; string path; }
48  epics::pvData::StructureConstPtr infoType;
49 
50 };
51 
52 }}
53 
54 #endif
Basic class of the RPC commands.
Definition: ArchiveCommand.h:17
virtual const char * getName() const
Returns 'getArchives'.
Definition: GetArchivesCommand.h:21
virtual epics::pvData::PVStructurePtr createRequest()
Creates the request structure.
virtual epics::pvData::PVStructurePtr process(epics::pvData::PVStructurePtr const &request)
Delegates this request to the RPC service.
Command returning the array of the index files.
Definition: GetArchivesCommand.h:9