VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Friends
makVrv::DtSharedSimulationSettings Class Reference

The shared simulation settings.

Inheritance diagram for makVrv::DtSharedSimulationSettings:
Inheritance graph
[legend]

Public Types

enum  MapperType { SIMSETTINGSMAPPERS }
 

Public Member Functions

virtual ~DtSharedSimulationSettings ()
 
virtual void setMapper (MapperType mapperType, const DtEntityTypeMapper &mapper)
 
Methods for registering new mappings with the mappers.
void setMapping (MapperType mapperType, const DtEntityType &type, const DtUnicode &definition)
 
void setEntityModelMapping (const DtEntityType &type, const DtUnicode &definition)
 
void setAggregateModelMapping (const DtEntityType &type, const DtUnicode &definition)
 
void setTacticalGraphicsMapping (const DtEntityType &type, const DtUnicode &definition)
 
void setFireModelMapping (const DtEntityType &type, const DtUnicode &definition)
 
void setDetonationModelMapping (const DtEntityType &type, const DtUnicode &definition)
 
void setSoundMapping (const DtEntityType &type, const DtUnicode &definition)
 
void setRadioCommunicationsMapping (const DtEntityType &type, const DtUnicode &definition)
 
void setRadioTransmissionsMapping (const DtEntityType &type, const DtUnicode &definition)
 
void setTacticalSmokeMapping (const DtEntityType &type, const DtUnicode &definition)
 
Methods for retrieving a mapping for the given type.
const std::vector< DtUnicode > & mapDefinition (MapperType mapperType, const DtEntityType &type) const
 
const std::vector< DtUnicode > & mapEntityDefinition (const DtEntityType &type) const
 
const std::vector< DtUnicode > & mapAggregateDefinition (const DtEntityType &type) const
 
const std::vector< DtUnicode > & mapFireTypeDefinition (const DtEntityType &type) const
 
const std::vector< DtUnicode > & mapDetonationDefinition (const DtEntityType &type) const
 
const std::vector< DtUnicode > & mapSoundDefinition (const DtEntityType &type) const
 
const std::vector< DtUnicode > & mapTacticalGraphicsDefinition (const DtEntityType &type) const
 
const std::vector< DtUnicode > & mapRadioCommunicationDefinition (const DtEntityType &type) const
 
const std::vector< DtUnicode > & mapRadioTransmissionDefinition (const DtEntityType &type) const
 
const std::vector< DtUnicode > & mapIffReplyDefinition (const DtEntityType &type) const
 
const std::vector< DtUnicode > & mapTacticalSmokeDefinition (const DtEntityType &type) const
 
Mapper Retrieval Methods
DtEntityTypeMapper * findMapperByName (const std::string &name)
 
const DtEntityTypeMapper * findMapperByName (const std::string &name) const
 
virtual void mapperNames (std::vector< std::string > &names) const
 
Mapper Accessors
DtEntityTypeMapper & typeMapper (MapperType type)
 
const DtEntityTypeMapper & typeMapper (MapperType type) const
 
DtEntityTypeMapper & entityTypeMapper ()
 
const DtEntityTypeMapper & entityTypeMapper () const
 
DtEntityTypeMapper & aggregateTypeMapper ()
 
const DtEntityTypeMapper & aggregateTypeMapper () const
 
DtEntityTypeMapper & weaponFireMapper ()
 
const DtEntityTypeMapper & weaponFireMapper () const
 
DtEntityTypeMapper & detonationTypeMapper ()
 
const DtEntityTypeMapper & detonationTypeMapper () const
 
DtEntityTypeMapper & soundTypeMapper ()
 
const DtEntityTypeMapper & soundTypeMapper () const
 
DtEntityTypeMapper & tacticalGraphicsMapper ()
 
const DtEntityTypeMapper & tacticalGraphicsMapper () const
 
DtEntityTypeMapper & radioCommunicationMapper ()
 
const DtEntityTypeMapper & radioCommunicationMapper () const
 
DtEntityTypeMapper & radioTransmissionMapper ()
 
const DtEntityTypeMapper & radioTransmissionMapper () const
 
