21 TCPSocketParam(
const std::string& name,
const std::string& addr, uint port ) : inst_name( name ), \
26 inst_name = sock_param.inst_name;
27 ip_addr = sock_param.ip_addr;
28 port_addr = sock_param.port_addr;
33 friend std::ostream& operator << (std::ostream& stream,
TCPSocketParam& param) {
35 stream << param.inst_name <<
"," \
36 << param.ip_addr <<
"," \
42 std::string inst_name;
47 template<
typename T >
50 data_triple( T cav_len, T freq, T power ) : cavity_length( cav_len ),\
51 frequency_MHz( freq ), \
53 static_assert( std::is_floating_point<T>::value,
"data_triple must be initialized with floating point type.");
57 cavity_length = triple.cavity_length;
58 frequency_MHz = triple.frequency_MHz;
59 power_dBm = triple.power_dBm;
64 friend std::ostream& operator << (std::ostream& stream,
const data_triple& triple) {
66 stream << triple.cavity_length <<
"," \
67 << triple.frequency_MHz <<
","\
74 friend std::ofstream& operator << (std::ofstream& stream,
const data_triple& triple) {
76 stream << triple.cavity_length <<
"," \
77 << triple.frequency_MHz <<
","\
Definition: configprocessor.h:38
Definition: generics.h:48