USRP_Server  2.0
A flexible, GPU-accelerated radio-frequency readout software.
USRP_JSON_interpreter.cpp File Reference
Include dependency graph for USRP_JSON_interpreter.cpp:

Go to the source code of this file.

Functions

template<typename T >
std::vector< T > as_vector (boost::property_tree::ptree const &pt, boost::property_tree::ptree::key_type const &key, boost::property_tree::ptree::key_type const &sub_key)
 
bool string2param (std::string data, usrp_param &my_parameter)
 
bool is_pfb_active (param ant_parameter)
 
bool chk_param (usrp_param *parameter)
 
std::string server_ack (std::string payload)
 
std::string server_nack (std::string payload)
 

Function Documentation

◆ as_vector()

template<typename T >
std::vector<T> as_vector ( boost::property_tree::ptree const &  pt,
boost::property_tree::ptree::key_type const &  key,
boost::property_tree::ptree::key_type const &  sub_key 
)

Definition at line 5 of file USRP_JSON_interpreter.cpp.

◆ string2param()

bool string2param ( std::string  data,
usrp_param &  my_parameter 
)

Definition at line 19 of file USRP_JSON_interpreter.cpp.

References ant_mode_from_string(), print_error(), and string_to_w_type_vector().

Referenced by Async_server::recv_async().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_pfb_active()

bool is_pfb_active ( param  ant_parameter)

Definition at line 259 of file USRP_JSON_interpreter.cpp.

Referenced by chk_param().

Here is the caller graph for this function:

◆ chk_param()

bool chk_param ( usrp_param *  parameter)

Definition at line 268 of file USRP_JSON_interpreter.cpp.

References is_pfb_active(), print_error(), and print_warning().

Referenced by main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ server_ack()

std::string server_ack ( std::string  payload)

Definition at line 441 of file USRP_JSON_interpreter.cpp.

Referenced by main().

Here is the caller graph for this function:

◆ server_nack()

std::string server_nack ( std::string  payload)

Definition at line 450 of file USRP_JSON_interpreter.cpp.

Referenced by main().

Here is the caller graph for this function: