VR-Forces 4.0.4 Class Documentation
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
DtCombatIdentificationLevelTable Class Reference

DtCombatIdentificationLevelTable represents a look up table for the level identification possible for an object with a defined apparent signature and that apparent signature the interval of time the object has been detected. More...

Inheritance diagram for DtCombatIdentificationLevelTable:
Inheritance graph
[legend]

List of all members.

Public Types

typedef std::vector
< DtCombatIdentificationLevelTableEntry * > 
DtCombatIdentificationEntryList

Public Member Functions

 DtCombatIdentificationLevelTable ()
 default constructor
 DtCombatIdentificationLevelTable (const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL)
 Constructor with parameters to set up read/writability correctly.
 DtCombatIdentificationLevelTable (const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
 DtCombatIdentificationLevelTable (const DtString &name, const DtCombatIdentificationLevelTable &orig, DtReaderWriterRegistry *parentRegistry=NULL)
 copy constructor
 DtCombatIdentificationLevelTable (const DtSymbolString &name, const DtCombatIdentificationLevelTable &orig, DtReaderWriterRegistry *parentRegistry=NULL)
const
DtCombatIdentificationLevelTable
operator= (const DtCombatIdentificationLevelTable &orig)
virtual ~DtCombatIdentificationLevelTable ()
 destructor
virtual void putSelf (FILE *fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
 Top level call to write itself to file.
virtual void getSelf (FILE *fp, const DtFilename &searchPath=DtFilename::nullFilename())
 Top level to read itself from an input stream.
virtual int getIdentificationLevel (DtReal &appSig, DtReal &detInterval) const
 The caller provides a pointer to a DtCombatIdentificationLevelTableEntry, which is filled in with the appropriate identification level.
virtual const
DtCombatIdentificationLevelTableEntry
getEntryForAppSignature (double &appSig, bool needmatch=false) const
 Find the Combat Identification entry for this apparent signature.
virtual const char * readerWriterType () const
 Used to supply a string type that this reader writer type is.
virtual
DtCombatIdentificationEntryList
identificationEntries ()
virtual const
DtCombatIdentificationEntryList
identificationEntries () const
virtual void addTableEntry (DtCombatIdentificationLevelTableEntry *entry)
 Creates a new entry based on one passed in, so, if passed in entry is allocated, deallocate to prevent memory leak.

Protected Member Functions

void printTable ()
void clearTable ()
 Removes and deletes all entries from myCombatIdentificationEntries.
void copyTableFrom (const DtCombatIdentificationEntryList &sourceTable)
 Copies all table entries from the provided source list.

Protected Attributes

DtCombatIdentificationEntryList myCombatIdentificationEntries

Detailed Description

DtCombatIdentificationLevelTable represents a look up table for the level identification possible for an object with a defined apparent signature and that apparent signature the interval of time the object has been detected.

example, a tank with an apparent signature of 2.0 that has only been observed 10 sec might only produce a identification level of DtDetected, but if instead had been observed for 60 sec it's identification level might be higher, DtIdentified. file is read in when the sensor's created.


Member Typedef Documentation


Constructor & Destructor Documentation

default constructor

Constructor with parameters to set up read/writability correctly.

copy constructor

destructor


Member Function Documentation

const DtCombatIdentificationLevelTable& DtCombatIdentificationLevelTable::operator= ( const DtCombatIdentificationLevelTable orig)
virtual void DtCombatIdentificationLevelTable::putSelf ( FILE *  fp,
int  indentLevel = 0,
bool  writeUnspecified = false,
const DtFilename &  path = DtFilename::nullFilename() 
) [virtual]

Top level call to write itself to file.

If write unspecified is true, will write entries that are unspecified. Path is passed down to all DtCSVReaderWriter members in its DtCSVReaderWriterRegistry (collection of child DtCSVReaderWriter nodes).

Reimplemented from DtCSVReaderWriter.

virtual void DtCombatIdentificationLevelTable::getSelf ( FILE *  fp,
const DtFilename &  searchPath = DtFilename::nullFilename() 
) [virtual]

Top level to read itself from an input stream.

searchPath is passed down to all DtCSVReaderWriter members in its DtCSVReaderWriterRegistry (collection of child DtCSVReaderWriter nodes).

virtual int DtCombatIdentificationLevelTable::getIdentificationLevel ( DtReal &  appSig,
DtReal &  detInterval 
) const [virtual]

The caller provides a pointer to a DtCombatIdentificationLevelTableEntry, which is filled in with the appropriate identification level.

virtual const DtCombatIdentificationLevelTableEntry* DtCombatIdentificationLevelTable::getEntryForAppSignature ( double &  appSig,
bool  needmatch = false 
) const [virtual]

Find the Combat Identification entry for this apparent signature.

virtual const char* DtCombatIdentificationLevelTable::readerWriterType ( ) const [virtual]

Used to supply a string type that this reader writer type is.

This can be used in place of dynamic-casting. Also used by the opd editor to determine which type of control to create

Reimplemented from DtCSVReaderWriter.

Creates a new entry based on one passed in, so, if passed in entry is allocated, deallocate to prevent memory leak.

Removes and deletes all entries from myCombatIdentificationEntries.

Non-virtual since it is called from constructors/destructor.

Copies all table entries from the provided source list.

calls clearTable() first. Non-virtual since it is called from constructors.


Member Data Documentation


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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)