emcNamed Class Reference

#include <emcNamed.h>

Inherited by emcManageable, and emcObjectManager.

Inheritance diagram for emcNamed:

Inheritance graph
[legend]
List of all members.

Detailed Description

A small utility class to give name, title and classname to objects.

Definition at line 10 of file emcNamed.h.

Public Member Functions

 emcNamed (const char *name="", const char *title="", const char *classname="")
 Ctor with a name, a title and a classname.
 emcNamed (const emcNamed &)
emcNamedoperator= (const emcNamed &)
virtual ~emcNamed ()
virtual const char * GetClassName (void) const
 Get the classname.
virtual const char * GetName (void) const
 Get the name.
virtual const char * GetTitle (void) const
 Get the title.
virtual void NameIt (const std::string &name, const std::string &title, const std::string &classname)
virtual void SetClassName (const std::string &s)
 Set the classname.
virtual void SetTitle (const std::string &s)
 Set the title.
virtual void SetName (const std::string &s)
 Set the name.

Protected Member Functions

void Copy (emcNamed &) const

Private Attributes

std::string fName
std::string fTitle
std::string fClassName


Constructor & Destructor Documentation

emcNamed::emcNamed const char *  name = "",
const char *  title = "",
const char *  classname = ""
 

Ctor with a name, a title and a classname.

Definition at line 5 of file emcNamed.C.

References fClassName, fName, and fTitle.

emcNamed::emcNamed const emcNamed  ) 
 

Definition at line 13 of file emcNamed.C.

References Copy().

emcNamed::~emcNamed  )  [virtual]
 

Definition at line 30 of file emcNamed.C.


Member Function Documentation

void emcNamed::Copy emcNamed  )  const [protected]
 

Reimplemented in emcManageable.

Definition at line 45 of file emcNamed.C.

References fClassName, fName, fTitle, SetClassName(), SetName(), and SetTitle().

Referenced by emcManageable::Copy(), emcNamed(), and operator=().

virtual const char* emcNamed::GetClassName void   )  const [inline, virtual]
 

Get the classname.

Definition at line 26 of file emcNamed.h.

References fClassName.

Referenced by operator<<().

virtual const char* emcNamed::GetName void   )  const [inline, virtual]
 

Get the name.

Definition at line 28 of file emcNamed.h.

References fName.

Referenced by emcObjectManagerRegister::AddObjectManager(), operator<<(), emcOMRejectListT< BM >::Read(), emcOMRejectList::Read(), emcOMRejectListT< BM >::Write(), emcOMRejectList::Write(), and emcOMCalFEMT< BM >::Write().

virtual const char* emcNamed::GetTitle void   )  const [inline, virtual]
 

Get the title.

Definition at line 30 of file emcNamed.h.

References fTitle.

Referenced by operator<<().

void emcNamed::NameIt const std::string &  name,
const std::string &  title,
const std::string &  classname
[virtual]
 

Definition at line 35 of file emcNamed.C.

References SetClassName(), SetName(), and SetTitle().

Referenced by emcGainFEM::emcGainFEM(), emcHLRatioFEM::emcHLRatioFEM(), emcLCTofFEM::emcLCTofFEM(), emcPedestalFEM::emcPedestalFEM(), emcQAFEM::emcQAFEM(), emcTacPedFEM::emcTacPedFEM(), emcTofT0FEM::emcTofT0FEM(), emcTracedFEM::emcTracedFEM(), and emcWalkTofFEM::emcWalkTofFEM().

emcNamed & emcNamed::operator= const emcNamed  ) 
 

Definition at line 20 of file emcNamed.C.

References Copy().

virtual void emcNamed::SetClassName const std::string &  s  )  [inline, virtual]
 

Set the classname.

Definition at line 37 of file emcNamed.h.

References fClassName.

Referenced by Copy(), and NameIt().

virtual void emcNamed::SetName const std::string &  s  )  [inline, virtual]
 

Set the name.

Definition at line 41 of file emcNamed.h.

References fName.

Referenced by Copy(), and NameIt().

virtual void emcNamed::SetTitle const std::string &  s  )  [inline, virtual]
 

Set the title.

Definition at line 39 of file emcNamed.h.

References fTitle.

Referenced by Copy(), and NameIt().


Member Data Documentation

std::string emcNamed::fClassName [private]
 

Definition at line 49 of file emcNamed.h.

Referenced by Copy(), emcNamed(), GetClassName(), and SetClassName().

std::string emcNamed::fName [private]
 

Definition at line 47 of file emcNamed.h.

Referenced by Copy(), emcNamed(), GetName(), and SetName().

std::string emcNamed::fTitle [private]
 

Definition at line 48 of file emcNamed.h.

Referenced by Copy(), emcNamed(), GetTitle(), and SetTitle().


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