|
mummy
1.0.2
|
Mummy's main entry point object. More...
#include <MummyApplication.h>
Public Member Functions | |
| MummyApplication () | |
| virtual | ~MummyApplication () |
| virtual int | Main (int argc, char *argv[]) |
| "Command line style" entry point. Run "mummy --help" from a command prompt to see command line options. The console application simply instantiates a MummyApplication object and delegates to this method. | |
| virtual MummySettings * | GetSettings () |
| Get the associated settings object. | |
| virtual void | SetSettings (MummySettings *settings) |
| Set the associated settings object. | |
| virtual cable::SourceRepresentation * | BuildSourceRepresentation () |
| Builds an object model "source representation" from the input file produced by gccxml. | |
| virtual int | ProcessSource (cable::SourceRepresentation *sr) |
| Processes the source representation to initialize some settings and determine what class to wrap. | |
| virtual int | ProcessClass (cable::SourceRepresentation *sr, const cable::Class *c) |
| Processes the class to wrap and generates appropriate output files based on the generators used. | |
Private Attributes | |
| MummySettings * | Settings |
Mummy's main entry point object.
Definition at line 23 of file MummyApplication.h.
Definition at line 43 of file MummyApplication.cxx.
References Settings.
| MummyApplication::~MummyApplication | ( | ) | [virtual] |
Definition at line 50 of file MummyApplication.cxx.
| cable::SourceRepresentation * MummyApplication::BuildSourceRepresentation | ( | ) | [virtual] |
Builds an object model "source representation" from the input file produced by gccxml.
Definition at line 93 of file MummyApplication.cxx.
References MummySettings::GetGccxmlFileName(), GetSettings(), LogError, LogVerboseInfo, me_CouldNotOpen, me_CouldNotParse, and me_InvalidArg.
Referenced by Main().
| MummySettings * MummyApplication::GetSettings | ( | ) | [virtual] |
Get the associated settings object.
Definition at line 79 of file MummyApplication.cxx.
References Settings.
Referenced by BuildSourceRepresentation(), ProcessClass(), and ProcessSource().
| int MummyApplication::Main | ( | int | argc, |
| char * | argv[] | ||
| ) | [virtual] |
"Command line style" entry point. Run "mummy --help" from a command prompt to see command line options. The console application simply instantiates a MummyApplication object and delegates to this method.
| argc | The number of command line arguments in argv. |
| argv | Array of command line arguments, indexed from 0 to argc-1. |
Definition at line 56 of file MummyApplication.cxx.
References BuildSourceRepresentation(), GetFirstErrorValue(), MummySettings::Initialize(), ProcessSource(), SetSettings(), and MummySettings::ShouldRun().
Referenced by main().
| int MummyApplication::ProcessClass | ( | cable::SourceRepresentation * | sr, |
| const cable::Class * | c | ||
| ) | [virtual] |
Processes the class to wrap and generates appropriate output files based on the generators used.
| sr | A valid "source representation" object model. |
| c | The class to wrap. |
Definition at line 220 of file MummyApplication.cxx.
References MummySettings::ClassIsWrappable(), GetSettings(), LogError, LogVerboseInfo, me_CouldNotValidate, me_CouldNotWrap, MummyCsharpExportLayerGenerator::SetCsharpGenerator(), MummyCsharpUnitTestGenerator::SetCsharpGenerator(), MummyCsharpShadowLayerGenerator::SetCsharpGenerator(), MummyGenerator::SetSettings(), MummyCsharpGenerator::SetTargetClass(), MummyGenerator::SetTargetClass(), ValidateBaseClasses(), and WriteToFile().
Referenced by ProcessSource().
| int MummyApplication::ProcessSource | ( | cable::SourceRepresentation * | sr | ) | [virtual] |
Processes the source representation to initialize some settings and determine what class to wrap.
| sr | A valid "source representation" object model. |
Definition at line 130 of file MummyApplication.cxx.
References GetSettings(), LogError, me_InvalidArg, me_UnexpectedGccxmlInput, ProcessClass(), and MummySettings::ProcessSource().
Referenced by Main().
| void MummyApplication::SetSettings | ( | MummySettings * | settings | ) | [virtual] |
Set the associated settings object.
| settings | MummySettings object |
Definition at line 86 of file MummyApplication.cxx.
References Settings.
Referenced by Main().
MummySettings* MummyApplication::Settings [private] |
Definition at line 89 of file MummyApplication.h.
Referenced by GetSettings(), MummyApplication(), and SetSettings().
1.7.6.1