1 | #pragma once
|
---|
2 |
|
---|
3 | #include <jenga/include/smoothie/Procedure.h>
|
---|
4 |
|
---|
5 |
|
---|
6 | class UserProcImpl : public UserProc
|
---|
7 | {
|
---|
8 | public:
|
---|
9 | UserProcImpl( const string &name, Kind kind, bool isMacro, bool isCdecl, bool isExport )
|
---|
10 | : UserProc( name, kind, isMacro, isCdecl, isExport )
|
---|
11 | {
|
---|
12 | }
|
---|
13 | virtual bool SetParamsAndReturnType( const char *sourceOfParams, int nowLine, bool isStatic );
|
---|
14 | };
|
---|
15 |
|
---|
16 | class GlobalProc : public UserProcImpl
|
---|
17 | {
|
---|
18 | const NamespaceScopes namespaceScopes;
|
---|
19 | const NamespaceScopesCollection importedNamespaces;
|
---|
20 | public:
|
---|
21 | // ハッシュリスト用
|
---|
22 | GlobalProc *pNextData;
|
---|
23 |
|
---|
24 | GlobalProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const string &name, Kind kind, bool isMacro, bool isCdecl, bool isExport ):
|
---|
25 | UserProcImpl( name, kind, isMacro, isCdecl, isExport ),
|
---|
26 | namespaceScopes( namespaceScopes ),
|
---|
27 | importedNamespaces( importedNamespaces ),
|
---|
28 | pNextData( NULL )
|
---|
29 | {}
|
---|
30 | ~GlobalProc(){}
|
---|
31 |
|
---|
32 | virtual const NamespaceScopes &GetNamespaceScopes() const;
|
---|
33 | virtual const NamespaceScopesCollection &GetImportedNamespaces() const
|
---|
34 | {
|
---|
35 | return importedNamespaces;
|
---|
36 | }
|
---|
37 |
|
---|
38 | virtual bool IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const;
|
---|
39 | virtual bool IsEqualSymbol( const GlobalProc &globalProc ) const;
|
---|
40 | virtual bool IsEqualSymbol( const string &name ) const;
|
---|
41 | };
|
---|
42 |
|
---|
43 | class DllProcImpl : public DllProc
|
---|
44 | {
|
---|
45 | public:
|
---|
46 | DllProcImpl( const NamespaceScopes &namespaceScopes, const string &name, Kind kind, bool isCdecl, const string &dllFileName, const string &alias )
|
---|
47 | : DllProc( namespaceScopes, name, kind, isCdecl, dllFileName, alias )
|
---|
48 | {
|
---|
49 | }
|
---|
50 |
|
---|
51 | virtual bool SetParamsAndReturnType( const char *sourceOfParams, int nowLine );
|
---|
52 | };
|
---|
53 |
|
---|
54 | class ProcPointerImpl : public ProcPointer
|
---|
55 | {
|
---|
56 | public:
|
---|
57 | ProcPointerImpl( Kind kind ):
|
---|
58 | ProcPointer( kind )
|
---|
59 | {
|
---|
60 | }
|
---|
61 |
|
---|
62 | virtual bool SetParamsAndReturnType( const char *sourceOfParams, int nowLine );
|
---|
63 | };
|
---|
64 |
|
---|
65 | class ProcPointersImpl : public ProcPointers
|
---|
66 | {
|
---|
67 | public:
|
---|
68 | ProcPointersImpl()
|
---|
69 | {
|
---|
70 | }
|
---|
71 | ~ProcPointersImpl()
|
---|
72 | {
|
---|
73 | Clear();
|
---|
74 | }
|
---|
75 |
|
---|
76 | virtual int Add( const string &typeExpression );
|
---|
77 | virtual void Clear();
|
---|
78 | };
|
---|