47 for(
int i = 0;
i < cfg.nChildren(); ++
i )
49 SGPropertyNode_ptr child = cfg.getChild(
i);
50 std::string cname(child->getNameString());
53 && cname !=
"params" )
60 "Component::configure: unknown node: " << cname);
68 const std::string& cfg_name,
69 SGPropertyNode& prop_root )
71 if ( cfg_name ==
"name" )
73 set_name(cfg_node.getStringValue());
77 if( cfg_name ==
"update-interval-secs" )
81 if ( cfg_name ==
"debug" )
83 _debug = cfg_node.getBoolValue();
87 if ( cfg_name ==
"enable" )
89 SGPropertyNode_ptr prop;
91 if( (prop = cfg_node.getChild(
"condition")) != NULL ) {
92 _condition = sgReadCondition(
fgGetNode(
"/"), prop);
95 if ( (prop = cfg_node.getChild(
"property" )) != NULL ) {
96 _enable_prop =
fgGetNode( prop->getStringValue(),
true );
99 if ( (prop = cfg_node.getChild(
"prop" )) != NULL ) {
100 _enable_prop =
fgGetNode( prop->getStringValue(),
true );
103 if ( (prop = cfg_node.getChild(
"value" )) != NULL ) {
104 delete _enable_value;
105 _enable_value =
new std::string(prop->getStringValue());
108 if ( (prop = cfg_node.getChild(
"honor-passive" )) != NULL ) {