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

#include <Priority.h>

Inheritance diagram for RcuConf::Priority:

RcuConf::Table

Detailed Description

Priority to write a register to - if a specific chip should be ordered.

Definition at line 55 of file Priority.h.

Public Types

typedef std::list< Priority * > List

Public Member Functions

 Priority (const std::string &desc, const std::vector< int > &params)
virtual ~Priority ()
virtual void Print () const
virtual bool Insert (RcuDb::Server &s)
const std::string & Description () const
void Params (std::vector< int > &params) 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 Config &c)

Static Public Attributes

const std::string fgName

Protected Member Functions

 Priority (RcuDb::Row &row)

Protected Attributes

std::string fDescription
RcuDb::Blob fParams


Member Typedef Documentation

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

Type of List of prioritys.

Definition at line 70 of file Priority.h.

Referenced by RcuConf::Configurator::GetOrder(), and Select().


Constructor & Destructor Documentation

RcuConf::Priority::Priority const std::string &  desc,
const std::vector< int > &  params
[inline]
 

User constructor.

Parameters:
desc Description
params Priority of parameters

Definition at line 61 of file Priority.h.

References fDescription, and fParams.

Referenced by Select().

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

Destructor.

Definition at line 67 of file Priority.h.

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

Construct from a row.

Parameters:
row Row to construct from

Definition at line 37 of file Priority.cxx.

References fDescription, and fParams.


Member Function Documentation

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

Create a table for these objects.

Parameters:
s Server to create the table in

Definition at line 72 of file Priority.cxx.

References fgName.

const std::string& RcuConf::Priority::Description  )  const [inline]
 

Returns:
Board priority

Definition at line 97 of file Priority.h.

References fDescription.

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

Delete table for these objects.

Parameters:
s Server to delete the table from

Definition at line 85 of file Priority.cxx.

References fgName.

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

Insert this object into the database.

Parameters:
s Server to contact

Implements RcuConf::Table.

Definition at line 55 of file Priority.cxx.

References fDescription, fgName, fParams, and RcuConf::Table::MakeId().

void RcuConf::Priority::Params std::vector< int > &  params  )  const [inline]
 

Parameters:
params Priority of parameters. On return, this array is filed with references to rows in the Parameter table

Definition at line 100 of file Priority.h.

References fParams.

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

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

Print to standard out.

Definition at line 46 of file Priority.cxx.

References fDescription, and fParams.

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

bool RcuConf::Priority::Select List l,
RcuDb::Server &  s,
const Config c
[static]
 

Query the database for objects of this type.

Parameters:
s Server to query
l Return list
c Config to get priority for
Returns:
List of objects of this type matching cond

Definition at line 118 of file Priority.cxx.

References List, RcuConf::Config::PriorityId(), and Select().

bool RcuConf::Priority::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 92 of file Priority.cxx.

References fgName, List, and Priority().

Referenced by Select().


Field Documentation

std::string RcuConf::Priority::fDescription [protected]
 

Description.

Definition at line 109 of file Priority.h.

Referenced by Description(), Insert(), Print(), and Priority().

const std::string RcuConf::Priority::fgName [static]
 

Table name.

Referenced by Create(), Drop(), Insert(), and Select().

RcuDb::Blob RcuConf::Priority::fParams [protected]
 

Priority encoded into a blob.

Definition at line 111 of file Priority.h.

Referenced by Insert(), Params(), Print(), and Priority().


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