allow resolvers to override Connect and Disconnect directly

This commit is contained in:
Mathieu Lacage
2007-08-10 14:13:47 +02:00
parent e683e1ab1c
commit 07aedd4bb2

View File

@@ -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<std::pair<TraceResolver *, TraceContext> > TraceResolverList;
private: