[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
Tue Aug 12 08:34:47 PDT 2008


http://www.nsnam.org/bugzilla/show_bug.cgi?id=284





------- Comment #2 from mathieu.lacage at sophia.inria.fr  2008-08-12 11:34 -------
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);

}


-- 
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