#pragma once #include "Source.h" #include "../TypeDef.h" class Smoothie{ public: class Logger{ static string log; public: static void Initialize(){ #ifdef _DEBUG log = ""; ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::trunc ); ofs.close(); #endif } static void Put( const string &text ){ #ifdef _DEBUG log += text + "\r\n"; { ofstream ofs( ( (string)BasicSystemDir + "Log\\compile.log" ).c_str(), ios_base::app ); ofs << text << endl; ofs.close(); } #endif } static void PutFile( const string &fileName, const string &buffer ){ ofstream ofs( ( (string)BasicSystemDir + "Log\\" + fileName ).c_str() ); ofs << buffer << endl; ofs.close(); } }; class Lexical{ public: static BasicSource source; }; class Meta{ public: // TypeDef static TypeDefCollection typeDefs; static vector procPointers; }; };