ENSDF++ 1.1
An easy, fast and simple way to run querys towards the ENSDF database, written in C++.
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes
VerbosePrinterEventEnabled Class Reference

Classes using VerbosePrinter usually wants to implement this class. More...

#include <VerbosePrinterEventEnabled.h>

Inheritance diagram for VerbosePrinterEventEnabled:
DataQuery ENSDF ENSDFProcessor MassTable DataQueryBetaGamma DataQueryIsomer

List of all members.

Public Member Functions

 VerbosePrinterEventEnabled ()
 Constructs the object.
 ~VerbosePrinterEventEnabled ()
 Destroys the object.
void registerListener (VerbosePrinter *Listener)
 Registers the VerbosePrinter listener with this object.
void removeListener ()
 Unregisters the listener.

Protected Member Functions

bool vPrint (int verbosityLevel, const char *message,...) const
 Called to print.
void registerChild (VerbosePrinterEventEnabled *child)
 Registers a child. If a VerbosePrinter is added, all children will also add it.

Protected Attributes

VerbosePrintermyPrinter
 Pointer to the registered VerbosePrinter, if any.

Private Attributes

list
< VerbosePrinterEventEnabled * > 
children
 The registered children.

Detailed Description

Classes using VerbosePrinter usually wants to implement this class.

Author:
Rikard Lundmark

Definition at line 27 of file VerbosePrinterEventEnabled.h.


Member Function Documentation

void VerbosePrinterEventEnabled::registerChild ( VerbosePrinterEventEnabled child) [protected]

Registers a child. If a VerbosePrinter is added, all children will also add it.

Parameters:
childThe child to add.

Definition at line 36 of file VerbosePrinterEventEnabled.cpp.

References children.

Referenced by ENSDFProcessor::ENSDFProcessor(), ENSDFProcessor::runBetaGammaQuery(), and ENSDFProcessor::runIsomerQuery().

{
  children.push_back(child);
}
void VerbosePrinterEventEnabled::registerListener ( VerbosePrinter Listener)

Registers the VerbosePrinter listener with this object.

Parameters:
ListenerThe listener to register.

Definition at line 13 of file VerbosePrinterEventEnabled.cpp.

References children, myPrinter, NULL, and VerbosePrinter::registerConnectedEventClass().

Referenced by DataQueryBetaGamma::DataQueryBetaGamma(), DataQueryIsomer::DataQueryIsomer(), ENSDF::ENSDF(), ENSDFProcessor::ENSDFProcessor(), and MassTable::MassTable().

{
  myPrinter = Listener;
  if(myPrinter!=NULL)
    {
      myPrinter->registerConnectedEventClass(this);
    }
  for(list<VerbosePrinterEventEnabled *>::iterator it = children.begin(); it!=children.end(); it++)
    {
      if((*it)!=NULL)
        (*it)->registerListener(Listener);
    }
}
bool VerbosePrinterEventEnabled::vPrint ( int  verbosityLevel,
const char *  message,
  ... 
) const [protected]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Enumerations Enumerator Defines

Back to the main page of the Precalibrated Ion Beam Identification Detector project

Created by Rikard Lundmark