implement operator << for ObjectFactory.

This commit is contained in:
Mathieu Lacage
2008-04-11 11:27:09 -07:00
parent 0789c9b435
commit 5d91e8c2d2
2 changed files with 4 additions and 1 deletions

View File

@@ -70,7 +70,7 @@ ObjectFactory::Create (void) const
std::ostream & operator << (std::ostream &os, const ObjectFactory &factory)
{
// XXX
os << factory.m_tid.GetName () << "[" << factory.m_parameters.SerializeToString () << "]";
return os;
}
std::istream & operator >> (std::istream &is, ObjectFactory &factory)

View File

@@ -76,6 +76,9 @@ public:
ATTRIBUTE_HELPER_HEADER_1 (ObjectFactory);
private:
friend std::ostream & operator << (std::ostream &os, const ObjectFactory &factory);
friend std::istream & operator >> (std::istream &is, ObjectFactory &factory);
TypeId m_tid;
AttributeList m_parameters;
};