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

getopt.h File Reference


Detailed Description

IPRT - Command Line Parsing.

Definition in file getopt.h.

#include <iprt/cdefs.h>
#include <iprt/types.h>

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_FLAG_DEC   RT_BIT(18)
#define RTGETOPT_FLAG_HEX   RT_BIT(16)
#define RTGETOPT_FLAG_OCT   RT_BIT(17)
#define RTGETOPT_REQ_INT16   4
#define RTGETOPT_REQ_INT32   6
#define RTGETOPT_REQ_INT64   8
#define RTGETOPT_REQ_INT8   2
#define RTGETOPT_REQ_IPV4ADDR   10
#define RTGETOPT_REQ_MACADDR   14
#define RTGETOPT_REQ_MASK   15
#define RTGETOPT_REQ_NOTHING   0
#define RTGETOPT_REQ_STRING   1
#define RTGETOPT_REQ_UINT16   5
#define RTGETOPT_REQ_UINT32   7
#define RTGETOPT_REQ_UINT64   9
#define RTGETOPT_REQ_UINT8   3
#define RTGETOPT_REQ_UUID   15
#define RTGETOPT_VALID_MASK   ( RTGETOPT_REQ_MASK | RTGETOPT_FLAG_HEX | RTGETOPT_FLAG_OCT | RTGETOPT_FLAG_DEC )

Typedefs

typedef const RTGETOPTDEFPCRTGETOPTDEF
typedef RTGETOPTUNION const * PCRTGETOPTUNION
typedef RTGETOPTDEFPRTGETOPTDEF
typedef RTGETOPTSTATEPRTGETOPTSTATE
typedef RTGETOPTUNIONPRTGETOPTUNION

Functions

 RTDECL (int) RTGetOptInit(PRTGETOPTSTATE pState

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
PRTGETOPTUNION pValueUnion


Generated by  Doxygen 1.6.0   Back to index