development/Common/Utility/source/ObjectDataParser.cpp
// add bool to specify if we want to include siblings of original node (pCurrSection)
add bool to specify if we want to include siblings of original node (pCurrSection)
add bool to specify if we want to include siblings of original node ( pCurrSection )
bool FindAllSections(wxXmlNode *pCurrSection, xml::vNodeList_t& sectionList)
{
    size_t numLastSections = sectionList.size();
    if (pCurrSection->GetType() == wxXML_ELEMENT_NODE)
    {
        sectionList.push_back(pCurrSection);
    }
    if (pCurrSection->GetChildren())
    {
        FindAllSections(pCurrSection->GetChildren(), sectionList);
    }
    if (pCurrSection->GetNext())
    {
        FindAllSections(pCurrSection->GetNext(), sectionList);
    }
    return sectionList.size() > numLastSections;
}
bool FindAllSections ( wxXmlNode * pCurrSection , xml :: vNodeList_t & sectionList ) { size_t numLastSections = sectionList . size ( ) ; if ( pCurrSection -> GetType ( ) == wxXML_ELEMENT_NODE ) { sectionList . push_back ( pCurrSection ) ; } if ( pCurrSection -> GetChildren ( ) ) { FindAllSections ( pCurrSection -> GetChildren ( ) , sectionList ) ; } if ( pCurrSection -> GetNext ( ) ) { FindAllSections ( pCurrSection -> GetNext ( ) , sectionList ) ; } return sectionList . size ( ) > numLastSections ; }
add bool to specify if we want to include siblings of original node (pCurrSection)
add bool to specify if we want to include siblings of original node ( pCurrSection )