server GET_FIELD reply
This commit is contained in:
+9
-1
@@ -12,21 +12,29 @@
|
||||
#include <epicsEvent.h>
|
||||
|
||||
#include <pvxs/server.h>
|
||||
#include <pvxs/data.h>
|
||||
#include <pvxs/log.h>
|
||||
|
||||
|
||||
namespace {
|
||||
using namespace pvxs;
|
||||
using namespace pvxs::server;
|
||||
|
||||
DEFINE_LOGGER(dummy,"dummyserv");
|
||||
|
||||
const Value mytype = TypeDef(TypeCode::Struct)
|
||||
.begin()
|
||||
.insert("value", TypeCode::Float64)
|
||||
.create();
|
||||
|
||||
struct DummyHandler : public Handler
|
||||
{
|
||||
virtual ~DummyHandler() {}
|
||||
|
||||
virtual void onIntrospect(std::unique_ptr<Introspect> &&op) override final
|
||||
{
|
||||
op->error("Got nothing");
|
||||
op->reply(mytype);
|
||||
//op->error("Got nothing");
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user