SCTDAL::PowerCrate Class Reference

Channels in each power crate. More...

#include <PowerCrate.h>


Public Member Functions

 PowerCrate (::Configuration &conf,::ConfigObject &obj)
virtual ~PowerCrate ()
bool destroy (::Configuration &conf)
 Destroy object of the PowerCrate class.
virtual void init (bool init_children)
virtual void print (unsigned int, bool, std::ostream &) const
unsigned short get_id () const
 Get "id" attribute value.
unsigned short id () const
bool set_id (unsigned short value)
 Set "id" attribute value.
const std::vector< const SCTDAL::PowerChannel * > & get_channels () const
 Get "channels" relationship value.
const std::vector< const SCTDAL::PowerChannel * > & channels () const
bool set_channels (const std::vector< const SCTDAL::PowerChannel * > &value)
 Set "channels" relationship value.
const std::vector< const SCTDAL::PowerCard * > & get_cards () const
 Get "cards" relationship value.
const std::vector< const SCTDAL::PowerCard * > & cards () const
bool set_cards (const std::vector< const SCTDAL::PowerCard * > &value)
 Set "cards" relationship value.

Static Public Member Functions

static PowerCratecreate (::Configuration &conf, const std::string &id="")
 Create new object of the PowerCrate 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

unsigned short m_id
std::vector< const SCTDAL::PowerChannel * > m_channels
std::vector< const SCTDAL::PowerCard * > m_cards

Friends

class ::Configuration


Detailed Description

Channels in each power crate.

Definition at line 29 of file PowerCrate.h.


Member Function Documentation

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

Create new object of the PowerCrate 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::PowerCrate::destroy ::Configuration &  conf  ) 
 

Destroy object of the PowerCrate class.

Returns:
true in case of success or false if failed

const std::vector<const SCTDAL::PowerCard*>& SCTDAL::PowerCrate::get_cards  )  const [inline]
 

Get "cards" relationship value.

Definition at line 112 of file PowerCrate.h.

References check_init(), and m_cards.

Here is the call graph for this function:

const std::vector<const SCTDAL::PowerChannel*>& SCTDAL::PowerCrate::get_channels  )  const [inline]
 

Get "channels" relationship value.

Definition at line 99 of file PowerCrate.h.

References check_init(), and m_channels.

Here is the call graph for this function:

unsigned short SCTDAL::PowerCrate::get_id  )  const [inline]
 

Get "id" attribute value.

Definition at line 86 of file PowerCrate.h.

References check_init(), and m_id.

Here is the call graph for this function:

bool SCTDAL::PowerCrate::set_cards const std::vector< const SCTDAL::PowerCard * > &  value  ) 
 

Set "cards" relationship value.

Definition at line 135 of file PowerCrate.cpp.

bool SCTDAL::PowerCrate::set_channels const std::vector< const SCTDAL::PowerChannel * > &  value  ) 
 

Set "channels" relationship value.

Definition at line 126 of file PowerCrate.cpp.

bool SCTDAL::PowerCrate::set_id unsigned short  value  )  [inline]
 

Set "id" attribute value.

Definition at line 93 of file PowerCrate.h.


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