USRP_Server  2.0
A flexible, GPU-accelerated radio-frequency readout software.
USRP_JSON_interpreter.hpp File Reference
#include "USRP_server_settings.hpp"
#include <boost/property_tree/json_parser.hpp>
Include dependency graph for USRP_JSON_interpreter.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USRP_JSON_INCLUDED
 
#define MAX_MSG_LEN   = 10000
 

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="NULL")
 
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)
 

Macro Definition Documentation

◆ USRP_JSON_INCLUDED

#define USRP_JSON_INCLUDED

Definition at line 3 of file USRP_JSON_interpreter.hpp.

◆ MAX_MSG_LEN

#define MAX_MSG_LEN   = 10000

Definition at line 7 of file USRP_JSON_interpreter.hpp.

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 = "NULL" 
)

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: