From 82e65a02d2f9bdab552521a4859795937821f1be Mon Sep 17 00:00:00 2001 From: imarom Date: Sun, 3 Jan 2016 07:09:23 -0500 Subject: simulation end to end --- src/publisher/trex_publisher.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/publisher') 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); -- cgit 1.2.3-korg