Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

CAlarmLogger Class Reference

#include <CAlarmLogger.h>

List of all members.

Public Member Functions

 CAlarmLogger (STD(string) facility, STD(string) expid, STD(string) host="localhost", STD(string) port="daqalarm")
 The experiment id to log this alarm to.
 CAlarmLogger (const CAlarmLogger &aCAlarmLogger)
 ~CAlarmLogger ()
 STD (string) getFacility()
 STD (string) getHost()
 STD (string) getPort()
 STD (string) getId()
void Log (STD(string) message)

Protected Member Functions

void setFacility (STD(string) fac)
void setHost (const STD(string)&host)
void setPort (const STD(string)&port)
void setIf (const STD(string)&id)

Private Member Functions

 STD (string) m_sFacility
 STD (string) m_sHost
 The facility name that's doing the logging.
 STD (string) m_sPort
 The host to log to (server host).
 STD (string) m_sExpId
 The port to log to (server port).


Detailed Description

CAlarmLogger encapsulates an alarm logger object. CAlarmLoggers are created with the name of the facility doing the logging, a host and port number of the place to do the logging to. Typically, this is the host and port of the machine that the alarm displayer is running on.

Definition at line 329 of file CAlarmLogger.h.


Constructor & Destructor Documentation

CAlarmLogger::CAlarmLogger STD(string)  facility,
STD(string)  expid,
STD(string)  host = "localhost",
STD(string)  port = "daqalarm"
 

The experiment id to log this alarm to.

CAlarmLogger::CAlarmLogger const CAlarmLogger aCAlarmLogger  ) 
 

"Copy Constructor" This is the copy constructor. It creates a new object by copying the information of the reference object which is its parameter.

Parameters:
aCAlarmLogger - the reference object whose attributes will be copied.

Definition at line 346 of file CAlarmLogger.cpp.

CAlarmLogger::~CAlarmLogger  ) 
 

"Destructor" Called when an object goes out of scope, or when execution of the program is terminated. Destroys the object, and frees up space.

Definition at line 357 of file CAlarmLogger.cpp.


Member Function Documentation

void CAlarmLogger::Log STD(string)  message  ) 
 

void CAlarmLogger::setFacility STD(string)  fac  )  [inline, protected]
 

Definition at line 358 of file CAlarmLogger.h.

void CAlarmLogger::setHost const STD(string)&  host  )  [inline, protected]
 

Definition at line 362 of file CAlarmLogger.h.

void CAlarmLogger::setIf const STD(string)&  id  )  [inline, protected]
 

Definition at line 370 of file CAlarmLogger.h.

void CAlarmLogger::setPort const STD(string)&  port  )  [inline, protected]
 

Definition at line 366 of file CAlarmLogger.h.

CAlarmLogger::STD string   )  [inline]
 

Definition at line 354 of file CAlarmLogger.h.

CAlarmLogger::STD string   )  [inline]
 

Definition at line 353 of file CAlarmLogger.h.

CAlarmLogger::STD string   )  [inline]
 

Definition at line 352 of file CAlarmLogger.h.

CAlarmLogger::STD string   )  [inline]
 

Definition at line 351 of file CAlarmLogger.h.

CAlarmLogger::STD string   )  [private]
 

The port to log to (server port).

CAlarmLogger::STD string   )  [private]
 

The host to log to (server host).

CAlarmLogger::STD string   )  [private]
 

The facility name that's doing the logging.

CAlarmLogger::STD string   )  [private]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 6 16:58:43 2005 for Spectrodaq External Event Framework by  doxygen 1.3.9.1