XPMP2
X-Plane multiplayer library 2 - using instancing
Classes | Namespaces | Typedefs | Enumerations | Functions
RelatedDoc8643.h File Reference

Reading of supporting text files: More...

Go to the source code of this file.

Classes

struct  XPMP2::Doc8643
 Represents a line in the Doc8643.txt file, of which we use only classification and WTC. More...
 
struct  XPMP2::Obj8DataRefs
 A pair of strings, first one to search for, second one to replace it with. More...
 

Namespaces

 XPMP2
 

Typedefs

typedef std::map< std::string, int > XPMP2::mapRelatedTy
 Map of group membership: ICAO a/c type maps to line in related.txt. More...
 
typedef std::map< std::string, Doc8643 > XPMP2::mapDoc8643Ty
 Map of Doc8643 information, key is the (icao) type code. More...
 
typedef std::list< Obj8DataRefs > XPMP2::listObj8DataRefsTy
 a list of Obj8DataRefs definitions More...
 

Enumerations

enum  XPMP2::RelTxtTy : size_t { XPMP2::REL_TXT_DESIGNATOR = 0 , XPMP2::REL_TXT_OP , XPMP2::REL_TXT_NUM }
 

Functions

const char * XPMP2::RelatedLoad (RelTxtTy relType, const std::string &_path)
 Read the related.txt file, full path passed in. More...
 
const char * XPMP2::RelatedLoad (const std::string _paths[], size_t _num)
 Load all related files. More...
 
int XPMP2::RelatedGet (RelTxtTy relType, const std::string &_key)
 Find the related group for a given key, 0 if none. More...
 
const char * XPMP2::Doc8643Load (const std::string &_path)
 Load the content of the provided Doc8643.txt file. More...
 
const Doc8643 & XPMP2::Doc8643Get (const std::string &_type)
 Return a reference to the matching Doc8643 object. More...
 
bool XPMP2::Doc8643IsTypeValid (const std::string &_type)
 Is the given aircraft type a valid ICAO type as per Doc8643? More...
 
const char * XPMP2::Obj8DataRefsLoad (const std::string &_path)
 Load the content of the provided Obj8DataRefs.txt file. More...
 

Detailed Description

Reading of supporting text files: