#include <AbbFactory.h>
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::Board * | DoConnect (const char *name, base::ClientRole role) |
virtual bool | DoClose (base::Board *brd) |
Static Public Member Functions | |
static Board * | CreateBoard (const char *url, ClientRole role=roleNone) |
static bool | DestroyBoard (base::Board *brd) |
Protected Types | |
enum | { MaxNumFactories = 10 } |
Static Protected Attributes | |
static BoardFactory * | gArr [MaxNumFactories] |
Definition at line 14 of file AbbFactory.h.
anonymous enum [protected, inherited] |
roc::AbbFactory::AbbFactory | ( | const char * | name | ) |
Definition at line 18 of file AbbFactory.cxx.
base::Board * base::BoardFactory::CreateBoard | ( | const char * | url, | |
ClientRole | role = roleNone | |||
) | [static, inherited] |
Definition at line 614 of file Board.cxx.
References base::BoardFactory::DoConnect(), base::Board::fBrdFactory, base::BoardFactory::gArr, and base::BoardFactory::IsFactoryFor().
Referenced by base::Board::Connect().
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] |
Implements base::BoardFactory.
Definition at line 67 of file AbbFactory.cxx.
References DoClose(), base::Url::GetFileName(), roc::AbbDevice::GetOpticPath(), base::Url::HasOption(), roc::AbbBoard::initAbbBoard(), sp605::OpticBoard::initAbbBoard(), roc::Board::IsOpticAddress(), base::Url::IsValid(), base::roleControl, base::roleDAQ, base::roleNone, base::roleObserver, base::roleToString(), sp605::OpticBoard::setReadout(), roc::AbbBoard::setReadout(), roc::typeAbbDevice, roc::AbbDevice::UndefinedOpticPath, and roc::xmlBoardAddr.
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.
base::BoardFactory * base::BoardFactory::gArr [static, protected, inherited] |
{ 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().