source: dev/trunk/abdev/BasicCompiler_Common/include/Compiler.h@ 224

Last change on this file since 224 was 224, checked in by dai_9181, 17 years ago
File size: 726 bytes
RevLine 
[184]1#pragma once
2
3#include <CodeGenerator.h>
[199]4#include <NamespaceSupporter.h>
[193]5#include <MetaImpl.h>
[224]6#include <DataTable.h>
[193]7
[184]8class Compiler
9{
[199]10 // 名前空間サポート
11 NamespaceSupporter namespaceSupporter;
12
13 // メタ情報
[193]14 MetaImpl metaImpl;
15
[224]16 // データテーブル
17 DataTable dataTable;
18
[184]19public:
[193]20
[199]21 NamespaceSupporter &GetNamespaceSupporter()
22 {
23 return namespaceSupporter;
24 }
25
[193]26 MetaImpl &GetMeta()
27 {
28 return metaImpl;
29 }
30
[224]31 DataTable &GetDataTable()
32 {
33 return dataTable;
34 }
35
[193]36 static bool StringToType( const std::string &typeName, Type &type );
37 static const std::string TypeToString( const Type &type );
[206]38
39 // コンパイル中のクラス
40 const CClass *pCompilingClass;
[184]41};
[193]42
[195]43extern Compiler compiler;
Note: See TracBrowser for help on using the repository browser.