StreamOutput Class Reference

#include <StreamOutput.h>

List of all members.

Public Member Functions

 StreamOutput ()
 ~StreamOutput ()
void setOutputFile (std::string s)
StreamOutputoperator<< (const char *s)
StreamOutputoperator<< (char *s)
StreamOutputoperator<< (char s)
StreamOutputoperator<< (int s)
StreamOutputoperator<< (unsigned long s)
StreamOutputoperator<< (double s)
StreamOutputoperator<< (double *s)
StreamOutputoperator<< (float s)
StreamOutputoperator<< (float *s)
StreamOutputoperator<< (time_t s)
StreamOutputoperator<< (unsigned int s)
StreamOutputoperator<< (std::string s)
StreamOutputoperator<< (std::ostream &(*s)(std::ostream &))
void disableAllOutputs ()
void disableFileOutputs ()
void enableAllOutputs ()

Public Attributes

std::string m_name
bool m_enableOutput
bool m_enableFileOutput


Detailed Description

This class is the replacement for std::cout With option to write to std out and write to a file This works with operator overloading

Definition at line 17 of file StreamOutput.h.


Constructor & Destructor Documentation

StreamOutput::StreamOutput (  ) 

Constructor

Definition at line 15 of file StreamOutput.cpp.

00016 {
00017     m_name = "";
00018     m_enableOutput = 1;
00019     m_enableFileOutput = 1;
00020 }

StreamOutput::~StreamOutput (  ) 

Destructor

Definition at line 25 of file StreamOutput.cpp.

00026 {
00027 
00028 }


Member Function Documentation

void StreamOutput::disableAllOutputs (  ) 

Global disable output

Definition at line 249 of file StreamOutput.cpp.

00250 {
00251     m_enableOutput = 0;
00252     m_enableFileOutput = 0;
00253 }

void StreamOutput::disableFileOutputs (  ) 

Global diaseble write to file output

Definition at line 258 of file StreamOutput.cpp.

00259 {
00260     cout<<"Disable file outputs"<<endl;
00261     m_enableFileOutput = 0;
00262 }

void StreamOutput::enableAllOutputs (  ) 

Global enable output

Definition at line 267 of file StreamOutput.cpp.

00268 {
00269     m_enableOutput = 1;
00270     m_enableFileOutput = 1;
00271 }


The documentation for this class was generated from the following files:

Generated on Tue Jan 26 09:21:17 2010 for ELF by  doxygen 1.5.8