Public Member Functions | Static Public Member Functions | Protected Types | Static Protected Attributes

roc::AbbFactory Class Reference

#include <AbbFactory.h>

Inheritance diagram for roc::AbbFactory:
Inheritance graph
[legend]
Collaboration diagram for roc::AbbFactory:
Collaboration graph
[legend]

Public Member Functions

 AbbFactory (const char *name)
virtual dabc::Device * CreateDevice (const char *classname, const char *devname, dabc::Command cmd)
virtual dabc::Module * CreateModule (const char *classname, const char *modulename, dabc::Command cmd)
virtual void ShowDebug (int lvl, const char *msg)
virtual bool IsFactoryFor (const char *url)
virtual base::BoardDoConnect (const char *name, base::ClientRole role)
virtual bool DoClose (base::Board *brd)

Static Public Member Functions

static BoardCreateBoard (const char *url, ClientRole role=roleNone)
static bool DestroyBoard (base::Board *brd)

Protected Types

enum  { MaxNumFactories = 10 }

Static Protected Attributes

static BoardFactory * gArr [MaxNumFactories]

Detailed Description

Definition at line 14 of file AbbFactory.h.


Member Enumeration Documentation

anonymous enum [protected, inherited]
Enumerator:
MaxNumFactories 

Definition at line 415 of file Board.h.


Constructor & Destructor Documentation

roc::AbbFactory::AbbFactory ( const char *  name  ) 

Definition at line 18 of file AbbFactory.cxx.


Member Function Documentation

base::Board * base::BoardFactory::CreateBoard ( const char *  url,
ClientRole  role = roleNone 
) [static, inherited]
dabc::Device * roc::AbbFactory::CreateDevice ( const char *  classname,
const char *  devname,
dabc::Command  cmd 
) [virtual]

Definition at line 24 of file AbbFactory.cxx.

References roc::AbbDevice::IsConnected(), and roc::typeAbbDevice.

dabc::Module * roc::AbbFactory::CreateModule ( const char *  classname,
const char *  modulename,
dabc::Command  cmd 
) [virtual]

Definition at line 42 of file AbbFactory.cxx.

bool base::BoardFactory::DestroyBoard ( base::Board brd  )  [static, inherited]

Definition at line 640 of file Board.cxx.

References base::BoardFactory::DoClose(), and base::Board::fBrdFactory.

Referenced by base::Board::Close().

bool roc::AbbFactory::DoClose ( base::Board brd  )  [virtual]

Implements base::BoardFactory.

Definition at line 185 of file AbbFactory.cxx.

Referenced by DoConnect().

base::Board * roc::AbbFactory::DoConnect ( const char *  name,
base::ClientRole  role 
) [virtual]
bool roc::AbbFactory::IsFactoryFor ( const char *  url  )  [virtual]

Method should return true if factory designed to create boards for provided url Either URL contains explicit protocol for the factory or name has format as expected

Reimplemented from base::BoardFactory.

Definition at line 61 of file AbbFactory.cxx.

References roc::Board::IsOpticAddress().

void roc::AbbFactory::ShowDebug ( int  lvl,
const char *  msg 
) [virtual]

Reimplemented from base::BoardFactory.

Definition at line 54 of file AbbFactory.cxx.


Field Documentation

base::BoardFactory * base::BoardFactory::gArr [static, protected, inherited]
Initial value:
                   { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }

Definition at line 416 of file Board.h.

Referenced by base::BoardFactory::BoardFactory(), base::BoardFactory::CreateBoard(), and base::BoardFactory::~BoardFactory().


The documentation for this class was generated from the following files: