![]() |
VR-Forces 4.6 Class Documentation
|
Public Types | |
| typedef std::map< std::string, std::string > | StringMap |
| typedef std::map< std::string, int > | StringIntMap |
| typedef std::map< int, std::string > | IntStringMap |
Public Member Functions | |
| DtMsdlHierarchyPropertyMappings () | |
| CTOR. | |
| DtMsdlHierarchyPropertyMappings (const DtMsdlHierarchyPropertyMappings &) | |
| virtual | ~DtMsdlHierarchyPropertyMappings () |
| DTOR. | |
| DtMsdlHierarchyPropertyMappings & | operator= (const DtMsdlHierarchyPropertyMappings &) |
| virtual std::string | mapHierarchyItemToSidc (const std::string &msdlHierarchy) const |
| Return a mapping of hierarchy code to SIDC code. | |
| virtual std::string | mapSidcToName (const std::string &sidc) const |
| Return the name for the SIDC code. | |
| virtual std::string | mapSidcToHierarchyItem (const std::string &sidc) const |
| virtual std::string | mapEntityTypeToSidc (const DtEntityType &) const |
| Maps a DIS enumeration to SIDC code. | |
| virtual int | mapCountryCodeToDisEnumeration (const std::string &) const |
| virtual DtEntityType | mapSidcToDisEnumeration (const std::string sidcCode, const std::string &countryCode="US") const |
| Check DIS Enumeration map for match. | |
| virtual DtEntityType | mapSidcToEntityType (const std::string &, const std::string &countryCode="US") const |
| Converts an SIDC to an entity type. | |
| virtual DtEntityType | mapSidcToTacticalGraphicType (const std::string &sidcCode, const std::string &symbolClass) const |
| Converts the tactical graphic type/symbol class to entity type. | |
| virtual std::string | mapCountryEnumerationToCountryCode (int) const |
| Maps a country enumeration to 2 digit country code. | |
| virtual std::string | mapCountryCodeToCountryName (const std::string &) const |
| Returns the country name given the country code. | |
| virtual bool | loadMsdlSidcMappingsFile (const DtFilename &) |
| Loads the mapping file. | |
| virtual bool | loadCountryCodesMappingFile (const DtFilename &) |
| Loads the country codes mapping file. | |
| virtual bool | save () |
| Saves msdl mappings to file loaded from. | |
| virtual bool | save (const DtFilename &) |
| Saves msdl mappings to specified file. | |
| virtual void | merge (const DtMsdlHierarchyPropertyMappings &) |
| Merges in the contents of the given hierarchy to this (replaces and adds, but does not delete missing items) | |
| virtual std::string | findClosestSidc (const std::string &source) const |
| Finds the closest SIDC to the supplied on given the hierarchy to SIDC mapping. | |
| virtual void | addSidcCode (const std::string &) |
| virtual void | addToCountryCodeToCountryNameMapping (const std::string &countrycode, const std::string &countryname) |
| Adds to country code/country name mapping. Format is: <country_code>.ccode=<country name>=""> | |
| virtual void | addToHierarchyMapping (const std::string &enumeration, const std::string &sidcCode) |
| Adds to hierarchy mapping. Format is: <hier>=<sidc code>=""> | |
| virtual void | addToNameMapping (const std::string &sidcCode, const std::string &name) |
| Adds to name mappings. Format is <sidc>.name = name. | |
| virtual void | addToDisMapping (const std::string &sidcCode, const std::string &entityType) |
| Adds to dis mappings. Format is <sidc>.dis = entity type. | |
| virtual void | addCountryCode (const std::string &, int) |
| Adds a country code. | |
| virtual void | merge (StringMap &, const StringMap &) |
| Merges in the contents of the given hierarchy to this (replaces and adds, but does not delete missing items) | |
| const StringMap & | countryCodeToNameMap () const |
| Returns country code to name map. | |
| const StringMap & | sidcToNameMap () const |
| Returns the SIDC to name map. | |
Public Attributes | |
| StringMap | myHierarchyItemToSidc |
| StringMap | mySidcToHierarchyItem |
| StringMap | mySidcToName |
| StringMap | mySidcToDisEnumeration |
| StringMap | myCountryCodeToCountryName |
| StringIntMap | myCountryCodes |
| IntStringMap | myCountryEnumerationCodes |
| std::set< std::string > | mySidcCodes |
| DtFilename | myFile |
| typedef std::map<std::string, std::string> DtMsdlHierarchyPropertyMappings::StringMap |
| typedef std::map<std::string, int> DtMsdlHierarchyPropertyMappings::StringIntMap |
| typedef std::map<int, std::string> DtMsdlHierarchyPropertyMappings::IntStringMap |
| DtMsdlHierarchyPropertyMappings::DtMsdlHierarchyPropertyMappings | ( | ) |
CTOR.
| DtMsdlHierarchyPropertyMappings::DtMsdlHierarchyPropertyMappings | ( | const DtMsdlHierarchyPropertyMappings & | ) |
|
virtual |
DTOR.
| DtMsdlHierarchyPropertyMappings& DtMsdlHierarchyPropertyMappings::operator= | ( | const DtMsdlHierarchyPropertyMappings & | ) |
|
virtual |
Return a mapping of hierarchy code to SIDC code.
|
virtual |
Return the name for the SIDC code.
|
virtual |
|
virtual |
Maps a DIS enumeration to SIDC code.
If there is no direct mapping will attempt to map based on aggregate type. If there is no mapping will return empty string.
|
virtual |
|
virtual |
Check DIS Enumeration map for match.
Also fills in blanks four country code if specified. If not specified sets country code to US
|
virtual |
Converts an SIDC to an entity type.
Differs from DisEnumeration call in that it will try and parse the SIDC code to fill in some blanks, whereas the DisEnumeration call does not
|
virtual |
Converts the tactical graphic type/symbol class to entity type.
|
virtual |
Maps a country enumeration to 2 digit country code.
|
virtual |
Returns the country name given the country code.
If country code is > 2 characters, shortened to 2 characters for search
|
virtual |
Loads the mapping file.
|
virtual |
Loads the country codes mapping file.
|
virtual |
Saves msdl mappings to file loaded from.
|
virtual |
Saves msdl mappings to specified file.
|
virtual |
Merges in the contents of the given hierarchy to this (replaces and adds, but does not delete missing items)
|
virtual |
Finds the closest SIDC to the supplied on given the hierarchy to SIDC mapping.
Iterates over the hierarchy map and compares the SIDC code to the supplied code
|
virtual |
|
virtual |
Adds to country code/country name mapping. Format is: <country_code>.ccode=<country name>="">
|
virtual |
Adds to hierarchy mapping. Format is: <hier>=<sidc code>="">
|
virtual |
Adds to name mappings. Format is <sidc>.name = name.
|
virtual |
Adds to dis mappings. Format is <sidc>.dis = entity type.
|
virtual |
Adds a country code.
Merges in the contents of the given hierarchy to this (replaces and adds, but does not delete missing items)
| const StringMap& DtMsdlHierarchyPropertyMappings::countryCodeToNameMap | ( | ) | const |
Returns country code to name map.
| const StringMap& DtMsdlHierarchyPropertyMappings::sidcToNameMap | ( | ) | const |
Returns the SIDC to name map.
| StringMap DtMsdlHierarchyPropertyMappings::myHierarchyItemToSidc |
| StringMap DtMsdlHierarchyPropertyMappings::mySidcToHierarchyItem |
| StringMap DtMsdlHierarchyPropertyMappings::mySidcToName |
| StringMap DtMsdlHierarchyPropertyMappings::mySidcToDisEnumeration |
| StringMap DtMsdlHierarchyPropertyMappings::myCountryCodeToCountryName |
| StringIntMap DtMsdlHierarchyPropertyMappings::myCountryCodes |
| IntStringMap DtMsdlHierarchyPropertyMappings::myCountryEnumerationCodes |
| std::set<std::string> DtMsdlHierarchyPropertyMappings::mySidcCodes |
| DtFilename DtMsdlHierarchyPropertyMappings::myFile |