VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages

After we create a ReflectedTest class, we need to create a ReflectedTestList class that knows how to create and manage ReflectedTests.

This class is derived from DtReflectedObjectList in refTestList.h and refTestList.cxx.


/*********************************************************************
** Copyright (c) 1992-2010 VT MAK
** All rights reserved.
*********************************************************************/
#pragma once
#if DtHLA
#include "refTest.h"
{
public:
virtual ~ReflectedTestList();
#if DtHLA_1516
virtual ReflectedTest* lookup(RTI::ObjectInstanceHandle id);
#else
virtual ReflectedTest* lookup(RTI::ObjectHandle id);
#endif
virtual ReflectedTest* lookup(const DtGlobalObjectDesignator& objName);
virtual ReflectedTest* first() const;
virtual ReflectedTest* last() const;
TestCallbackFunction cb, void* userData);
TestCallbackFunction cb, void* userData);
virtual void addTestRemovalCallback(
TestCallbackFunction cb, void* userData);
TestCallbackFunction cb, void* userData);
protected:
};
#endif

/*********************************************************************
** Copyright (c) 1992-2010 VT MAK
** All rights reserved.
*********************************************************************/
#if DtHLA
#include "refTestList.h"
DtExerciseConn* exConn) :
{
// Tell the base class that we will be managing the FOM class "Test".
addObjectClassByName("Test");
}
{
}
#if DtHLA_1516
ReflectedTest* ReflectedTestList::lookup(RTI::ObjectInstanceHandle id)
#else
#endif
{
return (ReflectedTest*) lookupObj(id);
}
const DtGlobalObjectDesignator& objName)
{
return (ReflectedTest*) lookupObj(objName);
}
{
return (ReflectedTest*) firstObj();
}
{
return (ReflectedTest*) lastObj();
}
TestCallbackFunction cb, void* userData)
{
}
TestCallbackFunction cb, void* userData)
{
}
TestCallbackFunction cb, void* userData)
{
}
TestCallbackFunction cb, void* userData)
{
}
DtHlaObject* obj) const
{
return new ReflectedTest(obj, myExConn);
}
#endif

Document ID: Generated on Fri Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)