}
bool
-HLAFederate::_insertInteractionClass(const SGSharedPtr<HLAInteractionClass>& interactionClass)
+HLAFederate::_insertInteractionClass(HLAInteractionClass* interactionClass)
{
- if (!interactionClass.valid())
+ if (!interactionClass)
return false;
if (_interactionClassMap.find(interactionClass->getName()) != _interactionClassMap.end()) {
SG_LOG(SG_IO, SG_ALERT, "HLA: _insertInteractionClass: object instance with name \""
}
bool
-HLAFederate::_insertObjectClass(const SGSharedPtr<HLAObjectClass>& objectClass)
+HLAFederate::_insertObjectClass(HLAObjectClass* objectClass)
{
- if (!objectClass.valid())
+ if (!objectClass)
return false;
if (_objectClassMap.find(objectClass->getName()) != _objectClassMap.end()) {
SG_LOG(SG_IO, SG_ALERT, "HLA: _insertObjectClass: object instance with name \""
}
bool
-HLAFederate::_insertObjectInstance(const SGSharedPtr<HLAObjectInstance>& objectInstance)
+HLAFederate::_insertObjectInstance(HLAObjectInstance* objectInstance)
{
- if (!objectInstance.valid())
+ if (!objectInstance)
return false;
if (objectInstance->getName().empty()) {
SG_LOG(SG_IO, SG_ALERT, "HLA: _insertObjectInstance: trying to insert object instance with empty name!");
void _clearRTI();
/// Internal helpers for interaction classes
- bool _insertInteractionClass(const SGSharedPtr<HLAInteractionClass>& interactionClass);
+ bool _insertInteractionClass(HLAInteractionClass* interactionClass);
/// Internal helpers for object classes
- bool _insertObjectClass(const SGSharedPtr<HLAObjectClass>& objectClass);
+ bool _insertObjectClass(HLAObjectClass* objectClass);
/// Internal helpers for object instances
- bool _insertObjectInstance(const SGSharedPtr<HLAObjectInstance>& objectInstance);
+ bool _insertObjectInstance(HLAObjectInstance* objectInstance);
void _eraseObjectInstance(const std::string& name);
/// The underlying interface to the rti implementation