XPMP2
X-Plane multiplayer library 2 - using instancing
Public Member Functions | Public Attributes | Protected Attributes | List of all members
XPMP2::CSLModel::MatchCritTy Struct Reference

Combines match-relevant fields (beside ICAO a/c type) More...

#include <CSLModels.h>

Public Member Functions

void setAirline (const std::string &_icaoOp)
 Sets airline (operator) and looks up its 'related' group. More...
 
const std::string & getAirline () const
 ICAO Airline code / operator. More...
 
int getRelOp () const
 'Related' group of operator, if any, otherwise 0 More...
 
bool merge (const MatchCritTy &o)
 Decide which criteria is better and keep that. More...
 

Public Attributes

std::string livery
 Livery code this model represents: xsb_aircraft.txt::LIVERY More...
 

Protected Attributes

std::string icaoAirline
 ICAO Airline code this model represents: xsb_aircraft.txt::AIRLINE More...
 
int relOp = 0
 'related' group of the airline, if it exists, otherwise 0 More...
 

Detailed Description

Combines match-relevant fields (beside ICAO a/c type)

Member Function Documentation

◆ getAirline()

const std::string& XPMP2::CSLModel::MatchCritTy::getAirline ( ) const
inline

ICAO Airline code / operator.

◆ getRelOp()

int XPMP2::CSLModel::MatchCritTy::getRelOp ( ) const
inline

'Related' group of operator, if any, otherwise 0

◆ merge()

bool XPMP2::CSLModel::MatchCritTy::merge ( const MatchCritTy o)

Decide which criteria is better and keep that.

Returns
Did we cover o in some way? (false: needs to be treated separately)

◆ setAirline()

void XPMP2::CSLModel::MatchCritTy::setAirline ( const std::string &  _icaoOp)
inline

Sets airline (operator) and looks up its 'related' group.

Member Data Documentation

◆ icaoAirline

std::string XPMP2::CSLModel::MatchCritTy::icaoAirline
protected

ICAO Airline code this model represents: xsb_aircraft.txt::AIRLINE

◆ livery

std::string XPMP2::CSLModel::MatchCritTy::livery

Livery code this model represents: xsb_aircraft.txt::LIVERY

◆ relOp

int XPMP2::CSLModel::MatchCritTy::relOp = 0
protected

'related' group of the airline, if it exists, otherwise 0


The documentation for this struct was generated from the following files: