EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
GetChannelsCommand.h
1 #ifndef EA4_PVRPC_GET_CHANNELS_COMMAND_H
2 #define EA4_PVRPC_GET_CHANNELS_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 
34  void createResponseType();
35  void createInfoType();
36 
37 protected:
38 
39  static std::string commandName;
40 
41  // {string command; int32 key; string pattern;}
42  epics::pvData::StructureConstPtr requestType;
43 
44  // {infoType[] channels; }
45  epics::pvData::StructureConstPtr responseType;
46 
47  // {string name, int32 start_sec, int32 start_nano,
48  // int32 end_sec, int32 end_nano;}
49  epics::pvData::StructureConstPtr infoType;
50 
51 };
52 
53 }}
54 
55 #endif
56 
57 
virtual epics::pvData::PVStructurePtr process(epics::pvData::PVStructurePtr const &request)
Delegates this request to the RPC service.
virtual epics::pvData::PVStructurePtr createRequest()
Returns the request structure.
Basic class of the RPC commands.
Definition: ArchiveCommand.h:17
Command returning the array of the channel infos.
Definition: GetChannelsCommand.h:9
virtual const char * getName() const
Returns 'getChannels'.
Definition: GetChannelsCommand.h:21