From 07aedd4bb2bc59bf3a1143b52b9ad0cb4f98f971 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Fri, 10 Aug 2007 14:13:47 +0200 Subject: [PATCH] allow resolvers to override Connect and Disconnect directly --- src/common/trace-resolver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/trace-resolver.h b/src/common/trace-resolver.h index 63dbd267e..abb5cf1da 100644 --- a/src/common/trace-resolver.h +++ b/src/common/trace-resolver.h @@ -59,7 +59,7 @@ public: * users could also conceivably call it directly if they want to * skip the ns3::TraceRoot. */ - void Connect (std::string path, CallbackBase const &cb, const TraceContext &context); + virtual void Connect (std::string path, CallbackBase const &cb, const TraceContext &context); /** * \param path the namespace path to resolver * \param cb the callback to disconnect in the matching namespace @@ -68,7 +68,7 @@ public: * users could also conceivably call it directly if they want to * skip the ns3::TraceRoot. */ - void Disconnect (std::string path, CallbackBase const &cb); + virtual void Disconnect (std::string path, CallbackBase const &cb); protected: typedef std::list > TraceResolverList; private: