mummy
1.0.3
|
#include "MummyCsharpGenerator.h"
#include "MummyLineOrientedTextFileReader.h"
#include "MummyLog.h"
#include "MummySettings.h"
#include "cableArrayType.h"
#include "cableClass.h"
#include "cableClassType.h"
#include "cableConstructor.h"
#include "cableEnumeration.h"
#include "cableEnumerationType.h"
#include "cableField.h"
#include "cableFunctionType.h"
#include "cableFundamentalType.h"
#include "cableMethod.h"
#include "cablePointerType.h"
#include "cableReferenceType.h"
#include "cableType.h"
#include "cableTypedef.h"
#include "cxxFundamentalType.h"
#include "gxsys/RegularExpression.hxx"
#include "gxsys/SystemTools.hxx"
#include "gxsys/ios/sstream"
#include "gxsys/stl/algorithm"
#include "gxsys/stl/map"
#include "gxsys/stl/set"
#include "gxsys/stl/string"
#include "gxsys/stl/vector"
#include <string.h>
#include <stdio.h>
Go to the source code of this file.
Classes | |
class | MethodInstance |
struct | SortByFieldOffset |
struct | SortByMethodDeclarationLineNumber |
Macros | |
#define | RETURN_VALUE (0x84848484) |
Functions | |
gxsys_stl::string | GetWrappedEnumName (const cable::Enumeration *e) |
bool | ExtractTypeAndCountFromHintLine (const gxsys_stl::string &hint, gxsys_stl::string &type, gxsys_stl::string &count) |
bool | ReturnTypeMatchesHintType (cable::Type *t, const gxsys_stl::string &type) |
bool | ExtractCountFromMethodDeclarationLine (const gxsys_stl::string &line, gxsys_stl::string &count) |
bool | IsCxxMainStyleParamPair (const cable::FunctionType *ft, unsigned int i) |
gxsys_stl::string | GetEnumerationTypeString (const cable::Type *t) |
gxsys_stl::string | GetQualifiedEventName (const cable::Method *m) |
gxsys_stl::string | GetEventName (const cable::Method *m) |
void | EmitThrowClonedException (gxsys_ios::ostream &os, unsigned int indent) |
Variables | |
gxsys_stl::map < gxsys_stl::string, MethodInstance > | OtherMethods |
gxsys_stl::map < gxsys_stl::string, MethodInstance > | StaticMethods |
gxsys_stl::map < gxsys_stl::string, MethodInstance > | VirtualMethods |
gxsys_stl::map < gxsys_stl::string, MethodInstance > | WrappedMethods |
gxsys_stl::map < gxsys_stl::string, MethodInstance > | WrappedEnums |
#define RETURN_VALUE (0x84848484) |
void EmitThrowClonedException | ( | gxsys_ios::ostream & | os, |
unsigned int | indent | ||
) |
Definition at line 2649 of file MummyCsharpGenerator.cxx.
References Emit(), and EmitIndent().
Referenced by MummyCsharpGenerator::EmitCSharpConstructor(), MummyCsharpGenerator::EmitCSharpDispose(), and MummyCsharpGenerator::EmitCSharpMethodBody().
bool ExtractCountFromMethodDeclarationLine | ( | const gxsys_stl::string & | line, |
gxsys_stl::string & | count | ||
) |
Definition at line 484 of file MummyCsharpGenerator.cxx.
Referenced by MummyCsharpGenerator::GetMethodArgumentArraySize().
bool ExtractTypeAndCountFromHintLine | ( | const gxsys_stl::string & | hint, |
gxsys_stl::string & | type, | ||
gxsys_stl::string & | count | ||
) |
Definition at line 428 of file MummyCsharpGenerator.cxx.
Referenced by MummyCsharpGenerator::GetMethodArgumentArraySize().
gxsys_stl::string GetEnumerationTypeString | ( | const cable::Type * | t | ) |
Definition at line 1102 of file MummyCsharpGenerator.cxx.
References GetFullyQualifiedNameForCSharp().
Referenced by MummyCsharpGenerator::GetCSharpTypeString(), and MummyCsharpGenerator::GetPInvokeTypeString().
gxsys_stl::string GetEventName | ( | const cable::Method * | m | ) |
Definition at line 2087 of file MummyCsharpGenerator.cxx.
References GetWrappedClassName().
Referenced by MummyCsharpGenerator::EmitCSharpWrapperClass().
gxsys_stl::string GetQualifiedEventName | ( | const cable::Method * | m | ) |
Definition at line 2062 of file MummyCsharpGenerator.cxx.
References GetWrappedClassName(), LogError, and me_InvalidArg.
Referenced by MummyCsharpGenerator::EmitCSharpWrapperClass().
gxsys_stl::string GetWrappedEnumName | ( | const cable::Enumeration * | e | ) |
Definition at line 400 of file MummyCsharpGenerator.cxx.
References LogFileLineWarningMsg, and mw_UnnamedEnum.
Referenced by MummyCsharpGenerator::AddLookupEntries(), and MummyCsharpGenerator::EmitCSharpEnums().
bool IsCxxMainStyleParamPair | ( | const cable::FunctionType * | ft, |
unsigned int | i | ||
) |
Definition at line 866 of file MummyCsharpGenerator.cxx.
References IsCharPointerPointer().
Referenced by MummyCsharpGenerator::EmitCSharpMethodBody(), MummyCsharpGenerator::EmitCSharpMethodDeclaration(), and MummyCsharpGenerator::FunctionTypeIsWrappable().
bool ReturnTypeMatchesHintType | ( | cable::Type * | t, |
const gxsys_stl::string & | type | ||
) |
Definition at line 451 of file MummyCsharpGenerator.cxx.
References IsFundamentalPointer(), LogWarning, and mw_UnknownHintDataType.
Referenced by MummyCsharpGenerator::GetMethodArgumentArraySize().
gxsys_stl::map<gxsys_stl::string, MethodInstance> OtherMethods |
Definition at line 1468 of file MummyCsharpGenerator.cxx.
Referenced by MummyCsharpGenerator::AddLookupEntries(), MummyCsharpGenerator::ClearLookupEntries(), MummyCsharpGenerator::DumpLookupEntries(), and MummyCsharpGenerator::OtherMethodRedefined().
gxsys_stl::map<gxsys_stl::string, MethodInstance> StaticMethods |
Definition at line 1469 of file MummyCsharpGenerator.cxx.
Referenced by MummyCsharpGenerator::AddLookupEntries(), MummyCsharpGenerator::ClearLookupEntries(), MummyCsharpGenerator::DumpLookupEntries(), and MummyCsharpGenerator::StaticMethodRedefined().
gxsys_stl::map<gxsys_stl::string, MethodInstance> VirtualMethods |
Definition at line 1470 of file MummyCsharpGenerator.cxx.
Referenced by MummyCsharpGenerator::AddLookupEntries(), MummyCsharpGenerator::ClearLookupEntries(), MummyCsharpGenerator::DumpLookupEntries(), and MummyCsharpGenerator::VirtualMethodOverridden().
gxsys_stl::map<gxsys_stl::string, MethodInstance> WrappedEnums |
Definition at line 1472 of file MummyCsharpGenerator.cxx.
Referenced by MummyCsharpGenerator::AddLookupEntries(), MummyCsharpGenerator::ClearLookupEntries(), MummyCsharpGenerator::DumpLookupEntries(), and MummyCsharpGenerator::WrappedEnumExists().
gxsys_stl::map<gxsys_stl::string, MethodInstance> WrappedMethods |
Definition at line 1471 of file MummyCsharpGenerator.cxx.
Referenced by MummyCsharpGenerator::ClearLookupEntries(), MummyCsharpGenerator::DumpLookupEntries(), MummyCsharpGenerator::GatherWrappedMethods(), and MummyCsharpGenerator::WrappedMethodExists().