APM:Libraries
Classes | Public Types | Public Member Functions | Public Attributes | Private Attributes | List of all members
GetOptLong Class Reference

#include <getopt_cpp.h>

Collaboration diagram for GetOptLong:
[legend]

Classes

struct  option
 

Public Types

enum  error_return { BADCH ='?', BADARG =':' }
 

Public Member Functions

 GetOptLong (int argc, char *const argv[], const char *optstring, const option *longopts)
 
int getoption (void)
 

Public Attributes

int opterr
 
int optind
 
int optopt
 
int longindex
 
const char * optarg
 

Private Attributes

int argc
 
char *const * argv
 
const char * optstring
 
const struct optionlongopts
 
const char * place
 

Detailed Description

Definition at line 14 of file getopt_cpp.h.

Member Enumeration Documentation

◆ error_return

Enumerator
BADCH 
BADARG 

Definition at line 31 of file getopt_cpp.h.

Constructor & Destructor Documentation

◆ GetOptLong()

GetOptLong::GetOptLong ( int  argc,
char *const  argv[],
const char *  optstring,
const option longopts 
)

Member Function Documentation

◆ getoption()

int GetOptLong::getoption ( void  )

Referenced by HALSITL::SITL_State::_parse_command_line(), and HAL_Linux::run().

Here is the caller graph for this function:

Member Data Documentation

◆ argc

int GetOptLong::argc
private

Definition at line 40 of file getopt_cpp.h.

◆ argv

char* const* GetOptLong::argv
private

Definition at line 41 of file getopt_cpp.h.

◆ longindex

int GetOptLong::longindex

Definition at line 28 of file getopt_cpp.h.

◆ longopts

const struct option* GetOptLong::longopts
private

Definition at line 43 of file getopt_cpp.h.

◆ optarg

const char* GetOptLong::optarg

Definition at line 29 of file getopt_cpp.h.

Referenced by HALSITL::SITL_State::_parse_command_line(), and HAL_Linux::run().

◆ opterr

int GetOptLong::opterr

Definition at line 25 of file getopt_cpp.h.

◆ optind

int GetOptLong::optind

Definition at line 26 of file getopt_cpp.h.

Referenced by HAL_Linux::run().

◆ optopt

int GetOptLong::optopt

Definition at line 27 of file getopt_cpp.h.

◆ optstring

const char* GetOptLong::optstring
private

Definition at line 42 of file getopt_cpp.h.

◆ place

const char* GetOptLong::place
private

Definition at line 44 of file getopt_cpp.h.


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