mummy
1.0.3
|
Base class for all Mummy generators. More...
#include <MummyGenerator.h>
Public Member Functions | |
MummyGenerator () | |
virtual | ~MummyGenerator () |
virtual MummySettings * | GetSettings () |
Get the associated settings object. More... | |
virtual void | SetSettings (MummySettings *settings) |
Set the associated settings object. More... | |
virtual const cable::Class * | GetTargetClass () |
Get the current target class. More... | |
virtual void | SetTargetClass (const cable::Class *c) |
Set the current target class. More... | |
virtual bool | FundamentalTypeIsWrappable (const cable::Type *t) |
virtual bool | TypeIsWrappable (const cable::Type *t) |
virtual bool | FunctionTypeIsWrappable (const cable::FunctionType *ft) |
virtual bool | MethodIsWrappable (const cable::Method *m, const cable::Context::Access &access) |
virtual bool | ClassIsWrappable (const cable::Class *c) |
virtual MummyLineOrientedTextFileReader * | GetHeaderFileReader (const cable::Class *c) |
Get or create a header file reader. Only uses class 'c' on the first call. Subsequent calls retrieve the same reader instance. More... | |
virtual void | EmitMummyVersionComments (gxsys_ios::ostream &os, const char *lineCommentString) |
Private Member Functions | |
MummyGenerator (const MummyGenerator &) | |
MummyGenerator & | operator= (const MummyGenerator &) |
Private Attributes | |
MummySettings * | Settings |
const cable::Class * | TargetClass |
MummyLineOrientedTextFileReader * | HeaderFileReader |
Base class for all Mummy generators.
Definition at line 36 of file MummyGenerator.h.
MummyGenerator::MummyGenerator | ( | ) |
Definition at line 24 of file MummyGenerator.cxx.
References HeaderFileReader, Settings, and TargetClass.
|
virtual |
Definition at line 33 of file MummyGenerator.cxx.
References HeaderFileReader.
|
private |
|
virtual |
Reimplemented in MummyCsharpGenerator.
Definition at line 100 of file MummyGenerator.cxx.
References MummySettings::ClassIsWrappable(), and GetSettings().
Referenced by MummyCsharpGenerator::ClassIsWrappable(), and IncreaseCoverage().
|
virtual |
Definition at line 157 of file MummyGenerator.cxx.
References Emit(), and GetSettings().
Referenced by MummyCsharpUnitTestGenerator::EmitClass(), MummyCsharpExportLayerGenerator::EmitClassForExportLayer(), and MummyCsharpGenerator::EmitCSharpWrapperClass().
|
virtual |
Reimplemented in MummyCsharpGenerator.
Definition at line 86 of file MummyGenerator.cxx.
Referenced by IncreaseCoverage().
|
virtual |
Reimplemented in MummyCsharpGenerator.
Definition at line 72 of file MummyGenerator.cxx.
Referenced by IncreaseCoverage().
|
virtual |
Get or create a header file reader. Only uses class 'c' on the first call. Subsequent calls retrieve the same reader instance.
c | Class object |
Definition at line 113 of file MummyGenerator.cxx.
References ClassWrappingSettings::beginExcludeRegex, ClassWrappingSettings::endExcludeRegex, ClassWrappingSettings::excludeMarkedLines, MummySettings::FindClassWrappingSettings(), MummyLineOrientedTextFileReader::GetFileName(), GetFullyQualifiedNameForCPlusPlus(), GetSettings(), HeaderFileReader, LogError, me_InternalError, me_NoClassWrappingSettings, MummyLineOrientedTextFileReader::SetBeginExcludeRegex(), MummyLineOrientedTextFileReader::SetEndExcludeRegex(), MummyLineOrientedTextFileReader::SetExcludeMarkedLines(), and MummyLineOrientedTextFileReader::SetFileName().
Referenced by MummyCsharpGenerator::EmitCSharpConstructor(), MummyCsharpGenerator::EmitCSharpDispose(), MummyCsharpGenerator::EmitCSharpEnums(), MummyCsharpGenerator::EmitCSharpEvent(), MummyCsharpGenerator::EmitCSharpMethod(), MummyCsharpGenerator::EmitCSharpProperty(), MummyCsharpGenerator::EmitCSharpWrapperClass(), MummyCsharpGenerator::EmitCSharpWrapperClassAsStruct(), MummyCsharpGenerator::GetMethodArgumentArraySize(), MummyCsharpGenerator::MethodIsWrappable(), and MummyCsharpGenerator::SetTargetClass().
|
virtual |
Get the associated settings object.
Definition at line 44 of file MummyGenerator.cxx.
References Settings.
Referenced by MummyCsharpGenerator::BuildPropGetsAndSetsMap(), ClassIsWrappable(), MummyCsharpUnitTestGenerator::EmitClass(), MummyCsharpExportLayerGenerator::EmitClassForExportLayer(), MummyCsharpExportLayerGenerator::EmitClassMethodForExportLayer(), MummyCsharpGenerator::EmitCSharpConstructor(), MummyCsharpGenerator::EmitCSharpEvent(), MummyCsharpGenerator::EmitCSharpMethodBody(), MummyCsharpGenerator::EmitCSharpMethodDeclaration(), MummyCsharpGenerator::EmitCSharpWrapperClass(), MummyCsharpGenerator::EmitCSharpWrapperClassAsStruct(), EmitMummyVersionComments(), MummyCsharpExportLayerGenerator::EmitSpecialHandlingForObjectPointerReturns(), MummyCsharpGenerator::GatherWrappedMethods(), MummyCsharpGenerator::GenerateWrappers(), GetHeaderFileReader(), MummyCsharpGenerator::GetMethodArgumentArraySize(), MummyCsharpGenerator::IsDisposalMethod(), MummyCsharpGenerator::IsFactoryMethod(), MummyCsharpGenerator::MethodIsWrappable(), MummyCsharpGenerator::MethodReturnValueIsCounted(), and MummyCsharpGenerator::SetTargetClass().
|
virtual |
Get the current target class.
Definition at line 58 of file MummyGenerator.cxx.
References TargetClass.
Referenced by MummyCsharpGenerator::GatherWrappedMethods(), MummyCsharpExportLayerGenerator::GenerateWrappers(), MummyCsharpUnitTestGenerator::GenerateWrappers(), MummyCsharpShadowLayerGenerator::GenerateWrappers(), MummyCsharpGenerator::GenerateWrappers(), MummyCsharpExportLayerGenerator::GetArgTypeAndNameString(), MummyCsharpGenerator::GetCSharpTypeString(), MummyCsharpGenerator::GetPInvokeTypeString(), MummyCsharpGenerator::MethodIsWrappable(), and MummyCsharpGenerator::TypeIsWrappable().
|
virtual |
Reimplemented in MummyCsharpGenerator.
Definition at line 93 of file MummyGenerator.cxx.
Referenced by IncreaseCoverage().
|
private |
|
virtual |
Set the associated settings object.
settings | MummySettings object |
Definition at line 51 of file MummyGenerator.cxx.
References Settings.
Referenced by MummyApplication::ProcessClass().
|
virtual |
Set the current target class.
c | Class object |
Reimplemented in MummyCsharpGenerator.
Definition at line 65 of file MummyGenerator.cxx.
References TargetClass.
Referenced by MummyApplication::ProcessClass(), and MummyCsharpGenerator::SetTargetClass().
|
virtual |
Reimplemented in MummyCsharpGenerator.
Definition at line 79 of file MummyGenerator.cxx.
Referenced by IncreaseCoverage().
|
private |
Definition at line 90 of file MummyGenerator.h.
Referenced by GetHeaderFileReader(), MummyGenerator(), and ~MummyGenerator().
|
private |
Definition at line 88 of file MummyGenerator.h.
Referenced by GetSettings(), MummyGenerator(), and SetSettings().
|
private |
Definition at line 89 of file MummyGenerator.h.
Referenced by GetTargetClass(), MummyGenerator(), and SetTargetClass().