From d6923be4bd2e198b4cba161e8040072128bd392c Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 14 Feb 2014 15:46:54 +0100 Subject: make DabComponent a class and make its label RC controllable --- src/ParserConfigfile.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/ParserConfigfile.cpp') diff --git a/src/ParserConfigfile.cpp b/src/ParserConfigfile.cpp index a6bbe63..d5dba9e 100644 --- a/src/ParserConfigfile.cpp +++ b/src/ParserConfigfile.cpp @@ -333,7 +333,7 @@ void parse_configfile(string configuration_file, } /******************** READ COMPONENT PARAMETERS ************/ - map allcomponents; + map allcomponents; ptree pt_components = pt.get_child("components"); for (ptree::iterator it = pt_components.begin(); it != pt_components.end(); ++it) { string componentuid = it->first; @@ -378,9 +378,8 @@ void parse_configfile(string configuration_file, int packet_address = hexparse(pt_comp.get("address", "-1")); uint8_t component_type = hexparse(pt_comp.get("type", "0")); - dabComponent* component = new dabComponent(); + DabComponent* component = new DabComponent(componentuid); - memset(component, 0, sizeof(dabComponent)); component->serviceId = service->id; component->subchId = subchannel->id; component->SCIdS = SCIdS_per_service[service]++; -- cgit v1.2.3