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 30 of file CSCDCCExaminer.h.

Constructor & Destructor Documentation

CSCDCCExaminer::OStream::OStream ( void  )
inline

Definition at line 53 of file CSCDCCExaminer.h.

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

Definition at line 54 of file CSCDCCExaminer.h.

54 :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
template<class T >
std::ostream& CSCDCCExaminer::OStream::operator<< ( const T &  val)
inline

Definition at line 49 of file CSCDCCExaminer.h.

References name.

49  {
50  return (*(std::ostream*)this)<<name<<val;
51  }
void CSCDCCExaminer::OStream::redirect ( std::ostream &  str)
inline

Definition at line 44 of file CSCDCCExaminer.h.

References null, and stream.

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

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

Definition at line 41 of file CSCDCCExaminer.h.

References name.

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

Definition at line 42 of file CSCDCCExaminer.h.

References name.

42 { name=nm; }

Member Data Documentation

buffer CSCDCCExaminer::OStream::buff
private

Definition at line 33 of file CSCDCCExaminer.h.

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

Definition at line 35 of file CSCDCCExaminer.h.

Referenced by hide(), and redirect().

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

Definition at line 34 of file CSCDCCExaminer.h.

Referenced by redirect(), and show().