artdaq  v3_09_01
artdaq::RTIDDS Class Reference

DDS Transport Implementation. More...

#include <artdaq/RTIDDS/RTIDDS.hh>

Classes

class  OctetsListener
 A class that reads data from DDS. More...
 

Public Types

enum  IOType { reader, writer }
 Whether this DDS instance is a reader or a writer.
 

Public Member Functions

 RTIDDS (std::string name, IOType iotype, std::string max_size="1000000")
 Construct a RTIDDS transmitter. More...
 
virtual ~RTIDDS ()=default
 Default virtrual Destructor.
 
void transfer_fragment_min_blocking_mode_via_DDS_ (artdaq::Fragment const &fragment)
 Copy a Fragment to DDS. More...
 
void transfer_fragment_reliable_mode_via_DDS_ (artdaq::Fragment &&fragment)
 Move a Fragment to DDS. More...
 

Public Attributes

OctetsListener octets_listener_
 The receiver.
 

Detailed Description

DDS Transport Implementation.

Definition at line 19 of file RTIDDS.hh.

Constructor & Destructor Documentation

artdaq::RTIDDS::RTIDDS ( std::string  name,
IOType  iotype,
std::string  max_size = "1000000" 
)

Construct a RTIDDS transmitter.

Parameters
nameName of the module
iotypeDirection of transmission
max_sizeMaximum size to transmit

Definition at line 10 of file RTIDDS.cc.

Member Function Documentation

void artdaq::RTIDDS::transfer_fragment_min_blocking_mode_via_DDS_ ( artdaq::Fragment const &  fragment)

Copy a Fragment to DDS.

Parameters
fragmentFragment to copy

This function may be non-reliable, and induces a memcpy of the Fragment

Definition at line 108 of file RTIDDS.cc.

void artdaq::RTIDDS::transfer_fragment_reliable_mode_via_DDS_ ( artdaq::Fragment &&  fragment)

Move a Fragment to DDS.

Parameters
fragmentFragment to move

This function should be reliable, and minimize copies. Currently implemented via transfer_fragment_min_blocking_mode_via_DDS_

Definition at line 106 of file RTIDDS.cc.


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