diff options
author | 2016-01-04 23:31:31 +0200 | |
---|---|---|
committer | 2016-01-04 23:31:31 +0200 | |
commit | 629b54c4c9df9c718d818a004ecf15c2cf6c770a (patch) | |
tree | 7dfc3c64c7561032d690ce6188130e80d344054e /src/publisher | |
parent | 3757099103ed1bf56f85ccf5bb861a331287cbbb (diff) | |
parent | 857bdcf05a920b99e1cf180c700176b04801da00 (diff) |
Merge branch 'master' into dan_stateless
Diffstat (limited to 'src/publisher')
-rw-r--r-- | src/publisher/trex_publisher.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/publisher/trex_publisher.h b/src/publisher/trex_publisher.h index bd4392f7..52978476 100644 --- a/src/publisher/trex_publisher.h +++ b/src/publisher/trex_publisher.h @@ -34,9 +34,11 @@ public: m_publisher = NULL; } - bool Create(uint16_t port, bool disable); - void Delete(); - void publish_json(const std::string &s); + virtual ~TrexPublisher() {} + + virtual bool Create(uint16_t port, bool disable); + virtual void Delete(); + virtual void publish_json(const std::string &s); enum event_type_e { EVENT_PORT_STARTED = 0, @@ -51,7 +53,7 @@ public: }; - void publish_event(event_type_e type, const Json::Value &data = Json::nullValue); + virtual void publish_event(event_type_e type, const Json::Value &data = Json::nullValue); private: void show_zmq_last_error(const std::string &err); |