Last change
on this file since 99 was 95, checked in by dai_9181, 18 years ago |
RegisterGlobalRootsの自動生成に対応
|
File size:
971 bytes
|
Rev | Line | |
---|
[78] | 1 | #pragma once
|
---|
| 2 |
|
---|
[87] | 3 | #include "Source.h"
|
---|
[78] | 4 | #include "../TypeDef.h"
|
---|
| 5 |
|
---|
[88] | 6 | class Smoothie{
|
---|
[78] | 7 | public:
|
---|
[87] | 8 |
|
---|
[91] | 9 | class Logger{
|
---|
| 10 | static string log;
|
---|
| 11 | public:
|
---|
| 12 | static void Initialize(){
|
---|
| 13 | #ifdef _DEBUG
|
---|
| 14 | log = "";
|
---|
| 15 |
|
---|
[95] | 16 | ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::trunc );
|
---|
[91] | 17 | ofs.close();
|
---|
| 18 | #endif
|
---|
| 19 | }
|
---|
| 20 | static void Put( const string &text ){
|
---|
| 21 | #ifdef _DEBUG
|
---|
| 22 | log += text + "\r\n";
|
---|
| 23 |
|
---|
| 24 | {
|
---|
[95] | 25 | ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::app );
|
---|
[91] | 26 | ofs << text << endl;
|
---|
| 27 | ofs.close();
|
---|
| 28 | }
|
---|
| 29 | #endif
|
---|
| 30 | }
|
---|
[92] | 31 | static void PutFile( const string &fileName, const string &buffer ){
|
---|
[95] | 32 | ofstream ofs( ( (string)BasicSystemDir + "Log\\" + fileName ).c_str() );
|
---|
[92] | 33 | ofs << buffer << endl;
|
---|
| 34 | ofs.close();
|
---|
| 35 | }
|
---|
[91] | 36 | };
|
---|
| 37 |
|
---|
[87] | 38 | class Lexical{
|
---|
| 39 | public:
|
---|
| 40 | static BasicSource source;
|
---|
| 41 | };
|
---|
| 42 |
|
---|
| 43 | class Meta{
|
---|
| 44 | public:
|
---|
| 45 | // TypeDef
|
---|
| 46 | static TypeDefCollection typeDefs;
|
---|
| 47 | static vector<ProcPointer *> procPointers;
|
---|
| 48 | };
|
---|
[78] | 49 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.