ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Functions
a
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
w
Variables
a
c
e
h
i
k
l
m
n
p
r
s
t
v
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
w
~
Variables
a
b
c
d
e
f
h
i
j
k
l
m
n
o
p
r
s
t
v
w
Typedefs
a
c
d
e
h
k
m
p
r
s
t
v
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
b
c
d
e
g
j
m
o
p
s
t
Functions
c
m
o
p
s
t
Variables
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
common
daqifSupport
src
include
daqif
parsing.hpp
Go to the documentation of this file.
1
/**
2
* @file
3
* @ingroup daq_ocm_libdaqif_suppport
4
* @copyright 2022 ESO - European Southern Observatory
5
*
6
* @brief Contains parse functions for daqif
7
*/
8
#ifndef OCMIF_PARSING_HPP_
9
#define OCMIF_PARSING_HPP_
10
#include <Daqif.hpp>
11
#include <string_view>
12
13
14
namespace
daqif
{
15
16
template
<
class
To>
17
To
FromString
(std::string_view input);
18
19
/**
20
* Parse state name.
21
*
22
* @returns State if the case-insensitive name matches a valid state.
23
* @throws std::invalid_argument if no state matches.
24
*/
25
template
<>
26
DaqState
FromString<DaqState>
(std::string_view state);
27
28
/**
29
* Parse sub-state name.
30
*
31
* @returns State if the case-insensitive name matches a valid state.
32
* @throws std::invalid_argument if no state matches.
33
*/
34
template
<>
35
DaqSubState
FromString<DaqSubState>
(std::string_view state);
36
37
}
38
#endif // #ifndef OCMIF_PARSING_HPP_
daqif
Definition:
parsing.hpp:14
daqif::FromString< DaqState >
DaqState FromString< DaqState >(std::string_view state)
Parse state name.
Definition:
parsing.cpp:20
daqif::FromString< DaqSubState >
DaqSubState FromString< DaqSubState >(std::string_view state)
Parse sub-state name.
Definition:
parsing.cpp:34
daqif::FromString
To FromString(std::string_view input)
Generated by
1.8.20