Last change
on this file since 91 was 91, checked in by dai_9181, 17 years ago |
ログ機構(Smoothie::Logger)を導入。
動的型情報生成において、未使用クラスの登録は行わないようにした。
|
File size:
763 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 |
|
---|
| 16 | ofstream ofs( ( (string)BasicSystemDir + "compile.log" ).c_str(), ios_base::trunc );
|
---|
| 17 | ofs.close();
|
---|
| 18 | #endif
|
---|
| 19 | }
|
---|
| 20 | static void Put( const string &text ){
|
---|
| 21 | #ifdef _DEBUG
|
---|
| 22 | log += text + "\r\n";
|
---|
| 23 |
|
---|
| 24 | {
|
---|
| 25 | ofstream ofs( ( (string)BasicSystemDir + "compile.log" ).c_str(), ios_base::app );
|
---|
| 26 | ofs << text << endl;
|
---|
| 27 | ofs.close();
|
---|
| 28 | }
|
---|
| 29 | #endif
|
---|
| 30 | }
|
---|
| 31 | };
|
---|
| 32 |
|
---|
[87] | 33 | class Lexical{
|
---|
| 34 | public:
|
---|
| 35 | static BasicSource source;
|
---|
| 36 | };
|
---|
| 37 |
|
---|
| 38 | class Meta{
|
---|
| 39 | public:
|
---|
| 40 | // TypeDef
|
---|
| 41 | static TypeDefCollection typeDefs;
|
---|
| 42 | static vector<ProcPointer *> procPointers;
|
---|
| 43 | };
|
---|
[78] | 44 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.