The modHlaBroker example does the following:
- It subclasses DtEntityTranslator to make a new entity translator (with the goal of modifying how Portal objects get translated to HLA objects). The class does not do much; it shows how to override functions related to translation.
- It installs the new class in the hlaBrokerApp and shows how to recompile an HLA broker.
#include <vl/reflectedEntityList.h>
#include <vl/entityPublisher.h>
#include <vl/baseEntityStateRepository.h>
#include <assert.h>
using namespace DtRprBroker;
{
}
{
}
{
{
}
}
{
dest->setMarkingText( src.markingText() );
dest->setPowerPlantOn( src.powerPlantOn() );
dest->setDamageState( (DtDamageState) src.damageState() );
dest->setEngineSmokeOn( src.engineSmokeOn() );
dest->setFlamesPresent( src.flamesPresent() );
dest->setHasFuelSupplyCap( src.hasFuelSupplyCap() );
dest->setHasRecoveryCap( src.hasRecoveryCap() );
return dest;
}
{
return true;
}
{
if ( refObj->
sr()->entityType() == DtEntityType() )
{
return false;
}
return true;
}