#include <Board.h>
Public Member Functions | |
virtual bool | IsFactoryFor (const char *url) |
virtual void | ShowDebug (int lvl, const char *msg) |
virtual Board * | DoConnect (const char *name, base::ClientRole role)=0 |
virtual bool | DoClose (Board *brd)=0 |
Static Public Member Functions | |
static Board * | CreateBoard (const char *url, ClientRole role=roleNone) |
static bool | DestroyBoard (base::Board *brd) |
Protected Types | |
enum | { MaxNumFactories = 10 } |
Protected Member Functions | |
BoardFactory () | |
virtual | ~BoardFactory () |
Static Protected Attributes | |
static BoardFactory * | gArr [MaxNumFactories] |
Definition at line 411 of file Board.h.
base::BoardFactory::BoardFactory | ( | ) | [protected] |
base::BoardFactory::~BoardFactory | ( | ) | [protected, virtual] |
base::Board * base::BoardFactory::CreateBoard | ( | const char * | url, | |
ClientRole | role = roleNone | |||
) | [static] |
Definition at line 614 of file Board.cxx.
References DoConnect(), base::Board::fBrdFactory, gArr, and IsFactoryFor().
Referenced by base::Board::Connect().
bool base::BoardFactory::DestroyBoard | ( | base::Board * | brd | ) | [static] |
Definition at line 640 of file Board.cxx.
References DoClose(), and base::Board::fBrdFactory.
Referenced by base::Board::Close().
virtual bool base::BoardFactory::DoClose | ( | Board * | brd | ) | [pure virtual] |
Implemented in roc::AbbFactory, and roc::Factory.
Referenced by DestroyBoard().
virtual Board* base::BoardFactory::DoConnect | ( | const char * | name, | |
base::ClientRole | role | |||
) | [pure virtual] |
Implemented in roc::AbbFactory, and roc::Factory.
Referenced by CreateBoard().
virtual bool base::BoardFactory::IsFactoryFor | ( | const char * | url | ) | [inline, 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 in roc::AbbFactory, and roc::Factory.
Definition at line 425 of file Board.h.
Referenced by CreateBoard().
void base::BoardFactory::ShowDebug | ( | int | lvl, | |
const char * | msg | |||
) | [virtual] |
Reimplemented in roc::AbbFactory, and roc::Factory.
Definition at line 652 of file Board.cxx.
Referenced by base::Board::Debug().
base::BoardFactory * base::BoardFactory::gArr [static, protected] |
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }
Definition at line 416 of file Board.h.
Referenced by BoardFactory(), CreateBoard(), and ~BoardFactory().