![]() |
VR-Forces 4.0.4 Class Documentation
|
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...

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 |
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.
| typedef std::vector<DtCombatIdentificationLevelTableEntry*> DtCombatIdentificationLevelTable::DtCombatIdentificationEntryList |
default constructor
| DtCombatIdentificationLevelTable::DtCombatIdentificationLevelTable | ( | const DtString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
Constructor with parameters to set up read/writability correctly.
| DtCombatIdentificationLevelTable::DtCombatIdentificationLevelTable | ( | const DtSymbolString & | name, |
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| DtCombatIdentificationLevelTable::DtCombatIdentificationLevelTable | ( | const DtString & | name, |
| const DtCombatIdentificationLevelTable & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
copy constructor
| DtCombatIdentificationLevelTable::DtCombatIdentificationLevelTable | ( | const DtSymbolString & | name, |
| const DtCombatIdentificationLevelTable & | orig, | ||
| DtReaderWriterRegistry * | parentRegistry = NULL |
||
| ) |
| virtual DtCombatIdentificationLevelTable::~DtCombatIdentificationLevelTable | ( | ) | [virtual] |
destructor
| 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.
| virtual DtCombatIdentificationEntryList& DtCombatIdentificationLevelTable::identificationEntries | ( | ) | [virtual] |
| virtual const DtCombatIdentificationEntryList& DtCombatIdentificationLevelTable::identificationEntries | ( | ) | const [virtual] |
| virtual void DtCombatIdentificationLevelTable::addTableEntry | ( | DtCombatIdentificationLevelTableEntry * | entry | ) | [virtual] |
Creates a new entry based on one passed in, so, if passed in entry is allocated, deallocate to prevent memory leak.
| void DtCombatIdentificationLevelTable::printTable | ( | ) | [protected] |
| void DtCombatIdentificationLevelTable::clearTable | ( | ) | [protected] |
Removes and deletes all entries from myCombatIdentificationEntries.
Non-virtual since it is called from constructors/destructor.
| void DtCombatIdentificationLevelTable::copyTableFrom | ( | const DtCombatIdentificationEntryList & | sourceTable | ) | [protected] |
Copies all table entries from the provided source list.
calls clearTable() first. Non-virtual since it is called from constructors.
DtCombatIdentificationEntryList DtCombatIdentificationLevelTable::myCombatIdentificationEntries [protected] |