OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
TraceComponent Class Referenceabstract

#include <TraceComponent.h>

Inheritance diagram for TraceComponent:
Collaboration diagram for TraceComponent:

Public Member Functions

 TraceComponent (std::string name)
 ~TraceComponent ()
virtual void execute (std::ostringstream &dump)=0
void prepend (std::ostringstream &dump, std::ostringstream &prepender)
void prepend (std::ostringstream &dump, std::string prepender)

Private Attributes

std::string name_

Detailed Description

Definition at line 27 of file TraceComponent.h.

Constructor & Destructor Documentation

◆ TraceComponent()

TraceComponent::TraceComponent ( std::string name)
inline

Definition at line 31 of file TraceComponent.h.

References name, and name_.

Referenced by CoutSink::CoutSink(), FileSink::FileSink(), MyPid::MyPid(), and Timestamp::Timestamp().

◆ ~TraceComponent()

TraceComponent::~TraceComponent ( )
inline

Definition at line 34 of file TraceComponent.h.

Member Function Documentation

◆ execute()

virtual void TraceComponent::execute ( std::ostringstream & dump)
pure virtual

Implemented in CoutSink, FileSink, MyPid, and Timestamp.

◆ prepend() [1/2]

void TraceComponent::prepend ( std::ostringstream & dump,
std::ostringstream & prepender )
inline

Definition at line 39 of file TraceComponent.h.

Referenced by Timestamp::execute().

◆ prepend() [2/2]

void TraceComponent::prepend ( std::ostringstream & dump,
std::string prepender )
inline

Definition at line 47 of file TraceComponent.h.

Member Data Documentation

◆ name_

std::string TraceComponent::name_
private

Definition at line 58 of file TraceComponent.h.

Referenced by TraceComponent().


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