Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
dunecore
dunecore
DuneInterface
Tool
AdcChannelStringTool.h
Go to the documentation of this file.
1
// AdcChannelStringTool.h
2
3
// David Adams
4
// April 2018
5
//
6
// Interface for a tool that builds a string from AdcChannelData,
7
// a DataMap and a string pattern.
8
9
#ifndef AdcChannelStringTool_H
10
#define AdcChannelStringTool_H
11
12
#include "
dunecore/DuneInterface/Data/AdcChannelData.h
"
13
#include "
dunecore/DuneInterface/Data/DataMap.h
"
14
15
class
AdcChannelStringTool
{
16
17
public
:
18
19
using
Index
=
unsigned
int
;
20
21
// Helper function that calls tool from a pointer and returns the
22
// input string if that pointer is null.
23
static
std::string
24
build
(
const
AdcChannelStringTool
* ptool,
25
const
AdcChannelData
& acd,
const
DataMap
& dm,
std::string
spat) {
26
return
ptool ==
nullptr
? spat : ptool->
build
(acd, dm, spat);
27
}
28
29
// Same without data map.
30
static
std::string
31
build
(
const
AdcChannelStringTool
* ptool,
32
const
AdcChannelData
& acd,
std::string
spat) {
33
return
ptool ==
nullptr
? spat : ptool->
build
(acd,
DataMap
(), spat);
34
}
35
36
virtual
~AdcChannelStringTool
() =
default
;
37
38
virtual
std::string
39
build
(
const
AdcChannelData
& acd,
const
DataMap
& dm,
std::string
spat)
const
=0;
40
41
};
42
43
#endif
DataMap.h
string
std::string string
Definition:
nybbler.cc:12
AdcChannelData.h
AdcChannelStringTool::Index
unsigned int Index
Definition:
AdcChannelStringTool.h:19
AdcChannelStringTool::~AdcChannelStringTool
virtual ~AdcChannelStringTool()=default
AdcChannelData
Definition:
AdcChannelData.h:95
AdcChannelStringTool::build
static std::string build(const AdcChannelStringTool *ptool, const AdcChannelData &acd, const DataMap &dm, std::string spat)
Definition:
AdcChannelStringTool.h:24
AdcChannelStringTool::build
static std::string build(const AdcChannelStringTool *ptool, const AdcChannelData &acd, std::string spat)
Definition:
AdcChannelStringTool.h:31
keras_to_tensorflow.int
int
Definition:
keras_to_tensorflow.py:69
AdcChannelStringTool
Definition:
AdcChannelStringTool.h:15
DataMap
Definition:
DataMap.h:43
Generated by
1.8.11