tdaq-develop-2025-02-12
ots::ARTDAQDispatcherTable Class Reference
Inheritance diagram for ots::ARTDAQDispatcherTable:
ots::ARTDAQTableBase ots::SlowControlsTableBase ots::TableBase ots::TableBase

Public Member Functions

void init (ConfigurationManager *configManager) override
 Methods.
 
virtual unsigned int slowControlsHandlerConfig (std::stringstream &out, ConfigurationManager *configManager, std::vector< std::pair< std::string, std::vector< std::string >>> *channelList) const override
 
virtual std::string setFilePath () const override
 return out file path
 
- Public Member Functions inherited from ots::ARTDAQTableBase
 ARTDAQTableBase ()
 
 ARTDAQTableBase (std::string tableName, std::string *accumulatedExceptions=0)
 
- Public Member Functions inherited from ots::TableBase
 TableBase (bool specialTable, const std::string &specialTableName)
 
 TableBase (const std::string &tableName, std::string *accumulatedExceptions=0)
 
virtual ~TableBase (void)
 
void destroy (void)
 
void reset (bool keepTemporaryVersions=false)
 
void deactivate (void)
 
bool isActive (void)
 isActive
 
void print (std::ostream &out=std::cout) const
 always prints active view
 
std::string getTypeId (void)
 
void setupMockupView (TableVersion version)
 
void changeVersionAndActivateView (TableVersion temporaryVersion, TableVersion version)
 
bool isStored (const TableVersion &version) const
 
bool eraseView (TableVersion version)
 
void trimCache (unsigned int trimSize=-1)
 
void trimTemporary (TableVersion targetVersion=TableVersion())
 
TableVersion checkForDuplicate (TableVersion needleVersion, TableVersion ignoreVersion=TableVersion()) const
 
bool diffTwoVersions (TableVersion v1, TableVersion v2, std::stringstream *diffReport=0, std::map< std::string, std::vector< std::string >> *v1ModifiedRecords=0) const
 
const std::string & getTableName (void) const
 Getters.
 
const std::string & getTableDescription (void) const
 
std::set< TableVersiongetStoredVersions (void) const
 
const TableViewgetView (TableVersion version=TableVersion(TableVersion::INVALID)) const
 
TableViewgetViewP (TableVersion version=TableVersion(TableVersion::INVALID))
 
TableViewgetMockupViewP (void)
 
const TableVersiongetViewVersion (void) const
 always the active one
 
TableViewgetTemporaryView (TableVersion temporaryVersion)
 
TableVersion getNextTemporaryVersion (void) const
 
TableVersion getNextVersion (void) const
 
virtual std::string getStructureStatusAsJSON (ConfigurationManager *configManager) const
 
void setTableName (const std::string &tableName)
 Setters.
 
void setTableDescription (const std::string &tableDescription)
 
bool setActiveView (TableVersion version)
 
TableVersion copyView (const TableView &sourceView, TableVersion destinationVersion, const std::string &author, bool looseColumnMatching=false)
 
TableVersion mergeViews (const TableView &sourceViewA, const TableView &sourceViewB, TableVersion destinationVersion, const std::string &author, const std::string &mergeApproach, std::map< std::pair< std::string, std::string >, std::string > &uidConversionMap, std::map< std::pair< std::string, std::pair< std::string, std::string > >, std::string > &groupidConversionMap, bool fillRecordConversionMaps, bool applyRecordConversionMaps, bool generateUniqueDataColumns=false, std::stringstream *mergeRepoert=nullptr)
 
TableVersion createTemporaryView (TableVersion sourceViewVersion=TableVersion(), TableVersion destTemporaryViewVersion=TableVersion::getNextTemporaryVersion())
 source of -1, from MockUp, else from valid view version More...
 
bool latestAndMockupColumnNumberMismatch (void) const
 
unsigned int getNumberOfStoredViews (void) const
 
- Public Member Functions inherited from ots::SlowControlsTableBase
 SlowControlsTableBase (void)
 
 SlowControlsTableBase (std::string tableName, std::string *accumulatedExceptions=0)
 
virtual bool slowControlsChannelListHasChanged (void) const
 Getters.
 
virtual void getSlowControlsChannelList (std::vector< std::pair< std::string, std::vector< std::string >>> &channelList) const
 
