|
ifw-daq
1.0.0
IFW Data Acquisition modules
|
Classes | |
| struct | AwaitDaqReplyFake |
| struct | DaqReplyFake |
| struct | DaqReplyMock |
| struct | DaqStatusFake |
| struct | DaqStatusMock |
Functions | |
| DaqStatus & | operator<< (DaqStatus &status, daq::Status const &rhs) |
| ocmif::DaqSubState | MakeState (daq::State state) noexcept |
| Converts daq::State to DaqSubstate. More... | |
| daq::State | MakeState (ocmif::DaqSubState state) |
| Converts DaqSubstate to daq::State. More... | |
| std::string_view | ToString (ocmif::DaqState state) noexcept |
| std::string_view | ToString (ocmif::DaqSubState state) noexcept |
| DaqStatus & | operator<< (ocmif::DaqStatus &status, daq::Status const &rhs) |
| Convert daq::Status -> ocmif::DaqStatus by populating rhs. More... | |
| 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... | |
| 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... | |
| To ocmif::FromString | ( | std::string_view | input | ) |
| DaqState ocmif::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 ocmif::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.
| network::uri ocmif::MakeServerUri | ( | std::string | uri | ) |
| network::uri ocmif::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>". |
|
noexcept |
Converts daq::State to DaqSubstate.
Definition at line 32 of file conversion.cpp.
| daq::State ocmif::MakeState | ( | ocmif::DaqSubState | state | ) |
Converts DaqSubstate to daq::State.
This assumes ocmif::DaqState is Acquiring.
| std::invalid_argument | if state is not convertible. |
Definition at line 56 of file conversion.cpp.
| DaqStatus& ocmif::operator<< | ( | DaqStatus & | status, |
| daq::Status const & | rhs | ||
| ) |
Definition at line 17 of file conversion.cpp.
| DaqStatus& ocmif::operator<< | ( | ocmif::DaqStatus & | status, |
| daq::Status const & | rhs | ||
| ) |
Convert daq::Status -> ocmif::DaqStatus by populating rhs.
|
noexcept |
Definition at line 78 of file conversion.cpp.
|
noexcept |
Definition at line 94 of file conversion.cpp.