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

SCTDAL::SCT_Module Class Reference

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

#include <SCT_Module.h>


Public Member Functions

 SCT_Module (::Configuration &conf,::ConfigObject &obj)
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. Serial Number.

const std::string & sn () const
bool set_sn (const std::string &value)
 Set "sn" attribute value. Serial Number.

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. For active, set true. For inactive, set false.

bool active () const
bool set_active (bool value)
 Set "active" attribute value. For active, set true. For inactive, set false.

unsigned short get_select () const
 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.

unsigned short select () const
bool set_select (unsigned short value)
 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.

const std::vector< const SCTDAL::SCT_Chip * > & get_Chips () const
 Get "Chips" relationship value. The 12 chips on each module.

const std::vector< const SCTDAL::SCT_Chip * > & Chips () const
bool set_Chips (const std::vector< const SCTDAL::SCT_Chip * > &value)
 Set "Chips" relationship value. The 12 chips on each module.

 SCT_Module (::Configuration &conf,::ConfigObject &obj)
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. Serial Number.

const std::string & sn () const
bool set_sn (const std::string &value)
 Set "sn" attribute value. Serial Number.

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. For active, set true. For inactive, set false.

bool active () const
bool set_active (bool value)
 Set "active" attribute value. For active, set true. For inactive, set false.

unsigned short get_select () const
 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.

unsigned short select () const
bool set_select (unsigned short value)
 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.

const std::vector< const SCTDAL::SCT_Chip * > & get_Chips () const
 Get "Chips" relationship value. The 12 chips on each module.

const std::vector< const SCTDAL::SCT_Chip * > & Chips () const
bool set_Chips (const std::vector< const SCTDAL::SCT_Chip * > &value)
 Set "Chips" relationship value. The 12 chips on each module.


Static Public Member Functions

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

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


Static Public Attributes

const std::string s_class_name

Private Member Functions

void check_init () const
void check_init () const

Static Private Member Functions

void update (::Configuration &conf, const::ConfigurationChange *change)
void reset (::Configuration &conf, bool re_initialise_obj)
void update (::Configuration &conf, const::ConfigurationChange *change)
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
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

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

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::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 emp/SCT_Module.h.

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.

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 emp/SCT_Module.h.

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.

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

Get "location" attribute value.

Definition at line 114 of file emp/SCT_Module.h.

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

Get "location" attribute value.

Definition at line 114 of file SCT_Module.h.

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 emp/SCT_Module.h.

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.

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

Get "sn" attribute value. Serial Number.

Definition at line 87 of file emp/SCT_Module.h.

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.

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

Get "source" attribute value.

Definition at line 101 of file emp/SCT_Module.h.

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

Get "source" attribute value.

Definition at line 101 of file SCT_Module.h.

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 emp/SCT_Module.h.

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.

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 emp/SCT_Module.h.

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 emp/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 emp/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 emp/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 Fri Dec 16 19:42:17 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5