DtEntityTypeMapper & iffReplyMapper ()
 
const DtEntityTypeMapper & iffReplyMapper () const
 
DtEntityTypeMapper & tacticalSmokeMapper ()
 
const DtEntityTypeMapper & tacticalSmokeMapper () const
 
- Public Member Functions inherited from makVrv::DtSharedSettings
 DtSharedSettings (const DtSharedSettingsManager &manager)
 
virtual ~DtSharedSettings ()
 
boost::shared_mutex & mutex ()
 
virtual const DtSettingsBackup * settingsBackup () const
 
virtual DtSettingsBackup * settingsBackup ()
 
virtual void backup ()
 
virtual std::vector
< std::function< void()> > & 
eventSignalsToEmit ()
 
virtual const std::vector
< std::function< void()> > & 
eventSignalsToEmit () const
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtUnicode chooseElementDefinition (const std::vector< DtUnicode > &definitions)
 
static const std::string & className ()
 

Protected Types

typedef std::unordered_map
< MapperType,
DtEntityTypeMapper * > 
MappersMap
 

Protected Member Functions

 DtSharedSimulationSettings (DtSharedSettingsManager &manager)
 
virtual void connectMapper (DtEntityTypeMapper &mapper)
 
virtual void disconnectMapper (DtEntityTypeMapper &mapper)
 
virtual void mapperChanged (const DtEntityType &type, const DtUnicode &value, DtEntityTypeMapper &mapper)
 

Protected Attributes

std::vector< DtUnicode > myEmptyMappings
 
MappersMap myMappers
 
makVrv::vrvSignalsLib::connection myMappingAddedConnection
 
makVrv::vrvSignalsLib::connection myMappingRemovedConnection
 
- Protected Attributes inherited from makVrv::DtSharedSettings
const DtSharedSettingsManager & myManager
 
boost::shared_mutex myMutex
 
std::vector< std::function
< void()> > 
myEventSignalsToEmit
 

Static Protected Attributes

static const char * theMapperNames []
 

Private Member Functions

void initializeMapper (MapperType mapperType, const std::string &backupName)
 

Friends

class DtReadSettingsLock< DtSharedSimulationSettings >
 
class DtWriteSettingsLock< DtSharedSimulationSettings >
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
SIMSETTINGSMAPPERS 

Constructor & Destructor Documentation

virtual makVrv::DtSharedSimulationSettings::~DtSharedSimulationSettings ( )
virtual

DTOR.

makVrv::DtSharedSimulationSettings::DtSharedSimulationSettings ( DtSharedSettingsManager &  manager)
protected

CTOR.

Member Function Documentation

virtual void makVrv::DtSharedSimulationSettings::setMapper ( MapperType  mapperType,
const DtEntityTypeMapper &  mapper 
)
virtual

Set the mapper of the given type.

void makVrv::DtSharedSimulationSettings::setMapping ( MapperType  mapperType,
const DtEntityType &  type,
const DtUnicode &  definition 
)

Adds the mapping to the mapper of the given type.

void makVrv::DtSharedSimulationSettings::setEntityModelMapping ( const DtEntityType &  type,
const DtUnicode &  definition 
)

Set the entity model mapping.

void makVrv::DtSharedSimulationSettings::setAggregateModelMapping ( const DtEntityType &  type,
const DtUnicode &  definition 
)

Set the aggregate model mapping.

void makVrv::DtSharedSimulationSettings::setTacticalGraphicsMapping ( const DtEntityType &  type,
const DtUnicode &  definition 
)

Set the tactical graphics model mapping for an entity type.

void makVrv::DtSharedSimulationSettings::setFireModelMapping ( const DtEntityType &  type,
const DtUnicode &  definition 
)

Set the fire model mapping.

void makVrv::DtSharedSimulationSettings::setDetonationModelMapping ( const DtEntityType &  type,
const DtUnicode &  definition 
)

Set the detonation model mapping.

void makVrv::DtSharedSimulationSettings::setSoundMapping ( const DtEntityType &  type,
const DtUnicode &  definition 
)

Set the sound mapping.

