13 namespace config_parser {
 
   19   config.
udp_ip_address = config_tree.get<std::string>(
"UdpIpAddress");
 
   20   config.udp_broadcast_address = config_tree.get<std::string>(
"UdpBroadcastAddress");
 
   22   config.num_of_conversation = config_tree.get<std::uint8_t>(
"Conversation.NumberOfConversation");
 
   24   for (boost_support::parser::boost_tree::value_type &conversation_ptr:
 
   25        config_tree.get_child(
"Conversation.ConversationProperty")) {
 
   27     conversation.
conversation_name = conversation_ptr.second.get<std::string>(
"ConversationName");
 
   28     conversation.p2_client_max = conversation_ptr.second.get<std::uint16_t>(
"P2ClientMax");
 
   29     conversation.p2_star_client_max = conversation_ptr.second.get<std::uint16_t>(
"P2StarClientMax");
 
   30     conversation.rx_buffer_size = conversation_ptr.second.get<std::uint16_t>(
"RxBufferSize");
 
   31     conversation.source_address = conversation_ptr.second.get<std::uint16_t>(
"SourceAddress");
 
   32     conversation.network.tcp_ip_address =
 
   33         conversation_ptr.second.get<std::string>(
"Network.TcpIpAddress");
 
   34     conversation.network.tls_handling = conversation_ptr.second.get<
bool>(
"Network.TlsHandling");
 
   35     config.conversations.emplace_back(conversation);
 
boost::property_tree::ptree boost_tree
Type alias for boost property tree.
 
diag::client::config_parser::DcmClientConfig ReadDcmClientConfig(boost_support::parser::boost_tree &config_tree)
Function to read from config tree and get the DcmClient configuration.
 
std::string conversation_name
 
std::string udp_ip_address