1 #ifndef EA4_PVRPC_GET_VALUES_COMMAND_H
2 #define EA4_PVRPC_GET_VALUES_COMMAND_H
6 #include "storage/ReaderFactory.h"
7 #include "storage/SpreadsheetReader.h"
9 #include "pvrpc/ArchiveCommand.h"
11 namespace ea4 {
namespace pvrpc {
26 virtual const char*
getName()
const {
return commandName.c_str(); }
32 virtual epics::pvData::PVStructurePtr
33 process(epics::pvData::PVStructurePtr
const & request);
37 void createRequestType();
39 epics::pvData::StructureConstPtr
40 createResultType(epics::pvData::StructureConstPtr& metaType,
41 epics::pvData::ScalarType pv_type,
46 epics::pvData::PVStructurePtr
47 createDataResponse(
int key,
48 const std::vector<std::string>& pvNames,
49 const epicsTime& start,
55 createDataReader(
Index& index,
56 const epicsTime& start,
61 epics::pvData::StructureConstPtr
63 const std::vector<std::string>& pvNames,
64 const epicsTime& start);
66 void getDataResult(epics::pvData::PVStructurePtr& result,
68 const std::string& name,
69 const epicsTime& start,
74 void getChannelData(epics::pvData::PVStructureArrayPtr& values,
78 epics::pvData::ScalarType pv_type,
85 epics::pvData::PVStructurePtr
86 createSheetResponse(
int key,
87 const std::vector<std::string>& pvNames,
88 const epicsTime& start,
94 createSheetReader(
Index& index,
95 const epicsTime& start,
100 epics::pvData::StructureConstPtr
102 const epicsTime& start);
104 void getSheetData(epics::pvData::PVStructurePtr& response,
106 const epicsTime& start,
107 const epicsTime& end,
112 static std::string commandName;
119 epics::pvData::StructureConstPtr requestType;
Reads data from storage.
Definition: DataReader.h:23
virtual epics::pvData::PVStructurePtr createRequest()
Returns the request structure.
Command returning the channel values.
Definition: GetValuesCommand.h:14
virtual epics::pvData::PVStructurePtr process(epics::pvData::PVStructurePtr const &request)
Delegates the request to the RPC service.
Reads data from storage, formatted as spreadsheet.
Definition: SpreadsheetReader.h:21
Basic class of the RPC commands.
Definition: ArchiveCommand.h:17
virtual const char * getName() const
Returns 'getValues'.
Definition: GetValuesCommand.h:26
How
Determine what DataReader to use:
Definition: ReaderFactory.h:22
GetValuesCommand()
Constructor.
Base interface for the archiver's indices.
Definition: Index.h:16
dbr_time_double Data
Type for accessing the raw data and its common fields.
Definition: RawValue.h:55