Last change
on this file since 106 was 105, checked in by dai_9181, 18 years ago |
名前空間収集モジュール(NamespaceScopesCollectionクラス)を追加。
|
File size:
1.1 KB
|
Line | |
---|
1 | #pragma once
|
---|
2 |
|
---|
3 | #include "Source.h"
|
---|
4 | #include "../TypeDef.h"
|
---|
5 | #include "Namespace.h"
|
---|
6 |
|
---|
7 | class Smoothie{
|
---|
8 | public:
|
---|
9 |
|
---|
10 | class Logger{
|
---|
11 | static string log;
|
---|
12 | public:
|
---|
13 | static void Initialize(){
|
---|
14 | #ifdef _DEBUG
|
---|
15 | log = "";
|
---|
16 |
|
---|
17 | ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::trunc );
|
---|
18 | ofs.close();
|
---|
19 | #endif
|
---|
20 | }
|
---|
21 | static void Put( const string &text ){
|
---|
22 | #ifdef _DEBUG
|
---|
23 | log += text + "\r\n";
|
---|
24 |
|
---|
25 | {
|
---|
26 | ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::app );
|
---|
27 | ofs << text << endl;
|
---|
28 | ofs.close();
|
---|
29 | }
|
---|
30 | #endif
|
---|
31 | }
|
---|
32 | static void PutFile( const string &fileName, const string &buffer ){
|
---|
33 | ofstream ofs( ( (string)BasicSystemDir + "Log\\" + fileName ).c_str() );
|
---|
34 | ofs << buffer << endl;
|
---|
35 | ofs.close();
|
---|
36 | }
|
---|
37 | };
|
---|
38 |
|
---|
39 | class Lexical{
|
---|
40 | public:
|
---|
41 | static BasicSource source;
|
---|
42 | static NamespaceScopes liveingNamespaceScopes;
|
---|
43 | };
|
---|
44 |
|
---|
45 | class Meta{
|
---|
46 | public:
|
---|
47 | // TypeDef
|
---|
48 | static TypeDefCollection typeDefs;
|
---|
49 | static vector<ProcPointer *> procPointers;
|
---|
50 | static NamespaceScopesCollection namespaceScopesCollection;
|
---|
51 | };
|
---|
52 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.