EPICS ARCHIVER V4
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups
GetInfoCommand.h
1 #ifndef EA4_PVRPC_GET_INFO_COMMAND_H
2 #define EA4_PVRPC_GET_INFO_COMMAND_H
3 
4 #include "pvrpc/ArchiveCommand.h"
5 
6 namespace ea4 { namespace pvrpc {
7 
13 
14 public:
15 
18 
19 public:
20 
21  // ArchiveCommand API
22 
24  virtual const char* getName()const { return commandName.c_str(); }
25 
27  virtual epics::pvData::PVStructurePtr createRequest();
28 
30  virtual epics::pvData::PVStructurePtr
31  process(epics::pvData::PVStructurePtr const & request);
32 
33 protected:
34 
35  void createRequestType();
36  void createResponseType();
37  void createSevrType();
38 
39  //
40 
41  void createResult();
42 
43  void setVerField();
44  void setDescField();
45  void setHowField();
46  void setStatField();
47  void setSevrField();
48 
49  void setSevrPV(epics::pvData::PVStructurePtr& sevrPV,
50  int num,
51  const char* sevr,
52  bool has_value,
53  bool txt_stat);
54 
55 protected:
56 
57  static std::string commandName;
58 
59  // {string commandName; }
60  epics::pvData::StructureConstPtr requestType;
61 
62  // {int ver; string desc; string[] how; string[] stat; sevrType[] sevr; }
63  epics::pvData::StructureConstPtr responseType;
64 
65  // {int num; string sevr; bool has_value; bool txt_stat; }
66  epics::pvData::StructureConstPtr sevrType;
67 
68  epics::pvData::PVStructurePtr result;
69 
70 };
71 
72 }}
73 
74 #endif
virtual epics::pvData::PVStructurePtr createRequest()
Returns the request structure.
virtual epics::pvData::PVStructurePtr process(epics::pvData::PVStructurePtr const &request)
Delegates this request to the RPC service.
Basic class of the RPC commands.
Definition: ArchiveCommand.h:17
GetInfoCommand()
Constructor.
Command returning the general info: arrays of the 'status' strings, severity' strings, etc.
Definition: GetInfoCommand.h:12
virtual const char * getName() const
Returns 'getInfo'.
Definition: GetInfoCommand.h:24