HLAObjectInstance*
HLAObjectClass::createObjectInstance(const std::string& name)
{
- HLAObjectInstance* objectInstance = createObjectInstance();
- if (objectInstance)
- return objectInstance;
SGSharedPtr<HLAFederate> federate = _federate.lock();
if (!federate.valid())
return 0;
return federate->createObjectInstance(this, name);
}
-HLAObjectInstance*
-HLAObjectClass::createObjectInstance()
-{
- return 0;
-}
-
void
HLAObjectClass::_setRTIObjectClass(RTIObjectClass* objectClass)
{
/// Create a new instance of this class.
virtual HLAObjectInstance* createObjectInstance(const std::string& name);
- virtual HLAObjectInstance* createObjectInstance(); // deprecated
private:
HLAObjectClass(const HLAObjectClass&);