scaffold  1.0.0
Generates files and directories based on templates and user input
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ArgManager Class Reference

manages command line arguments More...

Public Member Functions

 ArgManager ()
 constructor
 
 ~ArgManager ()
 destructor
 
int appendEntry (ArgBase *it, void *p_entry)
 add an argument structure and return its index
 
int appendText (const QString &s)
 add a text to internal buffer
 
void * getEntry (int i)
 get the argument pointer/handle
 
const char * savedText (int i)
 get the text at a certain index
 
void showUsage (void)
 show the usage
 
void appendFile (const QString &s)
 add a file
 
ExitCode proceed (int argc, char *argv[])
 for each item check each if used; act accordingly
 
 ArgManager ()
 constructor
 
 ~ArgManager ()
 destructor
 
int appendEntry (ArgBase *it, void *p_entry)
 add an argument structure and return its index
 
int appendText (const QString &s)
 add a text to internal buffer
 
void * getEntry (int i)
 get the argument pointer/handle
 
const char * savedText (int i)
 get the text at a certain index
 
void showUsage (void)
 show the usage
 
void appendFile (const QString &s)
 add a file
 
void insertVar (const QString &s_var, const QString &s_val)
 insert a variable into the start-up suite
 
ExitCode proceed (int argc, char *argv[])
 for each item check each if used; act accordingly
 

Protected Types

enum  Defs { MAX_ARG_STORE = 50, MAX_ARG_STORE = 50 }
 definitions for this class More...
 
enum  Defs { MAX_ARG_STORE = 50, MAX_ARG_STORE = 50 }
 definitions for this class More...
 

Protected Attributes

void * arg_array_ [MAX_ARG_STORE]
 array of handlers
 
int args_count_
 number of allocated argument handlers
 
QVector< QByteArray > text_store_
 allocated texts
 
QStringList init_files_
 the list of files
 
QVector< ArgBase * > kids_
 the list of arguments
 
bbb::VarMap vmap_
 the variables set on start-up
 

Detailed Description

manages command line arguments

Member Enumeration Documentation

enum ArgManager::Defs
protected

definitions for this class

Enumerator
MAX_ARG_STORE 

spots in the array for argument handlers

MAX_ARG_STORE 

spots in the array for argument handlers

enum ArgManager::Defs
protected

definitions for this class

Enumerator
MAX_ARG_STORE 

spots in the array for argument handlers

MAX_ARG_STORE 

spots in the array for argument handlers


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