VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
combatIdentificationLevelTable.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: combatIdentificationLevelTable.h,v $ $Revision: 1.8 $ $State: Exp $
7 ** Created: 4/2/07 MEM
8 *******************************************************************************/
9 
12 
14 
15 #ifndef combatIdentificationLevelTable_H_
16 #define combatIdentificationLevelTable_H_
17 
19 #include <vlutil/vlMachineTypes.h>
20 #include "vrfutil/vrfutilDefines.h"
21 #include <vector>
22 
23 class DtString;
26 
35 {
36 public:
37 
38  typedef std::vector<DtCombatIdentificationLevelTableEntry*> DtCombatIdentificationEntryList;
39 
42 
45  parentRegistry = NULL);
46 
48  parentRegistry = NULL);
49 
51  DtCombatIdentificationLevelTable(const DtString& name, const
53  parentRegistry = NULL);
54 
57  parentRegistry = NULL);
58 
61 
63  virtual ~DtCombatIdentificationLevelTable() override;
64 
65 public:
66 
71  virtual void putSelf(std::string& fp, int indentLevel = 0,
72  bool writeUnspecified = false, const DtFilename& path =
73  DtFilename::nullFilename()) override;
74 
78  virtual void getSelf( FILE* fp,
79  const DtReaderWriter::SearchPaths& searchPaths = SearchPaths());
80 
83  virtual int getIdentificationLevel(DtReal& appSig, DtReal & detInterval) const;
84 
86  virtual const DtCombatIdentificationLevelTableEntry * getEntryForAppSignature(
87  double & appSig,bool needmatch = false) const;
88 
92  virtual const char* readerWriterType() const override;
93 
94  virtual DtCombatIdentificationEntryList & identificationEntries();
95  virtual const DtCombatIdentificationEntryList & identificationEntries() const;
96 
99  virtual void addTableEntry(DtCombatIdentificationLevelTableEntry * entry);
100 
101 protected:
102 
103  void printTable();
106  void clearTable();
110  void copyTableFrom(const DtCombatIdentificationEntryList& sourceTable);
111 
112 protected:
113 
115 
116 };
117 
118 #endif
119 
120 
121 
DtCombatIdentificationEntryList myCombatIdentificationEntries
Definition: combatIdentificationLevelTable.h:114
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
File: csvReaderWriter.h.
Definition: cSVReaderWriter.h:36
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename()) override
Top level call to write itself to file. If write unspecified is true, will write entries that are uns...
std::vector< DtCombatIdentificationLevelTableEntry * > DtCombatIdentificationEntryList
Definition: combatIdentificationLevelTable.h:38
Definition: combatIdentificationLevelTableEntry.h:29
Definition: readerWriterRegistry.h:39
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
virtual const char * readerWriterType() const override
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
virtual void getSelf(FILE *fp)
Top level to read itself from an input stream. searchPath is passed down to all DtCSVReaderWriter mem...
DtCombatIdentificationLevelTable represents a look up table for the level identification possible fo...
Definition: combatIdentificationLevelTable.h:34
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
const DtCSVReaderWriter & operator=(const DtCSVReaderWriter &orig)
assignment operator

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)