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

base::BoardFactory Class Reference

#include <Board.h>

Inheritance diagram for base::BoardFactory:
Inheritance graph
[legend]
Collaboration diagram for base::BoardFactory:
Collaboration graph
[legend]

Public Member Functions

virtual bool IsFactoryFor (const char *url)
virtual void ShowDebug (int lvl, const char *msg)
virtual BoardDoConnect (const char *name, base::ClientRole role)=0
virtual bool DoClose (Board *brd)=0

Static Public Member Functions

static BoardCreateBoard (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 BoardFactorygArr [MaxNumFactories]

Detailed Description

Definition at line 411 of file Board.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
MaxNumFactories 

Definition at line 415 of file Board.h.


Constructor & Destructor Documentation

base::BoardFactory::BoardFactory (  )  [protected]

Definition at line 594 of file Board.cxx.

References gArr.

base::BoardFactory::~BoardFactory (  )  [protected, virtual]

Definition at line 605 of file Board.cxx.

References gArr.


Member Function Documentation

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().


Field Documentation

Initial value:
                   { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }

Definition at line 416 of file Board.h.

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


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