CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Private Attributes
CSCDCCExaminer::OStream Class Reference
Inheritance diagram for CSCDCCExaminer::OStream:

Classes

class  buffer
 

Public Member Functions

void hide (void)
 
template<class T >
std::ostream & operator<< (const T &val)
 
 OStream (void)
 
 OStream (std::ostream &str)
 
void redirect (std::ostream &str)
 
void show (void)
 
void sign (std::string nm)
 
void sign (const char *nm)
 

Private Attributes

buffer buff
 
std::string name
 
std::streambuf * null
 
std::streambuf * stream
 

Detailed Description

Definition at line 33 of file CSCDCCExaminer.h.

Constructor & Destructor Documentation

CSCDCCExaminer::OStream::OStream ( void  )
inline

Definition at line 56 of file CSCDCCExaminer.h.

56 :std::ostream(std::cout.rdbuf()),buff(),stream(std::cout.rdbuf()),null(&buff),name(""){}
std::streambuf * stream
tuple cout
Definition: gather_cfg.py:121
std::streambuf * null
CSCDCCExaminer::OStream::OStream ( std::ostream &  str)
inline

Definition at line 57 of file CSCDCCExaminer.h.

57 :std::ostream(str.rdbuf()),buff(),stream(str.rdbuf()),null(&buff),name(""){}
std::streambuf * stream
std::streambuf * null

Member Function Documentation

void CSCDCCExaminer::OStream::hide ( void  )
inline

Definition at line 43 of file CSCDCCExaminer.h.

References null.

Referenced by Vispa.Gui.MenuWidget.MenuWidget::leaveEvent(), and Vispa.Gui.MenuWidget.MenuWidget::mousePressEvent().

43 { rdbuf(null); }
std::streambuf * null
template<class T >
std::ostream& CSCDCCExaminer::OStream::operator<< ( const T val)
inline

Definition at line 52 of file CSCDCCExaminer.h.

References name.

52  {
53  return (*(std::ostream*)this)<<name<<val;
54  }
void CSCDCCExaminer::OStream::redirect ( std::ostream &  str)
inline

Definition at line 47 of file CSCDCCExaminer.h.

References null, and stream.

Referenced by CSCDCCExaminer::CSCDCCExaminer(), CSCOfflineMonitor::doBXMonitor(), CSCValidation::doTimeMonitoring(), and CSCDCCUnpacker::produce().

47  {
48  stream = str.rdbuf(); tie(&str);
49  if( rdbuf() != null ) rdbuf(stream);
50  }
std::streambuf * stream
std::streambuf * null
void CSCDCCExaminer::OStream::show ( void  )
inline
void CSCDCCExaminer::OStream::sign ( std::string  nm)
inline

Definition at line 44 of file CSCDCCExaminer.h.

References name.

44 { name=nm; }
void CSCDCCExaminer::OStream::sign ( const char *  nm)
inline

Definition at line 45 of file CSCDCCExaminer.h.

References name.

45 { name=nm; }

Member Data Documentation

buffer CSCDCCExaminer::OStream::buff
private

Definition at line 36 of file CSCDCCExaminer.h.

std::string CSCDCCExaminer::OStream::name
private
std::streambuf* CSCDCCExaminer::OStream::null
private

Definition at line 38 of file CSCDCCExaminer.h.

Referenced by hide(), and redirect().

std::streambuf* CSCDCCExaminer::OStream::stream
private

Definition at line 37 of file CSCDCCExaminer.h.

Referenced by redirect(), and show().