| [184] | 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 |
|
|---|
| [193] | 51 | virtual bool IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const;
|
|---|
| 52 |
|
|---|
| [184] | 53 | virtual bool SetParamsAndReturnType( const char *sourceOfParams, int nowLine );
|
|---|
| 54 | };
|
|---|
| 55 |
|
|---|
| 56 | class ProcPointerImpl : public ProcPointer
|
|---|
| 57 | {
|
|---|
| 58 | public:
|
|---|
| 59 | ProcPointerImpl( Kind kind ):
|
|---|
| 60 | ProcPointer( kind )
|
|---|
| 61 | {
|
|---|
| 62 | }
|
|---|
| 63 |
|
|---|
| 64 | virtual bool SetParamsAndReturnType( const char *sourceOfParams, int nowLine );
|
|---|
| 65 | };
|
|---|
| 66 |
|
|---|
| 67 | class ProcPointersImpl : public ProcPointers
|
|---|
| 68 | {
|
|---|
| 69 | public:
|
|---|
| 70 | ProcPointersImpl()
|
|---|
| 71 | {
|
|---|
| 72 | }
|
|---|
| 73 | ~ProcPointersImpl()
|
|---|
| 74 | {
|
|---|
| 75 | Clear();
|
|---|
| 76 | }
|
|---|
| 77 |
|
|---|
| 78 | virtual int Add( const string &typeExpression );
|
|---|
| 79 | virtual void Clear();
|
|---|
| 80 | };
|
|---|