mummy  1.0.3
Public Member Functions | Private Attributes | List of all members
MummyApplication Class Reference

Mummy's main entry point object. More...

#include <MummyApplication.h>

Collaboration diagram for MummyApplication:
[legend]

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. More...
 
virtual MummySettingsGetSettings ()
 Get the associated settings object. More...
 
virtual void SetSettings (MummySettings *settings)
 Set the associated settings object. More...
 
virtual cable::SourceRepresentation * BuildSourceRepresentation ()
 Builds an object model "source representation" from the input file produced by gccxml. More...
 
virtual int ProcessSource (cable::SourceRepresentation *sr)
 Processes the source representation to initialize some settings and determine what class to wrap. More...
 
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. More...
 

Private Attributes

MummySettingsSettings
 

Detailed Description

Mummy's main entry point object.

Definition at line 23 of file MummyApplication.h.

Constructor & Destructor Documentation

MummyApplication::MummyApplication ( )

Definition at line 43 of file MummyApplication.cxx.

References Settings.

MummyApplication::~MummyApplication ( )
virtual

Definition at line 50 of file MummyApplication.cxx.

Member Function Documentation

cable::SourceRepresentation * MummyApplication::BuildSourceRepresentation ( )
virtual

Builds an object model "source representation" from the input file produced by gccxml.

Returns
The source representation.

Definition at line 93 of file MummyApplication.cxx.

References MummySettings::GetGccxmlFileName(), GetSettings(), LogError, LogVerboseInfo, me_CouldNotOpen, me_CouldNotParse, and me_InvalidArg.

Referenced by Main().

Here is the call graph for this function:

MummySettings * MummyApplication::GetSettings ( )
virtual

Get the associated settings object.

Returns
Associated MummySettings 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.

Parameters
argcThe number of command line arguments in argv.
argvArray of command line arguments, indexed from 0 to argc-1.
Returns
Exit status. 0 means success.

Definition at line 56 of file MummyApplication.cxx.

References BuildSourceRepresentation(), GetFirstErrorValue(), MummySettings::Initialize(), ProcessSource(), SetSettings(), and MummySettings::ShouldRun().

Referenced by main().

Here is the call graph for this function:

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.

Parameters
srA valid "source representation" object model.
cThe class to wrap.
Returns
Return status. 0 means success.

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().

Here is the call graph for this function:

int MummyApplication::ProcessSource ( cable::SourceRepresentation *  sr)
virtual

Processes the source representation to initialize some settings and determine what class to wrap.

Parameters
srA valid "source representation" object model.
Returns
Return status. 0 means success.

Definition at line 130 of file MummyApplication.cxx.

References GetSettings(), LogError, me_InvalidArg, me_UnexpectedGccxmlInput, ProcessClass(), and MummySettings::ProcessSource().

Referenced by Main().

Here is the call graph for this function:

void MummyApplication::SetSettings ( MummySettings settings)
virtual

Set the associated settings object.

Parameters
settingsMummySettings object

Definition at line 86 of file MummyApplication.cxx.

References Settings.

Referenced by Main().

Member Data Documentation

MummySettings* MummyApplication::Settings
private

Definition at line 89 of file MummyApplication.h.

Referenced by GetSettings(), MummyApplication(), and SetSettings().


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