VR-Forces 4.2 Class Documentation
Parameter Database Factory

This DtParameterDbEntryFactory class knows how to create entries that support this example (tank, route, waypoint)


Header file:

/*******************************************************************************
** Copyright (c) 2005 MAK Technologies, Inc.
** All rights reserved.
*******************************************************************************/
/*******************************************************************************
** $RCSfile: parameterDbEntryFactory.h,v $ $Revision: 1.6 $ $State: Exp $
*******************************************************************************/
#ifndef DtParameterDbEntryFactory_H_
#define DtParameterDbEntryFactory_H_
class DtTargetDetectionSensorDescriptor;
class DtObstacleSensorDescriptor;
//class DtParameterDbEntryFactory:
//
//Instances of DtParameterDbEntryFactory are a factory class that
//knows how to construct various types of parameter database
//entries. It delegates responsibility for actually building the
//indvidual parameter entries to helper classes (DtTankParametersBuilder,
//DtWaypointParametersBuilder, etc.). Parameters object returned by
//this class should be fully constructed and configured (all of their
//resources, components, parameter settings appropriate to the particular
//type of object are specified).
{
public:
//constructor
//Returns a new instances of parameters objects. The caller is
//responsible for deleting memory associated with these items.
protected:
//copy constructor - not implemented
//assignment operator - not implemented
};
#endif

Implementation:

/*******************************************************************************
** Copyright (c) 2005 MAK Technologies, Inc.
** All rights reserved.
*******************************************************************************/
/*******************************************************************************
** $RCSfile: parameterDbEntryFactory.cxx,v $ $Revision: 1.9 $ $State: Exp $
*******************************************************************************/
#include <vlutil/vlPrint.h>
{
}
{
//Create a new instance of DtVrfObjectParameters object, configured
//with the set of parameters necessary to specify a force-level
//pseudo-aggregate.
DtTankParametersBuilder tankParametersBuilder;
return tankParametersBuilder.buildObjectParameters();
}
{
//Create a new instance of DtVrfObjectParameters object, configured
//with the set of parameters necessary to specify a tank platoon
//pseudo-aggregate.
DtTankPlatoonParametersBuilder tankPlatoonBuilder;
return tankPlatoonBuilder.buildObjectParameters();
}
{
//Create a new instance of DtVrfObjectParameters object, configured
//with the set of parameters necessary to specify a waypoint.
DtWaypointParametersBuilder waypointBuilder;
return waypointBuilder.buildObjectParameters();
}
{
//Create a new instance of DtVrfObjectParameters object, configured
//with the set of parameters necessary to specify a waypoint.
return routeBuilder.buildObjectParameters();
}
{
//Create a new instance of DtVrfObjectParameters object, configured
//with the set of parameters necessary to specify a tank entity.
DtForceLevelAggregateParametersBuilder forceLevelAggregateBuilder;
return forceLevelAggregateBuilder.buildObjectParameters();
}

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)