FlightGear next
flightgear::Options::OptionsPrivate Class Reference

Public Member Functions

OptionValueVec::const_iterator findValue (const string &key) const
 
OptionValueVec::iterator findValue (const string &key)
 
const OptionDescfindOption (const string &key) const
 
int processOption (const OptionDesc *desc, const string &arg_value)
 
void insertGroupMarker ()
 insert a marker value into the values vector.
 
OptionValueVec::const_iterator rfindGroup (OptionValueVec::const_iterator pos) const
 given a current iterator into the values, find the preceding group marker, or return the beginning of the value vector.
 
cJSON * createJSONArrayFromPathList (const PathList &pl) const
 

Public Attributes

bool showHelp
 
bool verbose
 
bool showAircraft
 
bool shouldLoadDefaultConfig
 
OptionDescDict options
 
OptionValueVec values
 
simgear::PathList configFiles
 
simgear::PathList propertyFiles
 

Detailed Description

Definition at line 2157 of file options.cxx.

Member Function Documentation

◆ createJSONArrayFromPathList()

cJSON * flightgear::Options::OptionsPrivate::createJSONArrayFromPathList ( const PathList & pl) const
inline

Definition at line 2311 of file options.cxx.

◆ findOption()

const OptionDesc * flightgear::Options::OptionsPrivate::findOption ( const string & key) const
inline

Definition at line 2193 of file options.cxx.

◆ findValue() [1/2]

OptionValueVec::iterator flightgear::Options::OptionsPrivate::findValue ( const string & key)
inline

Definition at line 2177 of file options.cxx.

◆ findValue() [2/2]

OptionValueVec::const_iterator flightgear::Options::OptionsPrivate::findValue ( const string & key) const
inline

Definition at line 2161 of file options.cxx.

◆ insertGroupMarker()

void flightgear::Options::OptionsPrivate::insertGroupMarker ( )
inline

insert a marker value into the values vector.

This is necessary when processing options, to ensure the correct ordering, where we scan for marker values in reverse, and then forwards within each group.

Definition at line 2289 of file options.cxx.

◆ processOption()

int flightgear::Options::OptionsPrivate::processOption ( const OptionDesc * desc,
const string & arg_value )
inline

Definition at line 2203 of file options.cxx.

◆ rfindGroup()

OptionValueVec::const_iterator flightgear::Options::OptionsPrivate::rfindGroup ( OptionValueVec::const_iterator pos) const
inline

given a current iterator into the values, find the preceding group marker, or return the beginning of the value vector.

Definition at line 2298 of file options.cxx.

Member Data Documentation

◆ configFiles

simgear::PathList flightgear::Options::OptionsPrivate::configFiles

Definition at line 2341 of file options.cxx.

◆ options

OptionDescDict flightgear::Options::OptionsPrivate::options

Definition at line 2339 of file options.cxx.

◆ propertyFiles

simgear::PathList flightgear::Options::OptionsPrivate::propertyFiles

Definition at line 2342 of file options.cxx.

◆ shouldLoadDefaultConfig

bool flightgear::Options::OptionsPrivate::shouldLoadDefaultConfig

Definition at line 2337 of file options.cxx.

◆ showAircraft

bool flightgear::Options::OptionsPrivate::showAircraft

Definition at line 2336 of file options.cxx.

◆ showHelp

bool flightgear::Options::OptionsPrivate::showHelp

Definition at line 2334 of file options.cxx.

◆ values

OptionValueVec flightgear::Options::OptionsPrivate::values

Definition at line 2340 of file options.cxx.

◆ verbose

bool flightgear::Options::OptionsPrivate::verbose

Definition at line 2335 of file options.cxx.


The documentation for this class was generated from the following file: