summaryrefslogtreecommitdiffstats
path: root/src/publisher
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-01-03 07:09:23 -0500
committerimarom <imarom@cisco.com>2016-01-04 10:02:59 -0500
commit82e65a02d2f9bdab552521a4859795937821f1be (patch)
tree631d29f5252fa24591155ede5c306c55f56265c2 /src/publisher
parentfecdb3ea73b380e01a8877c8e88ce61e853000bc (diff)
simulation end to end
Diffstat (limited to 'src/publisher')
-rw-r--r--src/publisher/trex_publisher.h10
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);