Class Bus

Class Documentation

class Bus

Inteface class for felix-bus (medium for e-link advertisement)

Public Functions

explicit Bus(const std::string &bus_dir, const std::string &bus_group, int dmaid, bool verbose)

Felix-bus constructor. The bus filename is generated automatically using the DMA buffer identifier.

Parameters:
  • bus_dir -- bus directory.

  • bus_group -- bus group name.

  • dmaid -- DMA buffer number.

  • verbose -- option for the felix-bus.

explicit Bus(const std::string &bus_dir, const std::string &bus_group, const std::string &filename, bool verbose)

Felix-bus constructor with ad-hoc filename.

Parameters:
  • bus_dir -- bus directory.

  • bus_group -- bus group name.

  • filename -- bus file name, to set a custom file name.

  • verbose -- option for the felix-bus.

Bus(const Bus&) = delete
Bus &operator=(const Bus&) = delete
bool publish(std::span<const felixbus::FelixBusElinkInfo> data)

Publish on the current bus a list of e-links

Parameters:

data -- vector of e-links with information to publish.