-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMummyCsharpExportLayerGenerator.h
47 lines (36 loc) · 2.28 KB
/
MummyCsharpExportLayerGenerator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//----------------------------------------------------------------------------
// MummyCsharpExportLayerGenerator.h
//
// Author(s) : David Cole
//
// Copyright (C) 2006-2007 Kitware, Inc.
//----------------------------------------------------------------------------
#include "MummyGenerator.h" // parent class
#include "gxsys/stl/string"
class MummyCsharpGenerator;
class MummyCsharpExportLayerGenerator : public MummyGenerator
{
public:
MummyCsharpExportLayerGenerator();
virtual ~MummyCsharpExportLayerGenerator();
virtual bool GenerateWrappers();
virtual MummyCsharpGenerator* GetCsharpGenerator();
virtual void SetCsharpGenerator(MummyCsharpGenerator* generator);
//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 const char *GetArgName(cable::FunctionType *ftype, unsigned int i);
virtual gxsys_stl::string GetArgTypeAndNameString(cable::Type *argType, const char *name, bool stripConst);
//virtual gxsys_stl::string GetArgTypeAndNameString(cable::FunctionType *ft, const unsigned int i);
virtual gxsys_stl::string GetExportLayerFunctionName(const cable::Class *c, const cable::Method *m, const gxsys_stl::string& mname);
virtual void EmitSpecialHandlingForObjectPointerReturns(gxsys_ios::ostream &os, const gxsys_stl::string& cname, const cable::Method *m, const gxsys_stl::string& mname, const unsigned int indent);
virtual void EmitClassMethodDeclarationForExportLayer(gxsys_ios::ostream &os, const cable::Class *c, const cable::Method *m, const gxsys_stl::string& mname, bool emitExceptionParams);
virtual void EmitClassMethodForExportLayer(gxsys_ios::ostream &os, const cable::Class *c, const cable::Method *m, const gxsys_stl::string& mname);
virtual void EmitClassForExportLayer(gxsys_ios::ostream &os, const cable::Class *c);
private:
MummyCsharpGenerator* CsharpGenerator;
MummyCsharpExportLayerGenerator(const MummyCsharpExportLayerGenerator&); //Not implemented
MummyCsharpExportLayerGenerator& operator=(const MummyCsharpExportLayerGenerator&); //Not implemented
};