SCTDAL::SCT_Module Class Reference

Module-wide settings, as in production DB. More...

#include <SCT_Module.h>

Collaboration diagram for SCTDAL::SCT_Module:

Collaboration graph
[legend]

Public Member Functions

 SCT_Module (::Configuration &conf,::ConfigObject &obj)
virtual ~SCT_Module ()
bool destroy (::Configuration &conf)
 Destroy object of the SCT_Module class.
virtual void init (bool init_children)
virtual void print (unsigned int, bool, std::ostream &) const
const std::string & get_sn () const
 Get "sn" attribute value.
const std::string & sn () const
bool set_sn (const std::string &value)
 Set "sn" attribute value.
const std::string & get_source () const
 Get "source" attribute value.
const std::string & source () const
bool set_source (const std::string &value)
 Set "source" attribute value.
const std::string & get_location () const
 Get "location" attribute value.
const std::string & location () const
bool set_location (const std::string &value)
 Set "location" attribute value.
bool get_active () const
 Get "active" attribute value.
bool active () const
bool set_active (bool value)
 Set "active" attribute value.
unsigned short get_select () const
 Get "select" attribute value.
unsigned short select () const
bool set_select (unsigned short value)
 Set "select" attribute value.
const std::vector< const SCTDAL::SCT_Chip * > & get_Chips () const
 Get "Chips" relationship value.
const std::vector< const SCTDAL::SCT_Chip * > & Chips () const
bool set_Chips (const std::vector< const SCTDAL::SCT_Chip * > &value)
 Set "Chips" relationship value.

Static Public Member Functions

static SCT_Modulecreate (::Configuration &conf, const std::string &id="")
 Create new object of the SCT_Module class.

Static Public Attributes

static const std::string s_class_name

Private Member Functions

void check_init () const

Static Private Member Functions

static void update (::Configuration &conf, const ::ConfigurationChange *change)
static void reset (::Configuration &conf, bool re_initialise_obj)

Private Attributes

std::string m_sn
std::string m_source
std::string m_location
bool m_active
unsigned short m_select
std::vector< const SCTDAL::SCT_Chip * > m_Chips

Friends

class ::Configuration

Detailed Description

Module-wide settings, as in production DB.

Definition at line 26 of file SCT_Module.h.


Member Function Documentation

static SCT_Module* SCTDAL::SCT_Module::create ::Configuration &  conf,
const std::string &  id = ""
[static]
 

Create new object of the SCT_Module class.

Parameters:
conf configuration object
id optional identity for new object
Returns:
non-null pointer on new object in case of success or null pointer if failed

bool SCTDAL::SCT_Module::destroy ::Configuration &  conf  ) 
 

Destroy object of the SCT_Module class.

Returns:
true in case of success or false if failed

bool SCTDAL::SCT_Module::get_active  )  const [inline]
 

Get "active" attribute value.

For active, set true. For inactive, set false.

Definition at line 128 of file SCT_Module.h.

References check_init(), and m_active.

Here is the call graph for this function:

const std::vector<const SCTDAL::SCT_Chip*>& SCTDAL::SCT_Module::get_Chips  )  const [inline]
 

Get "Chips" relationship value.

The 12 chips on each module

Definition at line 158 of file SCT_Module.h.

References check_init(), and m_Chips.

Here is the call graph for this function:

const std::string& SCTDAL::SCT_Module::get_location  )  const [inline]
 

Get "location" attribute value.

Definition at line 114 of file SCT_Module.h.

References check_init(), and m_location.

Here is the call graph for this function:

unsigned short SCTDAL::SCT_Module::get_select  )  const [inline]
 

Get "select" attribute value.

This really ought to be a bool, but for historical reasons, the terms "select equals one" and "select equals zero" have entered common usage, and to make it a bool would cause significant confusion.

Definition at line 143 of file SCT_Module.h.

References check_init(), and m_select.

Here is the call graph for this function:

const std::string& SCTDAL::SCT_Module::get_sn  )  const [inline]
 

Get "sn" attribute value.

Serial Number

Definition at line 87 of file SCT_Module.h.

References check_init(), and m_sn.

Here is the call graph for this function:

const std::string& SCTDAL::SCT_Module::get_source  )  const [inline]
 

Get "source" attribute value.

Definition at line 101 of file SCT_Module.h.

References check_init(), and m_source.

Here is the call graph for this function:

bool SCTDAL::SCT_Module::set_active bool  value  )  [inline]
 

Set "active" attribute value.

For active, set true. For inactive, set false.

Definition at line 136 of file SCT_Module.h.

bool SCTDAL::SCT_Module::set_Chips const std::vector< const SCTDAL::SCT_Chip * > &  value  ) 
 

Set "Chips" relationship value.

The 12 chips on each module

Definition at line 147 of file SCT_Module.cpp.

bool SCTDAL::SCT_Module::set_location const std::string &  value  )  [inline]
 

Set "location" attribute value.

Definition at line 121 of file SCT_Module.h.

bool SCTDAL::SCT_Module::set_select unsigned short  value  )  [inline]
 

Set "select" attribute value.

This really ought to be a bool, but for historical reasons, the terms "select equals one" and "select equals zero" have entered common usage, and to make it a bool would cause significant confusion.

Definition at line 151 of file SCT_Module.h.

bool SCTDAL::SCT_Module::set_sn const std::string &  value  )  [inline]
 

Set "sn" attribute value.

Serial Number

Definition at line 95 of file SCT_Module.h.

bool SCTDAL::SCT_Module::set_source const std::string &  value  )  [inline]
 

Set "source" attribute value.

Definition at line 108 of file SCT_Module.h.


The documentation for this class was generated from the following files:
Generated on Mon Feb 6 14:06:56 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6