RTXI  2.4
The Real-Time eXperiment Interface Documentation
Public Member Functions | Static Public Member Functions | Friends
DAQ::Manager Class Reference

#include <daq.h>

Collaboration diagram for DAQ::Manager:
Collaboration graph

Public Member Functions

void foreachDevice (void(*callback)(Device *, void *), void *param)
 
DeviceloadDevice (const std::string &driver, const std::list< std::string > &params)
 

Static Public Member Functions

static ManagergetInstance (void)
 

Friends

class Device
 
class Driver
 

Detailed Description

Provides a central meeting point for interfacing with all DAQ objects available in the system.

See also
DAQ::Device
DAQ::Driver

Definition at line 73 of file daq.h.

Member Function Documentation

◆ foreachDevice()

void DAQ::Manager::foreachDevice(void(*)(Device *, void *) callback,
void * param 
)

Loop through each Device and execute a callback. The callback takes two parameters, a Device pointer and param, the second parameter to foreachDevice.

Parameters
callbackThe callback function
paramA parameter to the callback function.
See also
DAQ::Device

Definition at line 43 of file daq.cpp.

◆ getInstance()

DAQ::Manager * DAQ::Manager::getInstance(void )
static

Manager is a Singleton, which means that there can only be one instance. This function returns a pointer to that single instance.

Returns
The instance of Manager.

Definition at line 129 of file daq.cpp.

◆ loadDevice()

DAQ::Device * DAQ::Manager::loadDevice(const std::string & driver,
const std::list< std::string > & params 
)

Function for creating a device from the specified driver.

Parameters
driverThe driver for the device.
paramsParameters to the driver.
See also
DAQ::Device
DAQ::Driver

Definition at line 52 of file daq.cpp.

Friends And Related Function Documentation

◆ Device

friend class Device
friend

Definition at line 76 of file daq.h.

◆ Driver

friend class Driver
friend

Definition at line 77 of file daq.h.


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