Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5947 in orxonox.OLD for trunk/src/lib/parser


Ignore:
Timestamp:
Dec 7, 2005, 12:52:29 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/parser/ini_parser/ini_parser.cc

    r5946 r5947  
    155155      if ( (*lineBegin == '#' || *lineBegin == ';'))
    156156      {
    157         printf("___________%d_____%s\n", lineCount,lineBegin);
    158157        char* newCommenLine = new char[strlen(lineBegin)+1];
    159158        strcpy(newCommenLine, lineBegin);
     
    303302}
    304303
    305 
     304/**
     305 *
     306 */
    306307void IniParser::setSectionComment(const char* comment, const char* sectionName)
    307308{
    308309
    309 }
    310 
    311 
     310
     311}
     312
     313/**
     314 *
     315 */
    312316const char* IniParser::getSectionComment(const char* sectionName) const
    313317{
     
    432436}
    433437
    434 
     438/**
     439 * Set the Comment of a specified Entry.
     440 */
    435441const char* IniParser::setEntryComment(const char* comment, const char* entryName, const char* sectionName)
    436442{
     
    439445}
    440446
    441 
     447/**
     448 *
     449 */
    442450const char* IniParser::getEntryComment(const char* entryName, const char* sectionName) const
    443451{
     
    519527
    520528
     529/**
     530 *
     531 */
    521532std::list<IniParser::IniSection>::const_iterator IniParser::getSectionIT(const char* sectionName) const
    522533{
     
    538549}
    539550
    540 
     551/**
     552 *
     553 */
    541554std::list<IniParser::IniEntry>::const_iterator IniParser::getEntryIT(const char* entryName, const char* sectionName) const
    542555{
     
    548561
    549562
     563/**
     564 * takes lines together to form one FileComment, ereasing the commentList
     565 */
    550566void IniParser::setFileComment()
    551567{
     
    572588    delete[] this->commentList.front();
    573589    this->commentList.pop_front();
    574     printf("this->comment:: %s\n", this->comment);
    575   }
    576 }
    577 
     590  }
     591}
     592
     593/**
     594 * takes lines together to form one SectionComment, ereasing the commentList
     595 */
    578596void IniParser::setSectionComment()
    579597{
     
    600618    delete[] this->commentList.front();
    601619    this->commentList.pop_front();
    602     printf("this->comment:: %s", (*this->currentSection).comment);
    603   }
    604 }
    605 
     620  }
     621}
     622
     623/**
     624 * takes lines together to form one EntryComment, ereasing the commentList
     625 */
    606626void IniParser::setEntryComment()
    607627{
     
    628648    delete[] this->commentList.front();
    629649    this->commentList.pop_front();
    630     printf("=======this->comment:: %s\n", (*this->currentEntry).comment);
    631650  }
    632651
Note: See TracChangeset for help on using the changeset viewer.