give Attribute power to ObjectFactory class.

This commit is contained in:
Mathieu Lacage
2008-03-03 19:33:28 +01:00
parent a02c29d25b
commit b14aab2fe4
2 changed files with 18 additions and 0 deletions

View File

@@ -47,4 +47,16 @@ ObjectFactory::Create (void) const
return object;
}
std::ostream & operator << (std::ostream &os, const ObjectFactory &factory)
{
return os;
}
std::istream & operator >> (std::istream &is, ObjectFactory &factory)
{
return is;
}
VALUE_HELPER_CPP (ObjectFactory);
} // namespace ns3

View File

@@ -22,11 +22,17 @@ public:
template <typename T>
Ptr<T> Create (void) const;
VALUE_HELPER_HEADER_1 (ObjectFactory);
private:
TypeId m_tid;
AttributeList m_parameters;
};
std::ostream & operator << (std::ostream &os, const ObjectFactory &factory);
std::istream & operator >> (std::istream &is, ObjectFactory &factory);
VALUE_HELPER_HEADER_2 (ObjectFactory);
} // namespace ns3
namespace ns3 {