Changeset 117 for osgVisual/src/extLink


Ignore:
Timestamp:
Aug 23, 2010, 7:15:04 PM (14 years ago)
Author:
Torben Dannhauer
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/src/extLink/dataIO_extLinkVCL.cpp

    r116 r117  
    187187                if(cur_node->type == XML_ELEMENT_NODE && node_name == "CONFIGURATION")
    188188                {
    189                         std::cout << "XML node CONFIGURATION found" << std::endl;
     189                        //OSG_DEBUG << "XML node CONFIGURATION found" << std::endl;
    190190                        configFileValid = true;
    191191                }
     
    193193        if (cur_node->type == XML_ELEMENT_NODE && node_name == "CHANNEL")
    194194                {
    195                         std::cout << "XML node CHANNEL found" << std::endl;
     195                        //OSG_DEBUG << "XML node CHANNEL found" << std::endl;
    196196
    197197                        // Extract channel infos like name, direction and extract channels
     
    213213                        addChannels(cur_node->children, name, direction );
    214214       
    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;
    217217        }       // IF(CHANNEL) END
    218218
     
    231231        for (xmlNode *cur_node = a_node; cur_node; cur_node = cur_node->next)
    232232        {
    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
    236237                std::string entryName;
    237238                xmlAttr  *attr = cur_node->properties;
     
    241242                        if( attr_name == "name" )
    242243                                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;
    244245                        attr = attr->next;
    245246                }
     
    250251
    251252                // Attach VCL variable to channel:
     253                //OSG_DEBUG << "attaching.... name: " << channelName_ << ", entryName: " << entryName << std::endl;
    252254                if( !tmp->Attach(channelName_.c_str(), entryName.c_str() ) )
    253255                        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.