Project
Loading...
Searching...
No Matches
o2::framework::ChannelSpecHelpers Struct Reference

#include <ChannelSpecHelpers.h>

Static Public Member Functions

static char const * typeAsString (enum ChannelType type)
 return a ChannelType as a lowercase string
 
static char const * methodAsString (enum ChannelMethod method)
 return a ChannelMethod as a lowercase string
 
static std::string channelUrl (InputChannelSpec const &)
 
static std::string channelUrl (OutputChannelSpec const &)
 
static void parseChannelConfig (char const *channelConfig, FairMQChannelConfigParser &parser)
 
static std::string defaultIPCFolder ()
 

Detailed Description

A few helpers to convert enums to their actual representation in configuration files / GUI / string based APIs. Never too late for C++ to get multimethods.

Definition at line 43 of file ChannelSpecHelpers.h.

Member Function Documentation

◆ channelUrl() [1/2]

std::string o2::framework::ChannelSpecHelpers::channelUrl ( InputChannelSpec const &  channel)
static
Returns
a url associated to an InputChannelSpec

Definition at line 180 of file ChannelSpecHelpers.cxx.

◆ channelUrl() [2/2]

std::string o2::framework::ChannelSpecHelpers::channelUrl ( OutputChannelSpec const &  channel)
static
Returns
a url associated to an OutputChannelSpec

Definition at line 169 of file ChannelSpecHelpers.cxx.

◆ defaultIPCFolder()

std::string o2::framework::ChannelSpecHelpers::defaultIPCFolder ( )
static

Find out a place where we can write the sockets

Definition at line 330 of file ChannelSpecHelpers.cxx.

◆ methodAsString()

char const * o2::framework::ChannelSpecHelpers::methodAsString ( enum ChannelMethod  method)
static

return a ChannelMethod as a lowercase string

Definition at line 144 of file ChannelSpecHelpers.cxx.

◆ parseChannelConfig()

void o2::framework::ChannelSpecHelpers::parseChannelConfig ( char const *  channelConfig,
FairMQChannelConfigParser parser 
)
static

Parse channelConfig option, invoking the correct method of parser

Definition at line 216 of file ChannelSpecHelpers.cxx.

◆ typeAsString()

char const * o2::framework::ChannelSpecHelpers::typeAsString ( enum ChannelType  type)
static

return a ChannelType as a lowercase string

Definition at line 127 of file ChannelSpecHelpers.cxx.


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