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 | };
|
---|
43 |
|
---|
44 | class Meta{
|
---|
45 | public:
|
---|
46 | // TypeDef
|
---|
47 | static TypeDefCollection typeDefs;
|
---|
48 | static vector<ProcPointer *> procPointers;
|
---|
49 | };
|
---|
50 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.