RcuConf::Address Class Reference
[Classes that correspond to tables]

#include <Address.h>

Inheritance diagram for RcuConf::Address:

RcuConf::Table

Detailed Description

Address to write a register to - if a specific chip should be addressed.

Definition at line 51 of file Address.h.

Public Types

typedef std::list< Address * > List

Public Member Functions

 Address (int board, int chip=0, int channel=0)
virtual ~Address ()
virtual void Print () const
virtual bool Insert (RcuDb::Server &s)
int Board () const
int Chip () const
int Channel () const
int RawValue () const

Static Public Member Functions

bool Create (RcuDb::Server &s)
bool Drop (RcuDb::Server &s)
bool Select (List &l, RcuDb::Server &s, const RcuDb::Sql &cond)
bool Select (List &l, RcuDb::Server &s, const Value &v)

Protected Member Functions

 Address (RcuDb::Row &row)

Protected Attributes

int fAddress


Member Typedef Documentation

typedef std::list<Address*> RcuConf::Address::List
 

Type of List of addresss.

Definition at line 67 of file Address.h.

Referenced by Insert(), Select(), and RcuConf::Configurator::Write().


Constructor & Destructor Documentation

RcuConf::Address::Address int  board,
int  chip = 0,
int  channel = 0
[inline]
 

User constructor.

Parameters:
board Board address
chip Chip address
channel Channel address

Definition at line 58 of file Address.h.

References fAddress.

Referenced by Select().

virtual RcuConf::Address::~Address  )  [inline, virtual]
 

Destructor.

Definition at line 64 of file Address.h.

RcuConf::Address::Address RcuDb::Row &  row  )  [protected]
 

Construct from a row.

Parameters:
row Row to construct from

Definition at line 40 of file Address.cxx.

References fAddress.


Member Function Documentation

int RcuConf::Address::Board  )  const [inline]
 

Returns:
Board address

Definition at line 94 of file Address.h.

References fAddress.

Referenced by RcuConf::BusComponent::Read(), and RcuConf::BusComponent::Write().

int RcuConf::Address::Channel  )  const [inline]
 

Returns:
Channel address

Definition at line 98 of file Address.h.

References fAddress.

Referenced by RcuConf::BusComponent::Read(), and RcuConf::BusComponent::Write().

int RcuConf::Address::Chip  )  const [inline]
 

Returns:
Chip address

Definition at line 96 of file Address.h.

References fAddress.

Referenced by RcuConf::BusComponent::Read(), and RcuConf::BusComponent::Write().

bool RcuConf::Address::Create RcuDb::Server &  s  )  [static]
 

Create a table for these objects.

Parameters:
s Server to create the table in

Definition at line 84 of file Address.cxx.

bool RcuConf::Address::Drop RcuDb::Server &  s  )  [static]
 

Delete table for these objects.

Parameters:
s Server to delete the table from

Definition at line 96 of file Address.cxx.

bool RcuConf::Address::Insert RcuDb::Server &  s  )  [virtual]
 

Insert this object into the database.

Parameters:
s Server to contact

Implements RcuConf::Table.

Definition at line 56 of file Address.cxx.

References fAddress, RcuConf::Table::fId, List, RcuConf::Table::MakeId(), and Select().

void RcuConf::Address::Print  )  const [virtual]
 

Print to standard out.

Definition at line 48 of file Address.cxx.

References fAddress.

int RcuConf::Address::RawValue  )  const [inline]
 

Returns:
Get raw value

Definition at line 100 of file Address.h.

References fAddress.

Referenced by RcuConf::Configurator::Write().

bool RcuConf::Address::Select List l,
RcuDb::Server &  s,
const Value v
[static]
 

Query the database for objects of this type.

Parameters:
s Server to query
l Return list
v Value to get addresses for
Returns:
List of objects of this type matching cond

Definition at line 127 of file Address.cxx.

References RcuConf::Value::AddressId(), List, and Select().

bool RcuConf::Address::Select List l,
RcuDb::Server &  s,
const RcuDb::Sql &  cond
[static]
 

Query the database for objects of this type.

Parameters:
s Server to query
l Return list
cond Optional condition
Returns:
List of objects of this type matching cond

Definition at line 103 of file Address.cxx.

References Address(), and List.

Referenced by Insert(), and Select().


Field Documentation

int RcuConf::Address::fAddress [protected]
 

Address encoded into a 32 bit integer.

Definition at line 106 of file Address.h.

Referenced by Address(), Board(), Channel(), Chip(), Insert(), Print(), and RawValue().


The documentation for this class was generated from the following files:
Top of page Last update Fri Apr 27 01:54:16 2007
Copyright © 2004 Christian Holm Created by DoxyGen 1.3.5