mummy  1.0.3
Classes | Macros | Functions | Variables
MummyCsharpGenerator.cxx File Reference
#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>
Include dependency graph for MummyCsharpGenerator.cxx:

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
 

Macro Definition Documentation

#define RETURN_VALUE   (0x84848484)

Function Documentation

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

Here is the call graph for this function:

bool ExtractCountFromMethodDeclarationLine ( const gxsys_stl::string &  line,
gxsys_stl::string &  count 
)
bool ExtractTypeAndCountFromHintLine ( const gxsys_stl::string &  hint,
gxsys_stl::string &  type,
gxsys_stl::string &  count 
)
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().

Here is the call graph for this function:

gxsys_stl::string GetEventName ( const cable::Method *  m)

Definition at line 2087 of file MummyCsharpGenerator.cxx.

References GetWrappedClassName().

Referenced by MummyCsharpGenerator::EmitCSharpWrapperClass().

Here is the call graph for this function:

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

Here is the call graph for this function:

gxsys_stl::string GetWrappedEnumName ( const cable::Enumeration *  e)
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().

Here is the call graph for this function:

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

Here is the call graph for this function:

Variable Documentation

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> WrappedEnums
gxsys_stl::map<gxsys_stl::string, MethodInstance> WrappedMethods