Beispiel #1
0
        bool addSection( std::string const& name ) {
            if( m_runStatus == NothingRun )
                m_runStatus = EncounteredASection;
            
            RunningSection* thisSection = m_currentSection->findOrAddSubSection( name, m_changed );

            if( !wasSectionSeen() && thisSection->shouldRun() ) {
                m_currentSection = thisSection;
                m_lastSectionToRun = NULL;
                return true;
            }
            return false;
        }
 bool addSection( const std::string& name ) {
     if( m_runStatus == NothingRun )
         m_runStatus = EncounteredASection;
     
     SectionInfo* thisSection = m_currentSection->findSubSection( name );
     if( !thisSection ) {
         thisSection = m_currentSection->addSubSection( name );
         m_changed = true;
     }
     
     if( !wasSectionSeen() && thisSection->shouldRun() ) {
         m_currentSection = thisSection;
         m_lastSectionToRun = NULL;
         return true;
     }
     return false;
 }