virtual bool outputEpicsPVFile (ConfigurationManager *configManager, std::vector< std::pair< std::string, std::vector< std::string >>> *channelList=0) const
 use table name to have different file names! (instead of DEFINES like in DTC) More...
 
virtual unsigned int slowControlsHandler (std::stringstream &out, std::string &tabStr, std::string &commentStr, std::string &subsystem, std::string &location, ConfigurationTree slowControlsLink, std::vector< std::pair< std::string, std::vector< std::string >>> *channelList) const
 

Additional Inherited Members

- Public Types inherited from ots::ARTDAQTableBase
enum class  ARTDAQAppType {
  BoardReader , EventBuilder , DataLogger , Dispatcher ,
  Monitor , RoutingManager
}
 
enum  { DEFAULT_MAX_FRAGMENT_SIZE = 1048576 , DEFAULT_ROUTING_TIMEOUT_MS = 1000 , DEFAULT_ROUTING_RETRY_COUNT = 5 }
 
- Static Public Member Functions inherited from ots::ARTDAQTableBase
static const std::string & getTypeString (ARTDAQAppType type)
 
static std::string getFHICLFilename (ARTDAQAppType type, const std::string &name)
 
static std::string getFlatFHICLFilename (ARTDAQAppType type, const std::string &name)
 
static void flattenFHICL (ARTDAQAppType type, const std::string &name)
 
static void insertParameters (std::ostream &out, std::string &tabStr, std::string &commentStr, ConfigurationTree parameterLink, const std::string &parameterPreamble, bool onlyInsertAtTableParameters=false, bool includeAtTableParameters=false)
 
static std::string insertModuleType (std::ostream &out, std::string &tabStr, std::string &commentStr, ConfigurationTree moduleTypeNode)
 
static void insertMetricsBlock (std::ostream &out, std::string &tabStr, std::string &commentStr, ConfigurationTree daqNode)
 insertMetricsBlock
 
static void insertArtProcessBlock (std::ostream &out, std::string &tabStr, std::string &commentStr, ConfigurationTree art, ConfigurationTree subsystemLink=ConfigurationTree(), size_t routingTimeoutMs=DEFAULT_ROUTING_TIMEOUT_MS, size_t routingRetryCount=DEFAULT_ROUTING_RETRY_COUNT)
 
static void outputBoardReaderFHICL (const ConfigurationTree &boardReaderNode, size_t maxFragmentSizeBytes=DEFAULT_MAX_FRAGMENT_SIZE, size_t routingTimeoutMs=DEFAULT_ROUTING_TIMEOUT_MS, size_t routingRetryCount=DEFAULT_ROUTING_RETRY_COUNT)
 
static void outputDataReceiverFHICL (const ConfigurationTree &receiverNode, ARTDAQAppType appType, size_t maxFragmentSizeBytes=DEFAULT_MAX_FRAGMENT_SIZE, size_t routingTimeoutMs=DEFAULT_ROUTING_TIMEOUT_MS, size_t routingRetryCount=DEFAULT_ROUTING_RETRY_COUNT)
 
static void outputRoutingManagerFHICL (const ConfigurationTree &routingManagerNode, size_t routingTimeoutMs=DEFAULT_ROUTING_TIMEOUT_MS, size_t routingRetryCount=DEFAULT_ROUTING_RETRY_COUNT)
 
static void outputOnlineMonitorFHICL (const ConfigurationTree &onlineMonitorNode)
 
static bool isARTDAQEnabled (const ConfigurationManager *cfgMgr)
 isARTDAQEnabled
 
static const ARTDAQInfoextractARTDAQInfo (ConfigurationTree artdaqSupervisorNode, bool getStatusFalseNodes=false, bool doWriteFHiCL=false, size_t maxFragmentSizeBytes=DEFAULT_MAX_FRAGMENT_SIZE, size_t routingTimeoutMs=DEFAULT_ROUTING_TIMEOUT_MS, size_t routingRetryCount=DEFAULT_ROUTING_RETRY_COUNT, ProgressBar *progressBar=0)
 
static const ARTDAQInfogetARTDAQSystem (ConfigurationManagerRW *cfgMgr, std::map< std::string, std::map< std::string, std::vector< std::string >>> &nodeTypeToObjectMap, std::map< std::string, std::string > &subsystemObjectMap, std::vector< std::string > &artdaqSupervisoInfo)
 
