SCTDAL::Partition Class Reference

SCT partition. More...

#include <Partition.h>

Collaboration diagram for SCTDAL::Partition:

Collaboration graph
[legend]

Public Member Functions

 Partition (::Configuration &conf,::ConfigObject &obj)
virtual ~Partition ()
bool destroy (::Configuration &conf)
 Destroy object of the Partition class.
virtual void init (bool init_children)
virtual void print (unsigned int, bool, std::ostream &) const
const std::string & get_name () const
 Get "name" attribute value.
const std::string & name () const
bool set_name (const std::string &value)
 Set "name" attribute value.
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::Crate * > & get_crates () const
 Get "crates" relationship value.
const std::vector< const SCTDAL::Crate * > & crates () const
bool set_crates (const std::vector< const SCTDAL::Crate * > &value)
 Set "crates" relationship value.

Static Public Member Functions

static Partitioncreate (::Configuration &conf, const std::string &id="")
 Create new object of the Partition 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_name
unsigned short m_id
std::vector< const SCTDAL::Crate * > m_crates

Friends

class ::Configuration

Detailed Description

SCT partition.

Definition at line 26 of file Partition.h.


Member Function Documentation

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

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

Destroy object of the Partition class.

Returns:
true in case of success or false if failed

const std::vector<const SCTDAL::Crate*>& SCTDAL::Partition::get_crates  )  const [inline]
 

Get "crates" relationship value.

Definition at line 109 of file Partition.h.

References check_init(), and m_crates.

Here is the call graph for this function:

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

Get "id" attribute value.

Definition at line 96 of file Partition.h.

References check_init(), and m_id.

Here is the call graph for this function:

const std::string& SCTDAL::Partition::get_name  )  const [inline]
 

Get "name" attribute value.

Definition at line 83 of file Partition.h.

References check_init(), and m_name.

Here is the call graph for this function:

bool SCTDAL::Partition::set_crates const std::vector< const SCTDAL::Crate * > &  value  ) 
 

Set "crates" relationship value.

Definition at line 123 of file Partition.cpp.

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

Set "id" attribute value.

Definition at line 103 of file Partition.h.

bool SCTDAL::Partition::set_name const std::string &  value  )  [inline]
 

Set "name" attribute value.

Definition at line 90 of file Partition.h.


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