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

ReflectedTest performs similar tasks for incoming objects.

In addition to the testStateRep() and tsr() functions, the class provides type-specific versions of the list management functions next(), prev(), wrapNext(), and wrapPrev(), and of the post update callback registration functions.

This class is derived from DtReflectedObject in refTest.h and refTest.cxx. The implementations of these functions are trivial, in most cases calling down to base class versions, and performing a cast between a specific and a general type.


/*********************************************************************
** Copyright (c) 1992-2010 VT MAK
** All rights reserved.
*********************************************************************/
#pragma once
#if DtHLA
#include "testSR.h"
typedef void (*TestCallbackFunction)(ReflectedTest* obj, void* userData);
{
public:
virtual ~ReflectedTest();
virtual TestStateRepository* tsr() const;
virtual ReflectedTest* next() const;
virtual ReflectedTest* prev() const;
virtual ReflectedTest* wrapNext() const;
virtual ReflectedTest* wrapPrev() const;
virtual void addPostUpdateCallback(
TestCallbackFunction cb, void* userData);
TestCallbackFunction cb, void* userData);
};
#endif

/*********************************************************************
** Copyright (c) 1992-2010 VT MAK
** All rights reserved.
*********************************************************************/
#if DtHLA
#include "refTest.h"
#include "testDec.h"
{
setHlaObject(obj, new TestDecoder(conn, &obj->classDesc()));
}
{
}
{
}
{
}
{
return (ReflectedTest*) nextObj();
}
{
return (ReflectedTest*) prevObj();
}
{
return (ReflectedTest*) wrapNextObj();
}
{
return (ReflectedTest*) wrapPrevObj();
}
TestCallbackFunction cb, void* userData)
{
}
TestCallbackFunction cb, void* userData)
{
}
#endif

Document ID: Generated on Tue Aug 10 00:12:31 EDT 2021 from SVN revision 232765
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)