#include <AbbDevice.h>
Public Types | |
enum | { UndefinedOpticPath = 0xff } |
Public Member Functions | |
AbbDevice (const char *name, const char *thrdname, dabc::Command cmd) | |
virtual | ~AbbDevice () |
virtual const char * | ClassName () const |
bool | IsConnected () const |
virtual dabc::Transport * | CreateTransport (dabc::Command cmd, dabc::Reference port) |
Static Public Member Functions | |
static unsigned | GetOpticPath (const char *abbname) |
static unsigned | GetOpticRetPath (unsigned path) |
Protected Member Functions | |
virtual int | ExecuteCommand (dabc::Command cmd) |
virtual void | ObjectCleanup () |
Protected Attributes | |
AbbContextRef | fContext |
AbbTransport * | fTransport |
bool | fDaqRunning |
std::vector< unsigned > | fPathes |
bool | fUseDlmForStartStopDaq |
Friends | |
class | AbbTransport |
Definition at line 18 of file AbbDevice.h.
anonymous enum |
Definition at line 39 of file AbbDevice.h.
roc::AbbDevice::AbbDevice | ( | const char * | name, | |
const char * | thrdname, | |||
dabc::Command | cmd | |||
) |
Definition at line 28 of file AbbDevice.cxx.
References roc::AbbContextRef::CreateDaemon(), fContext, fUseDlmForStartStopDaq, and roc::xmlUseDLM.
roc::AbbDevice::~AbbDevice | ( | ) | [virtual] |
Definition at line 46 of file AbbDevice.cxx.
const char * roc::AbbDevice::ClassName | ( | ) | const [virtual] |
Definition at line 61 of file AbbDevice.cxx.
References roc::typeAbbDevice.
dabc::Transport * roc::AbbDevice::CreateTransport | ( | dabc::Command | cmd, | |
dabc::Reference | port | |||
) | [virtual] |
Definition at line 420 of file AbbDevice.cxx.
References AbbTransport, base::addr_BoardId, base::addr_HardwareType, roc::AbbContextRef::daemon(), fContext, fPathes, fTransport, GetOpticPath(), GetOpticRetPath(), abbdaemon::ABBdaemonClient::submitGet(), UndefinedOpticPath, and roc::xmlBoardAddr.
int roc::AbbDevice::ExecuteCommand | ( | dabc::Command | cmd | ) | [protected, virtual] |
indicates if DLM 8/9 should be used for start/stop daq
Definition at line 111 of file AbbDevice.cxx.
References roc::AddrPar, roc::CmdReturnBoardPtr::Board(), roc::CmdGetBoardPtr::Board(), roc::AbbContextRef::daemon(), roc::ErrNoPar, fContext, fDaqRunning, fPathes, fTransport, fUseDlmForStartStopDaq, GetOpticPath(), GetOpticRetPath(), roc::AbbBoard::initAbbBoard(), base::Board::kHostError, base::kind_newNX, base::OperList::number(), base::OperList::oper(), base::Board::operErrBuild(), roc::OperListPar, roc::OpticPathPar, PUT_BIT, ROC_CMD_LST_NR, ROC_NX_FIFO_RESET, ROC_OPTICS_START_DAQ, ROC_OPTICS_STOP_DAQ, ROC_ROCID, base::roleControl, base::OperList::setErrorCode(), base::OperList::setErrorOper(), abbdaemon::ABBdaemonClient::submitGet(), abbdaemon::ABBdaemonClient::submitNOper(), abbdaemon::ABBdaemonClient::submitPut(), abbdaemon::ABBdaemonClient::submitPutDLM(), abbdaemon::ABBdaemonClient::submitReset(), UndefinedOpticPath, roc::ValuePar, abbdaemon::ABBexception::what(), and roc::xmlBoardAddr.
unsigned roc::AbbDevice::GetOpticPath | ( | const char * | abbname | ) | [static] |
Definition at line 66 of file AbbDevice.cxx.
References base::Url::GetHostName(), base::Url::GetProtocol(), and UndefinedOpticPath.
Referenced by CreateTransport(), roc::AbbFactory::DoConnect(), and ExecuteCommand().
unsigned roc::AbbDevice::GetOpticRetPath | ( | unsigned | path | ) | [static] |
Definition at line 103 of file AbbDevice.cxx.
References UndefinedOpticPath.
Referenced by CreateTransport(), and ExecuteCommand().
bool roc::AbbDevice::IsConnected | ( | ) | const [inline] |
Definition at line 46 of file AbbDevice.h.
References roc::AbbContextRef::daemon(), and fContext.
Referenced by roc::AbbFactory::CreateDevice().
void roc::AbbDevice::ObjectCleanup | ( | ) | [protected, virtual] |
Definition at line 51 of file AbbDevice.cxx.
References roc::AbbTransport::fDevice, and fTransport.
friend class AbbTransport [friend] |
Definition at line 20 of file AbbDevice.h.
Referenced by CreateTransport().
AbbContextRef roc::AbbDevice::fContext [protected] |
Definition at line 23 of file AbbDevice.h.
Referenced by AbbDevice(), roc::AbbTransport::AbbTransport(), CreateTransport(), ExecuteCommand(), and IsConnected().
bool roc::AbbDevice::fDaqRunning [protected] |
Definition at line 27 of file AbbDevice.h.
Referenced by ExecuteCommand().
std::vector<unsigned> roc::AbbDevice::fPathes [protected] |
Definition at line 29 of file AbbDevice.h.
Referenced by CreateTransport(), and ExecuteCommand().
AbbTransport* roc::AbbDevice::fTransport [protected] |
Definition at line 25 of file AbbDevice.h.
Referenced by CreateTransport(), ExecuteCommand(), ObjectCleanup(), and roc::AbbTransport::~AbbTransport().
bool roc::AbbDevice::fUseDlmForStartStopDaq [protected] |
list of configured board pathes for communication
Definition at line 31 of file AbbDevice.h.
Referenced by AbbDevice(), and ExecuteCommand().