void makVrv::DtSharedSimulationSettings::setRadioCommunicationsMapping ( const DtEntityType &  type,
const DtUnicode &  definition 
)

Set the radio communications model mapping for an entity type.

void makVrv::DtSharedSimulationSettings::setRadioTransmissionsMapping ( const DtEntityType &  type,
const DtUnicode &  definition 
)

Set the radio transmissions model mapping for an entity type.

void makVrv::DtSharedSimulationSettings::setTacticalSmokeMapping ( const DtEntityType &  type,
const DtUnicode &  definition 
)

Set the tactical smoke model mapping for an entity type.

const std::vector<DtUnicode>& makVrv::DtSharedSimulationSettings::mapDefinition ( MapperType  mapperType,
const DtEntityType &  type 
) const

Get an element definition from the given mapper for the given entity type. Maps the DtEntityType to the corresponding element definition.

const std::vector<DtUnicode>& makVrv::DtSharedSimulationSettings::mapEntityDefinition ( const DtEntityType &  type) const

Get an element definition for an entity model based upon entity type. Maps the entity's type to the corresponding element definition.

const std::vector<DtUnicode>& makVrv::DtSharedSimulationSettings::mapAggregateDefinition ( const DtEntityType &  type) const

Get an element definition for an aggregate model based upon entity type. Maps the aggregate's type to the corresponding element definition.

const std::vector<DtUnicode>& makVrv::DtSharedSimulationSettings::mapFireTypeDefinition ( const DtEntityType &  type) const

Get an element definition for a fire effect based upon entity type. Maps the munition's type to the corresponding element definition.

const std::vector<DtUnicode>& makVrv::DtSharedSimulationSettings::mapDetonationDefinition ( const DtEntityType &  type) const

Get an element definition for a detonation effect based upon entity type. Maps the munition's type to the corresponding element definition.

const std::vector<DtUnicode>& makVrv::DtSharedSimulationSettings::mapSoundDefinition ( const DtEntityType &  type) const

Get an element definition for a sound interaction based upon entity type. Maps the sound's type to the corresponding element definition.

const std::vector<DtUnicode>& makVrv::DtSharedSimulationSettings::mapTacticalGraphicsDefinition ( const DtEntityType &  type) const

Get an element definition for a tactical graphic based upon entity type. Maps the tactical graphic's type to the corresponding element definition.

const std::vector<DtUnicode>& makVrv::DtSharedSimulationSettings::mapRadioCommunicationDefinition ( const DtEntityType &  type) const

Get an element definition for a radio communication based on entity type. Maps the radio communication's sender's entity type to the corresponding element definition.

const std::vector<DtUnicode>& makVrv::DtSharedSimulationSettings::mapRadioTransmissionDefinition ( const DtEntityType &  type) const

Get an element definition for a radio transmission based on entity type. Maps the radio transmission's sender's entity type to the corresponding element definition.

const std::vector<DtUnicode>& makVrv::DtSharedSimulationSettings::mapIffReplyDefinition ( const DtEntityType &  type) const

Get an element definition for a IFF Reply based on entity type. Maps the interrogated's entity type to the corresponding element definition.

const std::vector<DtUnicode>& makVrv::DtSharedSimulationSettings::mapTacticalSmokeDefinition ( const DtEntityType &  type) const

Get an element definition for a tactical smoke based upon entity type. Maps the tactical smoke's type to the corresponding element definition.

DtEntityTypeMapper* makVrv::DtSharedSimulationSettings::findMapperByName ( const std::string &  name)

Get a mapper by name.

const DtEntityTypeMapper* makVrv::DtSharedSimulationSettings::findMapperByName ( const std::string &  name) const

Get a mapper by name (const).

virtual void makVrv::DtSharedSimulationSettings::mapperNames ( std::vector< std::string > &  names) const
virtual

Get list of mapper names.

DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::typeMapper ( MapperType  type)

Mapper retrieval method.

Returns
the mapper of the given type.
const DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::typeMapper ( MapperType  type) const

Mapper retrieval method (const).

Returns
the mapper of the given type.
DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::entityTypeMapper ( )

Entity type mapper. Maps entity types to element definitions.

const DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::entityTypeMapper ( ) const

Entity types mapper (const). Maps entity types to element definitions.

DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::aggregateTypeMapper ( )

Aggregate type mapper. Maps aggregate types to element definitions.

const DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::aggregateTypeMapper ( ) const

Aggregate type mapper (const). Maps aggregate types to element definitions.

DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::weaponFireMapper ( )

Fire mapper. Maps munition types to element definitions.

const DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::weaponFireMapper ( ) const

Fire mapper (const). Maps munition types to element definitions.

DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::detonationTypeMapper ( )

Detonation mapper. Maps munition types to element definitions.

const DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::detonationTypeMapper ( ) const

Detonation mapper (const). Maps munition types to element definitions.

DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::soundTypeMapper ( )

Sound mapper. Maps sound types to element definitions.

const DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::soundTypeMapper ( ) const

Sound mapper (const). Maps sound types to element definitions.

DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::tacticalGraphicsMapper ( )

Tactical graphics mapper. Maps tactical graphics types to element definitions.

const DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::tacticalGraphicsMapper ( ) const

Tactical graphics mapper (const). Maps tactical graphics types to element definitions.

DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::radioCommunicationMapper ( )

Radio communication mapper. Maps radio communication sender entity types to element definitions.

const DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::radioCommunicationMapper ( ) const

Radio communication mapper (const). Maps radio communication sender entity types to element definitions.

DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::radioTransmissionMapper ( )

Radio transmission mapper. Maps radio transmission sender entity types to element definitions.

const DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::radioTransmissionMapper ( ) const

Radio transmission mapper (const). Maps radio transmission sender entity types to element definitions.

DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::iffReplyMapper ( )

IFF Reply mapper. Maps interrogated entity types to element definitions.

const DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::iffReplyMapper ( ) const

Radio transmission mapper (const). Maps interrogated entity types to element definitions.

DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::tacticalSmokeMapper ( )

Tactical Smoke mapper. Maps tactical smoke types to element definitions.

const DtEntityTypeMapper& makVrv::DtSharedSimulationSettings::tacticalSmokeMapper ( ) const

Tactical Smoke mapper (const). Maps tactical smoke types to element definitions.

static DtUnicode makVrv::DtSharedSimulationSettings::chooseElementDefinition ( const std::vector< DtUnicode > &  definitions)
static

Choose the element definition to use.

static const std::string& makVrv::DtSharedSimulationSettings::className ( )
static

The class name of the settings object.

virtual void makVrv::DtSharedSimulationSettings::connectMapper ( DtEntityTypeMapper &  mapper)
protectedvirtual

Connects mapper signals to update slot. Update slot will use shared message signaler to send out signal that something about a mapper has changed.

virtual void makVrv::DtSharedSimulationSettings::disconnectMapper ( DtEntityTypeMapper &  mapper)
protectedvirtual

Disconnects mapper signals.

virtual void makVrv::DtSharedSimulationSettings::mapperChanged ( const DtEntityType &  type,
const DtUnicode &  value,
DtEntityTypeMapper &  mapper 
)
protectedvirtual

Slot called when mapper changes. Uses shared message signaler to send out a mapperUpdated signal.

void makVrv::DtSharedSimulationSettings::initializeMapper ( MapperType  mapperType,
const std::string &  backupName 
)
private

Creates a new mapper and connects to changed signals. Non-virtual (Called from CTOR).

Friends And Related Function Documentation

Use the DtReadSettingsLock to read the object.

Use the DtWriteSettingsLock to write to the object.

Member Data Documentation

std::vector<DtUnicode> makVrv::DtSharedSimulationSettings::myEmptyMappings
protected

Empty vector, for returning the reference which will always be empty.

const char* makVrv::DtSharedSimulationSettings::theMapperNames[]
staticprotected
MappersMap makVrv::DtSharedSimulationSettings::myMappers
protected
makVrv::vrvSignalsLib::connection makVrv::DtSharedSimulationSettings::myMappingAddedConnection
protected
makVrv::vrvSignalsLib::connection makVrv::DtSharedSimulationSettings::myMappingRemovedConnection
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)