generator  1.2
Enumerations | Functions
ProjectGenerator.cpp File Reference

Entry point of the program, it parses the command line arguments, generates instances, and writes them to the xml file. More...

#include <algorithm>
#include <iostream>
#include <string>
#include <stdexcept>
#include <sstream>
#include "Settings.h"
#include "Generator.h"
#include "GeneratorConfig.h"
#include "ProjectParameters.h"
#include "ProjectParametersParser.h"
+ Include dependency graph for ProjectGenerator.cpp:

Go to the source code of this file.

Enumerations

enum  ProgramReturnedCodes {
  EXIT_WITH_SUCCESS = 0, INVALID_PARAMETER = 1, INSUFFICIENT_PARAMETERS = 2, INPUT_OUTPUT_ERROR = 4,
  RUNTIME_ERROR = 8, UNKNOWN_ERROR = 16
}
 Return codes of the program.
 

Functions

void printProgramHeader ()
 It prints the program header to the standard output.
 
void printProgramHelp (const string &progName)
 It prints the program header and help. More...
 
int main (int argc, char *argv[])
 It handles the program command line arguments, reads desired properties of instances, generates and writes them to the xml file. More...
 

Detailed Description

Entry point of the program, it parses the command line arguments, generates instances, and writes them to the xml file.

Author
Libor Bukata

Definition in file ProjectGenerator.cpp.

Function Documentation

int main ( int  argc,
char *  argv[] 
)

It handles the program command line arguments, reads desired properties of instances, generates and writes them to the xml file.

Parameters
argc,argvArguments given to the program.
Returns
A return code corresponding to the exit status, see ProgramReturnedCodes enum.

Definition at line 93 of file ProjectGenerator.cpp.

void printProgramHelp ( const string &  progName)

It prints the program header and help.

Parameters
progNameThe name of this executable.

Definition at line 68 of file ProjectGenerator.cpp.