libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CommandLine Class Reference

#include <cmndline.h>

Collaboration diagram for CommandLine:

Classes

struct  Args
 
struct  Dispatch
 

Public Types

enum  AFlags {
  HasArg = (1 << 0),
  IntLevel = (1 << 1),
  Boolean = (1 << 2),
  InvBoolean = (1 << 3),
  ConfigFile = (1 << 4) | HasArg,
  ArbItem = (1 << 5) | HasArg
}
 

Public Member Functions

 CommandLine (Args *AList, Configuration *Conf)
 
 ~CommandLine ()
 
bool DispatchArg (Dispatch *List, bool NoMatch=true)
 
unsigned int FileSize () const
 
bool Parse (int argc, const char **argv)
 
void ShowHelp ()
 

Public Attributes

const char ** FileList
 

Protected Member Functions

bool HandleOpt (int &I, int argc, const char *argv[], const char *&Opt, Args *A, bool PreceedeMatch=false)
 

Static Protected Member Functions

static void SaveInConfig (unsigned int const &argc, char const *const *const argv)
 

Protected Attributes

ArgsArgList
 
ConfigurationConf
 

Member Enumeration Documentation

Enumerator
HasArg 
IntLevel 
Boolean 
InvBoolean 
ConfigFile 
ArbItem 

Constructor & Destructor Documentation

CommandLine::CommandLine ( Args AList,
Configuration Conf 
)
CommandLine::~CommandLine ( )

Member Function Documentation

bool CommandLine::DispatchArg ( Dispatch List,
bool  NoMatch = true 
)
unsigned int CommandLine::FileSize ( ) const
bool CommandLine::HandleOpt ( int &  I,
int  argc,
const char *  argv[],
const char *&  Opt,
Args A,
bool  PreceedeMatch = false 
)
protected
bool CommandLine::Parse ( int  argc,
const char **  argv 
)
static void CommandLine::SaveInConfig ( unsigned int const &  argc,
char const *const *const  argv 
)
staticprotected
void CommandLine::ShowHelp ( )

Member Data Documentation

Args* CommandLine::ArgList
protected
Configuration* CommandLine::Conf
protected
const char** CommandLine::FileList

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