00001 #ifndef GLOBALS_H
00002 #define GLOBALS_H
00003
00004 #include "fstream"
00005 #include "string"
00006 #include "LogStream.h"
00007
00008 class Globals
00009 {
00010 public:
00011 typedef enum {
00012 ALLTOGETHER = 0,
00013 PERCLASS = 1,
00014 PERNAMESPACE = 2,
00015 X_THE_NO_OF_METHODS= 3
00016 } OUTPUTMETHOD_ENUM;
00017 public:
00018 Globals()
00019 : err_file_name("\\ParadigmBonExt.log")
00020 , header_backup_name("")
00021 , header_file_name("\\ParadigmBonExtension.h")
00022 , source_file_name("\\ParadigmBonExtension")
00023 , m_visitorHeaderFileName("\\ParadigmVisitor.h")
00024 , m_visitorSourceFileName("\\ParadigmVisitor")
00025 , output_directory_name()
00026 , m_namespace_name()
00027 , m_outputMethod( ALLTOGETHER)
00028 , silent_mode( false)
00029 { }
00030
00031 LogStream err;
00032 std::ofstream dmp;
00033 std::ofstream dmp_s;
00034 std::ofstream dmp_h;
00035
00036 std::string err_file_name;
00037 std::string header_backup_name;
00038 std::string header_file_name;
00039 std::string source_file_name;
00040 std::string m_visitorHeaderFileName;
00041 std::string m_visitorSourceFileName;
00042 std::string output_directory_name;
00043 std::string m_namespace_name;
00044 OUTPUTMETHOD_ENUM m_outputMethod;
00045 bool silent_mode;
00046 };
00047
00048 #endif // GLOBALS_H