source: dev/BasicCompiler_Common/include/Smoothie.h@ 105

Last change on this file since 105 was 105, checked in by dai_9181, 17 years ago

名前空間収集モジュール(NamespaceScopesCollectionクラス)を追加。

File size: 1.1 KB
RevLine 
[78]1#pragma once
2
[87]3#include "Source.h"
[78]4#include "../TypeDef.h"
[100]5#include "Namespace.h"
[78]6
[88]7class Smoothie{
[78]8public:
[87]9
[91]10 class Logger{
11 static string log;
12 public:
13 static void Initialize(){
14#ifdef _DEBUG
15 log = "";
16
[95]17 ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::trunc );
[91]18 ofs.close();
19#endif
20 }
21 static void Put( const string &text ){
22#ifdef _DEBUG
23 log += text + "\r\n";
24
25 {
[95]26 ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::app );
[91]27 ofs << text << endl;
28 ofs.close();
29 }
30#endif
31 }
[92]32 static void PutFile( const string &fileName, const string &buffer ){
[95]33 ofstream ofs( ( (string)BasicSystemDir + "Log\\" + fileName ).c_str() );
[92]34 ofs << buffer << endl;
35 ofs.close();
36 }
[91]37 };
38
[87]39 class Lexical{
40 public:
41 static BasicSource source;
[101]42 static NamespaceScopes liveingNamespaceScopes;
[87]43 };
44
45 class Meta{
46 public:
47 // TypeDef
48 static TypeDefCollection typeDefs;
49 static vector<ProcPointer *> procPointers;
[105]50 static NamespaceScopesCollection namespaceScopesCollection;
[87]51 };
[78]52};
Note: See TracBrowser for help on using the repository browser.