OpenADFortTk (basic)
src/lib/support/CmdLineParser.cxx File Reference
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <algorithm>
#include "CmdLineParser.h"
Include dependency graph for CmdLineParser.cxx:

Go to the source code of this file.

Classes

struct  lt_OptArgDesc

Functions

static bool IsDashDash (const char *str)
static bool IsLongSwitch (const char *str)
static bool IsShortSwitch (const char *str)
static bool IsSwitch (const char *str)
static bool IsArg (const char *str)

Variables

static string MISSING_SWITCH = "Missing switch after -"
static string UNKNOWN_SWITCH = "Unknown option switch: "
static string MISSING_ARG = "Missing argument for switch: "

Function Documentation

static bool IsArg ( const char *  str) [inline, static]

Definition at line 76 of file CmdLineParser.cxx.

References IsDashDash(), and IsSwitch().

Referenced by CmdLineParser::Parse().

Here is the call graph for this function:

static bool IsDashDash ( const char *  str) [inline, static]

Definition at line 57 of file CmdLineParser.cxx.

Referenced by IsArg(), and CmdLineParser::Parse().

static bool IsLongSwitch ( const char *  str) [inline, static]

Definition at line 64 of file CmdLineParser.cxx.

Referenced by IsSwitch(), and CmdLineParser::MakeSwitchDesc().

static bool IsShortSwitch ( const char *  str) [inline, static]

Definition at line 67 of file CmdLineParser.cxx.

Referenced by IsSwitch(), and CmdLineParser::MakeSwitchDesc().

static bool IsSwitch ( const char *  str) [inline, static]

Definition at line 70 of file CmdLineParser.cxx.

References IsLongSwitch(), and IsShortSwitch().

Referenced by IsArg(), and CmdLineParser::Parse().

Here is the call graph for this function:


Variable Documentation

string MISSING_ARG = "Missing argument for switch: " [static]

Definition at line 21 of file CmdLineParser.cxx.

Referenced by CmdLineParser::Parse().

string MISSING_SWITCH = "Missing switch after -" [static]

Definition at line 19 of file CmdLineParser.cxx.

Referenced by CmdLineParser::Parse().

string UNKNOWN_SWITCH = "Unknown option switch: " [static]

Definition at line 20 of file CmdLineParser.cxx.

Referenced by CmdLineParser::Parse().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines