Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

SctData::DefectPrototype Class Reference

Prototypes for making Defect s out of. More...

#include <DefectPrototype.h>


Public Member Functions

string getName () const throw ()
 Gets the name of this defect.

string getDescription () const throw ()
 Get a human readable description for this ModuleDefect.

double getParameter () const throw ()
 Gets a parameter that can be used to determine if something is defective.

DefectSeverity getSeverity () const throw ()
 Gets the severity of this type of defect.

bool operator== (const DefectPrototype &defect) const throw ()
 Returns true if the prototypes are the same.


Private Member Functions

 DefectPrototype (int id, DefectSeverity severity, string name, string d, double parameter)
 Construct a DefectPrototype.


Static Private Member Functions

map< int, DefectPrototype * > & getMap ()
 static method to get the map


Private Attributes

int id
 The internal id.

DefectSeverity severity
 The level of severity.

string name
 Name of the defect.

string description
 The human readable description.

double parameter
 A parameter for deciding if something is defective.


Friends

class DefectIOHelper
class StandardDefects


Detailed Description

Prototypes for making Defect s out of.

Definition at line 27 of file DefectPrototype.h.


Constructor & Destructor Documentation

SctData::DefectPrototype::DefectPrototype int  id,
DefectSeverity  severity,
string  name,
string  d,
double  parameter
[private]
 

Construct a DefectPrototype.

Parameters:
id The unique identifier
severity The severity
name The name
d The description in a form that will be passed to sprintf
parameter The cut parameter (will be passed to sprintf to form the description
Exceptions:
InvalidArgumentError if a DefectPrototype with the given id already exists

Definition at line 17 of file DefectPrototype.cpp.

References description, getMap(), and parameter.

Here is the call graph for this function:


Member Function Documentation

string SctData::DefectPrototype::getDescription  )  const throw () [inline]
 

Get a human readable description for this ModuleDefect.

Definition at line 37 of file DefectPrototype.h.

References description.

map< int, DefectPrototype * > & SctData::DefectPrototype::getMap  )  [static, private]
 

static method to get the map

Definition at line 12 of file DefectPrototype.cpp.

Referenced by DefectPrototype().

string SctData::DefectPrototype::getName  )  const throw () [inline]
 

Gets the name of this defect.

Definition at line 32 of file DefectPrototype.h.

References name.

double SctData::DefectPrototype::getParameter  )  const throw () [inline]
 

Gets a parameter that can be used to determine if something is defective.

Definition at line 42 of file DefectPrototype.h.

References parameter.

DefectSeverity SctData::DefectPrototype::getSeverity  )  const throw () [inline]
 

Gets the severity of this type of defect.

Definition at line 47 of file DefectPrototype.h.

References SctData::DefectSeverity, and severity.

bool SctData::DefectPrototype::operator== const DefectPrototype defect  )  const throw () [inline]
 

Returns true if the prototypes are the same.

Definition at line 52 of file DefectPrototype.h.

References id.


Field Documentation

string SctData::DefectPrototype::description [private]
 

The human readable description.

Definition at line 70 of file DefectPrototype.h.

Referenced by DefectPrototype(), and getDescription().

int SctData::DefectPrototype::id [private]
 

The internal id.

Definition at line 67 of file DefectPrototype.h.

Referenced by operator==().

string SctData::DefectPrototype::name [private]
 

Name of the defect.

Definition at line 69 of file DefectPrototype.h.

Referenced by getName().

double SctData::DefectPrototype::parameter [private]
 

A parameter for deciding if something is defective.

Definition at line 71 of file DefectPrototype.h.

Referenced by DefectPrototype(), and getParameter().

DefectSeverity SctData::DefectPrototype::severity [private]
 

The level of severity.

Definition at line 68 of file DefectPrototype.h.

Referenced by getSeverity().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 21:18:35 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5