ifw-daq
3.0.0-pre2
IFW Data Acquisition modules
|
Classes | |
struct | FullState |
Describes the full state and substate. More... | |
struct | Subscription |
Subscription. More... | |
struct | DaqReplyFake |
struct | DaqStatusFake |
struct | AwaitDaqReplyFake |
struct | StorageStatusFake |
struct | DaqReplyMock |
struct | DaqStatusMock |
Functions | |
template<class To > | |
To | FromString (std::string_view input) |
template<> | |
DaqState | FromString< DaqState > (std::string_view state) |
Parse state name. More... | |
template<> | |
DaqSubState | FromString< DaqSubState > (std::string_view state) |
Parse sub-state name. More... | |
bool | operator== (FullState lhs, FullState rhs) noexcept |
Equality operator for FullState. More... | |
bool | IsStateValid (DaqState state, DaqSubState substate) |
Validate state combination. More... | |
bool | IsStateValid (FullState state) |
Validate state combination. More... | |
template<class TopicType , class Func > | |
auto | MakeSubscription (elt::mal::Mal &mal, elt::mal::Uri const &uri, Func &&func) -> Subscription< TopicType > |
Builder for Subscription. More... | |
network::uri | MakeServerUri (std::string uri) |
Creates a server URI. More... | |
network::uri | MakeServiceUri (std::string base_uri, std::string_view service_path) |
Creates a service URI of the form <baseuri>/<service>. More... | |
struct daqif::FullState |
struct daqif::Subscription |
Definition at line 23 of file subscription.hpp.
Class Members | ||
---|---|---|
unique_ptr< Subscriber< TopicType > > | subscriber | |
unique_ptr< Subscription > | subscription |
To daqif::FromString | ( | std::string_view | input | ) |
DaqState daqif::FromString< DaqState > | ( | std::string_view | state | ) |
Parse state name.
std::invalid_argument | if no state matches. |
Definition at line 20 of file parsing.cpp.
DaqSubState daqif::FromString< DaqSubState > | ( | std::string_view | state | ) |
Parse sub-state name.
std::invalid_argument | if no state matches. |
Definition at line 34 of file parsing.cpp.
bool daqif::IsStateValid | ( | DaqState | state, |
DaqSubState | substate | ||
) |
bool daqif::IsStateValid | ( | FullState | state | ) |
network::uri daqif::MakeServerUri | ( | std::string | uri | ) |
network::uri daqif::MakeServiceUri | ( | std::string | base_uri, |
std::string_view | service_path | ||
) |
Creates a service URI of the form <baseuri>/<service>.
base_uri | Base URI in the expected form e.g. "<URI>" or "<URI>/". |
service_path | URI path element in the form "<path>" or "/<path>". |
auto daqif::MakeSubscription | ( | elt::mal::Mal & | mal, |
elt::mal::Uri const & | uri, | ||
Func && | func | ||
) | -> Subscription<TopicType> |
Builder for Subscription.
Definition at line 32 of file subscription.hpp.