27#ifndef NIDAS_CORE_ENGINEINTF_H
28#define NIDAS_CORE_ENGINEINTF_H
32#include <xmlrpcpp/XmlRpcException.h>
36namespace nidas {
namespace core {
73 DSMAction(XmlRpc::XmlRpcServer* s) : XmlRpc::XmlRpcServerMethod(
"DSMAction", s) {}
74 void execute(XmlRpc::XmlRpcValue& params, XmlRpc::XmlRpcValue& result)
throw();
75 std::string
help() {
return std::string(
"parameter \"action\" should be \"start\", \"stop\", \"restart\", \"quit\", \"reboot\" or \"shutdown\""); }
89 void execute(XmlRpc::XmlRpcValue& params, XmlRpc::XmlRpcValue& result)
throw();
91 std::string
help() {
return std::string(
"parameter \"device\" should match a device name for a DSMSensor that has registered itself with DSMEngineIntf"); }
Send a command to a DSMEngine.
Definition DSMEngineIntf.h:71
DSMAction(XmlRpc::XmlRpcServer *s)
Definition DSMEngineIntf.h:73
void execute(XmlRpc::XmlRpcValue ¶ms, XmlRpc::XmlRpcValue &result)
Definition DSMEngineIntf.cc:52
std::string help()
Definition DSMEngineIntf.h:75
Invoke an executeXmlRpc() method on a DSMSensor.
Definition DSMEngineIntf.h:86
std::map< std::string, DSMSensor * > _nameToSensor
Definition DSMEngineIntf.h:99
void execute(XmlRpc::XmlRpcValue ¶ms, XmlRpc::XmlRpcValue &result)
Definition DSMEngineIntf.cc:76
SensorAction(XmlRpc::XmlRpcServer *s)
Definition DSMEngineIntf.h:88
void registerSensor(const std::string &devname, DSMSensor *sensor)
Definition DSMEngineIntf.h:93
std::string help()
Definition DSMEngineIntf.h:91
A thread that provides XML-based Remote Procedure Calls to web interfaces from the DSMEngine.
Definition DSMEngineIntf.h:45
DSMAction _dsmAction
Definition DSMEngineIntf.h:103
int run()
Definition DSMEngineIntf.cc:98
XmlRpc::XmlRpcServer * _xmlrpc_server
Definition DSMEngineIntf.h:102
DSMEngineIntf(const DSMEngineIntf &)
Copy not needed.
void registerSensor(const std::string &devname, DSMSensor *sensor)
Register a sensor to have its executeXmlRpc() method called when a "SensorAction" XmlRpc request come...
Definition DSMEngineIntf.h:59
SensorAction _sensorAction
Definition DSMEngineIntf.h:104
DSMEngineIntf()
Definition DSMEngineIntf.cc:44
DSMEngineIntf & operator=(const DSMEngineIntf &)
Assignment not needed.
DSMSensor provides the basic support for reading, processing and distributing samples from a sensor a...
Definition DSMSensor.h:88
A thread that provides XML-based Remote Procedure Calls to web interfaces.
Definition XmlRpcThread.h:40
Sample * getSample(sampleType type, unsigned int len)
A convienence method for getting a sample of an enumerated type from a pool.
Definition Sample.cc:70
Root namespace for the NCAR In-Situ Data Acquisition Software.
Definition A2DConverter.h:31