static void setAndActivateARTDAQSystem (ConfigurationManagerRW *cfgMgr, const std::map< std::string, std::map< std::string, std::vector< std::string >>> &nodeTypeToObjectMap, const std::map< std::string, std::string > &subsystemObjectMap)
 
- Static Public Member Functions inherited from ots::TableBase
static std::string convertToCaps (std::string &str, bool isConfigName=false)
 
- Public Attributes inherited from ots::TableBase
const unsigned int MAX_VIEWS_IN_CACHE
 
- Public Attributes inherited from ots::SlowControlsTableBase
struct ots::SlowControlsTableBase::ColChannel channelColNames_
 
bool isFirstAppInContext_ = false
 for managing if PV list has changed
 
bool channelListHasChanged_ = false
 for managing if PV list has changed
 
ConfigurationManagerlastConfigManager_ = nullptr
 
- Static Public Attributes inherited from ots::ARTDAQTableBase
static const std::string ARTDAQ_FCL_PATH = std::string(__ENV__("USER_DATA")) + "/" + "ARTDAQConfigurations/"
 
static const std::string ARTDAQ_SUPERVISOR_CLASS = "ots::ARTDAQSupervisor"
 
static const std::string ARTDAQ_SUPERVISOR_TABLE = "ARTDAQSupervisorTable"
 
static const std::string ARTDAQ_READER_TABLE = "ARTDAQBoardReaderTable"
 
static const std::string ARTDAQ_BUILDER_TABLE = "ARTDAQEventBuilderTable"
 
static const std::string ARTDAQ_LOGGER_TABLE = "ARTDAQDataLoggerTable"
 
static const std::string ARTDAQ_DISPATCHER_TABLE = "ARTDAQDispatcherTable"
 
static const std::string ARTDAQ_MONITOR_TABLE = "ARTDAQMonitorTable"
 
static const std::string ARTDAQ_ROUTER_TABLE = "ARTDAQRoutingManagerTable"
 
static const std::string ARTDAQ_SUBSYSTEM_TABLE = "ARTDAQSubsystemTable"
 
static const std::string ARTDAQ_DAQ_TABLE = "ARTDAQDaqTable"
 
static const std::string ARTDAQ_DAQ_PARAMETER_TABLE = "ARTDAQDaqParameterTable"
 
static const std::string ARTDAQ_TYPE_TABLE_HOSTNAME = "ExecutionHostname"
 
static const std::string ARTDAQ_TYPE_TABLE_ALLOWED_PROCESSORS = "AllowedProcessors"
 
static const std::string ARTDAQ_TYPE_TABLE_SUBSYSTEM_LINK = "SubsystemLink"
 
static const std::string ARTDAQ_TYPE_TABLE_SUBSYSTEM_LINK_UID = "SubsystemLinkUID"
 
static const int NULL_SUBSYSTEM_DESTINATION = 0
 
static const std::string NULL_SUBSYSTEM_DESTINATION_LABEL = "nullDestinationSubsystem"
 
static struct ots::ARTDAQTableBase::ProcessTypes processTypes_
 Note!!!! processTypes_ must be instantiate after the static artdaq table names (to construct map in constructor in .h)
 
static struct ots::ARTDAQTableBase::ColARTDAQSupervisor colARTDAQSupervisor_
 
static struct ots::ARTDAQTableBase::ColARTDAQSubsystem colARTDAQSubsystem_
 
static struct ots::ARTDAQTableBase::ColARTDAQReader colARTDAQReader_
 
static struct ots::ARTDAQTableBase::ColARTDAQNotReader colARTDAQNotReader_
 
static struct ots::ARTDAQTableBase::ColARTDAQDaq colARTDAQDaq_
 
static struct ots::ARTDAQTableBase::ColARTDAQDaqParameter colARTDAQDaqParameter_
 
- Static Public Attributes inherited from ots::TableBase
static const std::string GROUP_CACHE_PREPEND = "GroupCache_"
 
static const std::string JSON_DOC_PREPEND = "JSONDoc_"
 
- Protected Attributes inherited from ots::TableBase
std::string tableName_
 
std::string tableDescription_
 
TableViewactiveTableView_
 
TableView mockupTableView_
 
std::map< TableVersion, TableViewtableViews_
 

Detailed Description

Definition at line 11 of file ARTDAQDispatcherTable.h.


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