server GET_FIELD reply

This commit is contained in:
Michael Davidsaver
2019-12-10 16:18:59 -08:00
parent a6ff69eb42
commit d20ac8ee6d
3 changed files with 30 additions and 2 deletions
+9 -1
View File
@@ -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");
}
};