give Attribute power to ObjectFactory class.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user