MAINFILE=somefile.cpp EXECUTABLE=somefileDefault: MAINFILE without extension
LINKER=g++ -lm -lxx -lxx -lxxDefault: g++ -lm
LINKER_TAIL=libRPClort.aDefault: nothing...
COMPILER=g++ -O2 -g -I/usr/local/lib/mysqlDefault: g++ -O2 -g
MAKESCRIPT=somefile.shDefault: MAINFILE with .sh-extension
DOTOUTPUT=somefile.dotDefault: nothing...
MAKER_ADD_DEPENDENCY="somefile.xxx"Default: nothing...
#include <optionreader.h>
Public Methods | |
OptionReader (int argc, char **argv) | |
Reads the file fname and sets all values. More... | |
~OptionReader () | |
Deletes all strings. | |
int | getArguments (char **&argv) |
Gets the arguments that was passed to the OptionReader in the constructor. More... | |
void | print (void) |
Dumps the content of this OptionReader object on stdout. | |
char* | getMainfile (void) |
char* | getExecutable (void) |
char* | getLinker (void) |
char* | getLinkerTail (void) |
char* | getCompiler (void) |
char* | getMakescript (void) |
char* | getDotoutput (void) |
int | getOptionFileIndex (void) |
bool | performLink (void) |
bool | isGraphExcluded (int n, const char *fname) |
void | displayHelp (void) |
Displays a short help. | |
Private Methods | |
void | parse (FILE *fin) |
Parses the file lilne by line and extracts the variables. More... | |
void | parseLine (char *buf) |
Parses the file lilne by line and extracts the variables. More... | |
void | graphExclude (int n, const char *fname) |
Adds a file to a graph exclude list. More... | |
void | defaults (const char *fname) |
Sets default values in all empty fields. More... | |
char* | expandMacros (const char *input) |
Expands in input: $DATE$ to yyyy-mm-dd $TIME$ to hh:mm. More... | |
Private Attributes | |
int | makFileFound |
char* | mainfile |
char * | executable |
char * | linker |
char * | linkerTail |
char * | compiler |
char * | makescript |
char * | dotoutput |
char** | argV |
int | argC |
bool | noLink |
int | excludeCount [MAXGRAPHLISTS] |
char* | exclude [MAXGRAPHLISTS][MAXEXCLUDELISTLENGTH] |
MAINFILE=somefile.cpp EXECUTABLE=somefileDefault: MAINFILE without extension
LINKER=g++ -lm -lxx -lxx -lxxDefault: g++ -lm
LINKER_TAIL=libRPClort.aDefault: nothing...
COMPILER=g++ -O2 -g -I/usr/local/lib/mysqlDefault: g++ -O2 -g
MAKESCRIPT=somefile.shDefault: MAINFILE with .sh-extension
DOTOUTPUT=somefile.dotDefault: nothing...
MAKER_ADD_DEPENDENCY="somefile.xxx"Default: nothing...
This option works only in source files.
NOFILE as parameter means no option file is in parameter line.
NOLINK as parameter means linking stage will be added to the makescript.
G2EXCLUDE=somefile excludes somefile from the .class graph preventing it from cluttering it up.
Definition at line 58 of file optionreader.h.
|
Reads the file fname and sets all values.
Definition at line 67 of file optionreader.h. |
|
Deletes all strings.
Definition at line 122 of file optionreader.h. |
|
Sets default values in all empty fields.
Definition at line 434 of file optionreader.h. Referenced by OptionReader(). |
|
Displays a short help.
Definition at line 260 of file optionreader.h. Referenced by main(). |
|
Expands in input: $DATE$ to yyyy-mm-dd
Definition at line 492 of file optionreader.h. Referenced by parseLine(). |
|
Gets the arguments that was passed to the OptionReader in the constructor.
Definition at line 146 of file optionreader.h. Referenced by Maker::addHeaderFiles(). |
|
Definition at line 200 of file optionreader.h. Referenced by Maker::generateMakescript(). |
|
Definition at line 216 of file optionreader.h. Referenced by Maker::generateDotOutput(), and main(). |
|
Definition at line 176 of file optionreader.h. Referenced by Maker::generateMakescript(). |
|
Definition at line 184 of file optionreader.h. Referenced by Maker::generateMakescript(). |
|
Definition at line 192 of file optionreader.h. Referenced by Maker::generateMakescript(). |
|
Definition at line 168 of file optionreader.h. Referenced by Maker::Maker(). |
|
Definition at line 208 of file optionreader.h. Referenced by Maker::generateMakescript(), and main(). |
|
Definition at line 224 of file optionreader.h. Referenced by Maker::addHeaderFiles(). |
|
Adds a file to a graph exclude list.
Definition at line 407 of file optionreader.h. Referenced by parseLine(). |
|
Definition at line 242 of file optionreader.h. Referenced by Maker::generateDotOutput(). |
|
Parses the file lilne by line and extracts the variables.
Definition at line 289 of file optionreader.h. Referenced by OptionReader(). |
|
Parses the file lilne by line and extracts the variables.
Definition at line 305 of file optionreader.h. Referenced by OptionReader(), and parse(). |
|
Definition at line 232 of file optionreader.h. Referenced by Maker::generateMakescript(). |
|
Dumps the content of this OptionReader object on stdout.
Definition at line 155 of file optionreader.h. |
|
Definition at line 538 of file optionreader.h. |
|
Definition at line 537 of file optionreader.h. |
|
Definition at line 535 of file optionreader.h. |
|
Definition at line 535 of file optionreader.h. |
|
Definition at line 542 of file optionreader.h. |
|
Definition at line 541 of file optionreader.h. |
|
Definition at line 535 of file optionreader.h. |
|
Definition at line 535 of file optionreader.h. |
|
Definition at line 535 of file optionreader.h. |
|
Definition at line 535 of file optionreader.h. |
|
Definition at line 534 of file optionreader.h. |
|
Definition at line 535 of file optionreader.h. |
|
Definition at line 539 of file optionreader.h. |