add a few public methods for the Config code
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Mon, 25 Feb 2008 22:06:14 +0100
changeset 2471 86f7ea794e83
parent 2469 181c6a5b14c1
child 2472 ae81f8ac1854
add a few public methods for the Config code
src/core/object.cc
src/core/object.h
--- a/src/core/object.cc	Sun Feb 24 20:18:02 2008 +0100
+++ b/src/core/object.cc	Mon Feb 25 22:06:14 2008 +0100
@@ -1165,6 +1165,12 @@
   return ok;
 }
 
+TypeId 
+Object::GetRealTypeId (void) const
+{
+  return m_tid;
+}
+
 
 Ptr<Object>
 Object::DoGetObject (TypeId tid) const
--- a/src/core/object.h	Sun Feb 24 20:18:02 2008 +0100
+++ b/src/core/object.h	Mon Feb 25 22:06:14 2008 +0100
@@ -240,6 +240,18 @@
                          std::string help,
                          Ptr<const TraceSourceAccessor> accessor);
 
+  struct AttributeInfo {
+    Ptr<const AttributeAccessor> accessor;
+    Attribute initialValue;
+    uint32_t flags;
+    Ptr<const AttributeChecker> checker;
+  };
+  /**
+   * \param name the name of the requested attribute
+   */
+  bool LookupAttributeByName (std::string name, struct AttributeInfo *info) const;
+
+
   // construct an invalid TypeId.
   TypeId ();
   ~TypeId ();
@@ -249,21 +261,10 @@
   friend bool operator == (TypeId a, TypeId b);
   friend bool operator != (TypeId a, TypeId b);
 
-  struct AttributeInfo {
-    Ptr<const AttributeAccessor> accessor;
-    Attribute initialValue;
-    uint32_t flags;
-    Ptr<const AttributeChecker> checker;
-  };
 
   Ptr<const TraceSourceAccessor> LookupTraceSourceByName (std::string name) const;
 
   /**
-   * \param name the name of the requested attribute
-   * \returns the Accessor associated to the requested attribute
-   */
-  bool LookupAttributeByName (std::string name, struct AttributeInfo *info) const;
-  /**
    * \param i the position of the requested attribute
    * \returns the Accessor associated to the requested attribute
    */
@@ -387,6 +388,8 @@
   bool TraceSourceConnect (std::string name, const CallbackBase &cb);
   bool TraceSourceDisconnect (std::string name, const CallbackBase &cb);
 
+  TypeId GetRealTypeId (void) const;
+
   /**
    * Increment the reference count. This method should not be called
    * by user code. Object instances are expected to be used in conjunction