// This file may be redistributed and modified only under the terms of
// the GNU Lesser General Public License (See COPYING for details).
// Copyright 2000-2001 Stefanus Du Toit and Aloril.
// Copyright 2001-2005 Alistair Riddoch.
// Automatically generated using gen_cpp.py.
#include <Atlas/Objects/Decoder.h>
#include <Atlas/Objects/objectFactory.h>
#include <Atlas/Objects/SmartPtr.h>
namespace Atlas { namespace Objects {
ObjectsDecoder::ObjectsDecoder(Factories * f) : m_factories(f)
{
if (m_factories == 0) {
m_factories = Factories::instance();
}
}
ObjectsDecoder::~ObjectsDecoder()
{
}
void ObjectsDecoder::messageArrived(const Atlas::Message::MapType& o)
{
Root obj = m_factories->createObject(o);
objectArrived(obj);
}
} } // namespace Atlas::Objects
syntax highlighted by Code2HTML, v. 0.9.1