[Ns-bugs] [Bug 284] cannot use config paths to get a handle on an object
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Mon Aug 25 22:02:03 PDT 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=284
------- Comment #5 from tomh at tomh.org 2008-08-26 01:02 -------
(In reply to comment #2)
> While thinking about this some more tonight, it occured to me that we could use
> this to solve partly our error-reporting problems in the Config API. What about
> something like this:
>
> class MatchContainer
> {
> public:
> Ptr<Object> Get (uint32_t i) const;
> uint32_t GetN (void) const;
> std::string GetPath (uint32_t i) const;
>
> void Connect (std::string traceSource, const CallbackBase &);
> void Set (std::string attribute, const AttributeValue &v);
> private:
> std::vector<std::pair<Ptr<Object>,std::string> > m_matches;
> };
>
> namespace Config {
>
> MatchContainer LookupMatches (std::string path);
>
> }
>
again, this looks like a good idea to me
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list