class for storing and mapping per-channel control quantities (a typical task for fourfit control files)
More...
#include <MHO_ChannelQuantity.hh>
|
std::map< std::string, double > | MapChannelQuantities (std::string chan_names, std::vector< double > &values) |
| Maps channel names to corresponding values and returns a map. if the number of channel names isn't the same as the number of values, this returns an empty map. More...
|
|
class for storing and mapping per-channel control quantities (a typical task for fourfit control files)
- Date
- Thu Jun 8 13:56:30 2023 -0400
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
◆ MHO_ChannelQuantity()
hops::MHO_ChannelQuantity::MHO_ChannelQuantity |
( |
| ) |
|
|
inline |
◆ ~MHO_ChannelQuantity()
hops::MHO_ChannelQuantity::~MHO_ChannelQuantity |
( |
| ) |
|
|
inline |
◆ MapChannelQuantities()
std::map< std::string, double > hops::MHO_ChannelQuantity::MapChannelQuantities |
( |
std::string |
chan_names, |
|
|
std::vector< double > & |
values |
|
) |
| |
|
protected |
Maps channel names to corresponding values and returns a map. if the number of channel names isn't the same as the number of values, this returns an empty map.
- Parameters
-
chan_names | Input string containing comma-separated (or concatenated 1-character, with no space) channel names. |
values | Reference to input vector of double values. |
- Returns
- Map with channel names as keys and corresponding values.
The documentation for this class was generated from the following files: