00001 #ifndef _STREAMOUTPUT_H__ 00002 #define _STREAMOUTPUT_H__ 00003 00004 #include <fstream> 00005 #include <string> 00006 #include <ctime> 00007 00008 #include "Framework.h" 00009 00017 class StreamOutput 00018 { 00019 public: 00020 StreamOutput (); 00021 ~StreamOutput (); 00022 void setOutputFile ( std::string s ); 00023 StreamOutput& operator << ( const char* s ); 00024 StreamOutput& operator << ( char* s ); 00025 StreamOutput& operator << ( char s ); 00026 StreamOutput& operator << ( int s ); 00027 StreamOutput& operator << ( unsigned long s ); 00028 StreamOutput& operator << ( double s ); 00029 StreamOutput& operator << ( double* s ); 00030 StreamOutput& operator << ( float s ); 00031 StreamOutput& operator << ( float* s ); 00032 StreamOutput& operator << ( time_t s ); 00033 StreamOutput& operator << ( unsigned int s ); 00034 StreamOutput& operator << ( std::string s ); 00035 StreamOutput& operator << ( std::ostream& ( *s ) ( std::ostream& ) ); 00036 void disableAllOutputs(); 00037 void disableFileOutputs(); 00038 void enableAllOutputs(); 00039 00040 std::string m_name; 00041 bool m_enableOutput; 00042 bool m_enableFileOutput; 00043 }; 00044 00045 #endif