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

roc::Factory Class Reference

#include <Factory.h>

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

Public Member Functions

 Factory (const char *name)
virtual dabc::Application * CreateApplication (const char *classname, dabc::Command cmd)
virtual dabc::Module * CreateModule (const char *classname, const char *modulename, dabc::Command cmd)
virtual dabc::Device * CreateDevice (const char *classname, const char *devname, 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 }

Protected Attributes

dabc::ReferencesVector fDevs

Static Protected Attributes

static BoardFactory * gArr [MaxNumFactories]

Detailed Description

Definition at line 33 of file Factory.h.


Member Enumeration Documentation

anonymous enum [protected, inherited]
Enumerator:
MaxNumFactories 

Definition at line 415 of file Board.h.


Constructor & Destructor Documentation

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

Definition at line 36 of file Factory.cxx.


Member Function Documentation

dabc::Application * roc::Factory::CreateApplication ( const char *  classname,
dabc::Command  cmd 
) [virtual]

Definition at line 43 of file Factory.cxx.

References roc::xmlReadoutAppClass.

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

Definition at line 71 of file Factory.cxx.

References roc::UdpDevice::IsConnected(), and roc::typeUdpDevice.

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

Definition at line 51 of file Factory.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::Factory::DoClose ( base::Board brd  )  [virtual]
base::Board * roc::Factory::DoConnect ( const char *  name,
base::ClientRole  role 
) [virtual]
bool roc::Factory::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 97 of file Factory.cxx.

References roc::Board::IsLmdFileAddress(), and roc::Board::IsUdpAddress().

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

Reimplemented from base::BoardFactory.

Definition at line 91 of file Factory.cxx.


Field Documentation

dabc::ReferencesVector roc::Factory::fDevs [protected]

Definition at line 37 of file Factory.h.

Referenced by DoClose(), and DoConnect().

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: