Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

Classes | Typedefs | Functions | Variables

getopt.h File Reference

#include <iprt/cdefs.h>
#include <iprt/types.h>
Include dependency graph for getopt.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  RTGETOPTDEF
struct  RTGETOPTSTATE
union  RTGETOPTUNION

Defines

RTGETOPTDEF::fFlags
Remarks:
When neither of the RTGETOPT_FLAG_HEX, RTGETOPT_FLAG_OCT and RTGETOPT_FLAG_DEC flags are specified with a integer value format, RTGetOpt will default to decimal but recognize the 0x prefix when present. RTGetOpt will not look for for the octal prefix (0).
#define RTGETOPT_REQ_NOTHING   0
#define RTGETOPT_REQ_STRING   1
#define RTGETOPT_REQ_INT8   2
#define RTGETOPT_REQ_UINT8   3
#define RTGETOPT_REQ_INT16   4
#define RTGETOPT_REQ_UINT16   5
#define RTGETOPT_REQ_INT32   6
#define RTGETOPT_REQ_UINT32   7
#define RTGETOPT_REQ_INT64   8
#define RTGETOPT_REQ_UINT64   9
#define RTGETOPT_REQ_IPV4ADDR   10
#define RTGETOPT_REQ_MACADDR   14
#define RTGETOPT_REQ_UUID   15
#define RTGETOPT_REQ_BOOL_ONOFF   16
#define RTGETOPT_REQ_MASK   31
#define RTGETOPT_FLAG_HEX   RT_BIT(16)
#define RTGETOPT_FLAG_OCT   RT_BIT(17)
#define RTGETOPT_FLAG_DEC   RT_BIT(18)
#define RTGETOPT_FLAG_INDEX   RT_BIT(19)
#define RTGETOPT_VALID_MASK
RTGetOptInit flags.
#define RTGETOPTINIT_FLAGS_OPTS_FIRST   RT_BIT_32(0)
#define RTGETOPTINIT_FLAGS_NO_STD_OPTS   RT_BIT_32(1)
RTGetOptArgvToString and RTGetOptArgvToUtf16String flags
#define RTGETOPTARGV_CNV_QUOTE_MS_CRT   UINT32_C(0)
#define RTGETOPTARGV_CNV_QUOTE_BOURNE_SH   UINT32_C(1)
#define RTGETOPTARGV_CNV_QUOTE_MASK   UINT32_C(1)

Typedefs

typedef const RTGETOPTDEFPCRTGETOPTDEF
typedef RTGETOPTUNION const * PCRTGETOPTUNION
typedef RTGETOPTDEFPRTGETOPTDEF
typedef RTGETOPTSTATEPRTGETOPTSTATE
typedef RTGETOPTUNIONPRTGETOPTUNION
typedef struct RTGETOPTDEF RTGETOPTDEF
typedef struct RTGETOPTSTATE RTGETOPTSTATE
typedef union RTGETOPTUNION RTGETOPTUNION

Functions

 RTDECL (int) RTGetOptInit(PRTGETOPTSTATE pState
 RTDECL (void) RTGetOptArgvFree(char **paArgv)
 RTDECL (RTEXITCODE) RTGetOptPrintError(int ch

Variables

int argc
int char ** argv
int char PCRTGETOPTDEF size_t cOptions
int char PCRTGETOPTDEF size_t
int uint32_t 
fFlags
int char PCRTGETOPTDEF size_t int iFirst
int char PCRTGETOPTDEF paOptions
const char *const papszArgv
int * pcArgs
int const char * pszCmdLine
int const char const char * pszSeparators
PRTGETOPTUNION pValueUnion

Detailed Description

IPRT - Command Line Parsing.

Definition in file getopt.h.


Generated by  Doxygen 1.6.0   Back to index