00001 00002 #ifndef __BOARDOUT__ 00003 #define __BOARDOUT__ 00004 00005 #include <string> 00006 #include <iostream> 00007 #include <fstream> 00008 00010 00016 class BoardOut 00017 { 00018 public: 00020 00023 enum OutputType{TtyOutput=1, ConsoleOutput=2, AllTypes=3}; 00024 00026 00034 BoardOut(OutputType type = AllTypes); 00035 00037 void clear(int output_types = AllTypes); 00038 00040 friend BoardOut & operator<<(BoardOut & bo, char * c_str); 00041 00043 friend BoardOut & operator<<(BoardOut & bo, std::string str); 00044 00046 friend BoardOut & operator<<(BoardOut & bo, int i); 00047 00048 private: 00049 int _type; 00050 }; 00051 00052 #endif //__FUNCTIONS__
1.6.3