HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_UniversalLogSource Class Reference

#include <UT_UniversalLogSource.h>

+ Inheritance diagram for UT_UniversalLogSource:

Public Member Functions

void sendToSinks (const UT_UniversalLogEntry &entry)
 Sends a message to our associated log sinks. More...
 

Protected Member Functions

 UT_UniversalLogSource ()
 
virtual ~UT_UniversalLogSource ()
 
 UT_UniversalLogSource (const UT_UniversalLogSource &)=delete
 
UT_UniversalLogSourceoperator= (const UT_UniversalLogSource &)=delete
 

Protected Attributes

UT_Lock mySinksLock
 
UT_Array< UT_UniversalLogSink * > mySinks
 

Friends

class UT_UniversalLogSourceRegistration
 

Detailed Description

This class represents a logging data source. Each source is a singleton created by the registration code the first time a sink asks to connect to it. The Source is destroyed when the last sink disconnects from it. The source's connection to its sinks is maintained by the base class, so source subclasses simply need to call sendToSinks when they have a log entry to broadcast.

Definition at line 61 of file UT_UniversalLogSource.h.

Constructor & Destructor Documentation

UT_UniversalLogSource::UT_UniversalLogSource ( )
protected
virtual UT_UniversalLogSource::~UT_UniversalLogSource ( )
protectedvirtual
UT_UniversalLogSource::UT_UniversalLogSource ( const UT_UniversalLogSource )
protecteddelete

Member Function Documentation

UT_UniversalLogSource& UT_UniversalLogSource::operator= ( const UT_UniversalLogSource )
protecteddelete
void UT_UniversalLogSource::sendToSinks ( const UT_UniversalLogEntry entry)

Sends a message to our associated log sinks.

Friends And Related Function Documentation

Definition at line 77 of file UT_UniversalLogSource.h.

Member Data Documentation

UT_Array<UT_UniversalLogSink *> UT_UniversalLogSource::mySinks
protected

Definition at line 75 of file UT_UniversalLogSource.h.

UT_Lock UT_UniversalLogSource::mySinksLock
protected

Definition at line 74 of file UT_UniversalLogSource.h.


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