OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Member Functions | Private Attributes | List of all members
CoutSink Class Reference

#include <CoutSink.h>

Inheritance diagram for CoutSink:
Inheritance graph
[legend]
Collaboration diagram for CoutSink:
Collaboration graph
[legend]

Public Member Functions

 CoutSink (std::string prefix="")
 
 ~CoutSink ()
 
void setColor (std::string color)
 
void setClearColor (std::string color)
 
void execute (std::ostringstream &dump)
 
- Public Member Functions inherited from TraceComponent
 TraceComponent (std::string name)
 
 ~TraceComponent ()
 
void prepend (std::ostringstream &dump, std::ostringstream &prepender)
 
void prepend (std::ostringstream &dump, std::string prepender)
 

Private Attributes

std::string prefix_
 
std::string color_
 
std::string clear_color_
 

Detailed Description

Definition at line 29 of file CoutSink.h.

Constructor & Destructor Documentation

◆ CoutSink()

CoutSink::CoutSink ( std::string  prefix = "")
inline

Definition at line 34 of file CoutSink.h.

References clear_color_.

◆ ~CoutSink()

CoutSink::~CoutSink ( )
inline

Definition at line 41 of file CoutSink.h.

Member Function Documentation

◆ execute()

void CoutSink::execute ( std::ostringstream &  dump)
inlinevirtual

Implements TraceComponent.

Definition at line 49 of file CoutSink.h.

References clear_color_, color_, and prefix_.

◆ setClearColor()

void CoutSink::setClearColor ( std::string  color)
inline

Definition at line 46 of file CoutSink.h.

References clear_color_.

◆ setColor()

void CoutSink::setColor ( std::string  color)
inline

Definition at line 45 of file CoutSink.h.

References color_.

Member Data Documentation

◆ clear_color_

std::string CoutSink::clear_color_
private

Definition at line 59 of file CoutSink.h.

Referenced by CoutSink(), execute(), and setClearColor().

◆ color_

std::string CoutSink::color_
private

Definition at line 58 of file CoutSink.h.

Referenced by execute(), and setColor().

◆ prefix_

std::string CoutSink::prefix_
private

Definition at line 57 of file CoutSink.h.

Referenced by execute().


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