Changeset 117 for osgVisual/src/extLink
- Timestamp:
- Aug 23, 2010, 7:15:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
osgVisual/src/extLink/dataIO_extLinkVCL.cpp
r116 r117 187 187 if(cur_node->type == XML_ELEMENT_NODE && node_name == "CONFIGURATION") 188 188 { 189 std::cout<< "XML node CONFIGURATION found" << std::endl;189 //OSG_DEBUG << "XML node CONFIGURATION found" << std::endl; 190 190 configFileValid = true; 191 191 } … … 193 193 if (cur_node->type == XML_ELEMENT_NODE && node_name == "CHANNEL") 194 194 { 195 std::cout<< "XML node CHANNEL found" << std::endl;195 //OSG_DEBUG << "XML node CHANNEL found" << std::endl; 196 196 197 197 // Extract channel infos like name, direction and extract channels … … 213 213 addChannels(cur_node->children, name, direction ); 214 214 215 // printf("node type: Element, name: %s\n", cur_node->name);216 std::cout<< "Processing children at " << cur_node->children << std::endl;215 //OSG_DEBUG << "node type=Element, name:" << cur_node->name << std::endl; 216 //OSG_DEBUG << "Processing children at " << cur_node->children << std::endl; 217 217 } // IF(CHANNEL) END 218 218 … … 231 231 for (xmlNode *cur_node = a_node; cur_node; cur_node = cur_node->next) 232 232 { 233 OSG_ALWAYS << "Found entry!" << std::endl; 234 235 // Extract ENTRY - name 233 if (cur_node->type != XML_ELEMENT_NODE) // only emelent nodes are relevant entries. otherwise skip this iteration. VCL files only contain text nodes in comments or as untrimmed element nodes. 234 continue; 235 236 // Extract ENTRY - name (from the Channel <ENTRY> in the XML file 236 237 std::string entryName; 237 238 xmlAttr *attr = cur_node->properties; … … 241 242 if( attr_name == "name" ) 242 243 entryName = reinterpret_cast<const char*>(attr->children->content); 243 // std::cout<< "Attribute name: " << attr->name << " value: " << attr->children->content << std::endl;244 //OSG_DEBUG << "Attribute name: " << attr->name << " value: " << attr->children->content << std::endl; 244 245 attr = attr->next; 245 246 } … … 250 251 251 252 // Attach VCL variable to channel: 253 //OSG_DEBUG << "attaching.... name: " << channelName_ << ", entryName: " << entryName << std::endl; 252 254 if( !tmp->Attach(channelName_.c_str(), entryName.c_str() ) ) 253 255 OSG_ALWAYS << "ERROR - dataIO_extLinkVCL::addChannels(): unable to attach VCL variable entryName: " << entryName << " to channel: " << channelName_ << std::endl;
Note: See TracChangeset
for help on using the changeset viewer.