artdaq::RTIDDS Class Reference

DDS Transport Implementation. More...

#include <artdaq/RTIDDS/RTIDDS.hh>

List of all members.

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.
virtual ~RTIDDS ()
 Default virtrual Destructor.
void copyFragmentToDDS_ (artdaq::Fragment &fragment)
 Copy a Fragment to DDS.
void moveFragmentToDDS_ (artdaq::Fragment &&fragment)
 Move a Fragment to DDS.

Public Attributes

OctetsListener octets_listener_
 The receiver.

Detailed Description

DDS Transport Implementation.

Definition at line 21 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:
name Name of the module
iotype Direction of transmission
max_size Maximum size to transmit

Definition at line 11 of file RTIDDS.cc.


Member Function Documentation

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

Copy a Fragment to DDS.

Parameters:
fragment Fragment to copy

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

Definition at line 114 of file RTIDDS.cc.

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

Move a Fragment to DDS.

Parameters:
fragment Fragment to move

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

Definition at line 112 of file RTIDDS.cc.


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

Generated on 24 Sep 2018 for artdaq by  doxygen 1.6.1