Changeset 5947 in orxonox.OLD for trunk/src/lib/parser
- Timestamp:
- Dec 7, 2005, 12:52:29 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/parser/ini_parser/ini_parser.cc
r5946 r5947 155 155 if ( (*lineBegin == '#' || *lineBegin == ';')) 156 156 { 157 printf("___________%d_____%s\n", lineCount,lineBegin);158 157 char* newCommenLine = new char[strlen(lineBegin)+1]; 159 158 strcpy(newCommenLine, lineBegin); … … 303 302 } 304 303 305 304 /** 305 * 306 */ 306 307 void IniParser::setSectionComment(const char* comment, const char* sectionName) 307 308 { 308 309 309 } 310 311 310 311 } 312 313 /** 314 * 315 */ 312 316 const char* IniParser::getSectionComment(const char* sectionName) const 313 317 { … … 432 436 } 433 437 434 438 /** 439 * Set the Comment of a specified Entry. 440 */ 435 441 const char* IniParser::setEntryComment(const char* comment, const char* entryName, const char* sectionName) 436 442 { … … 439 445 } 440 446 441 447 /** 448 * 449 */ 442 450 const char* IniParser::getEntryComment(const char* entryName, const char* sectionName) const 443 451 { … … 519 527 520 528 529 /** 530 * 531 */ 521 532 std::list<IniParser::IniSection>::const_iterator IniParser::getSectionIT(const char* sectionName) const 522 533 { … … 538 549 } 539 550 540 551 /** 552 * 553 */ 541 554 std::list<IniParser::IniEntry>::const_iterator IniParser::getEntryIT(const char* entryName, const char* sectionName) const 542 555 { … … 548 561 549 562 563 /** 564 * takes lines together to form one FileComment, ereasing the commentList 565 */ 550 566 void IniParser::setFileComment() 551 567 { … … 572 588 delete[] this->commentList.front(); 573 589 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 */ 578 596 void IniParser::setSectionComment() 579 597 { … … 600 618 delete[] this->commentList.front(); 601 619 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 */ 606 626 void IniParser::setEntryComment() 607 627 { … … 628 648 delete[] this->commentList.front(); 629 649 this->commentList.pop_front(); 630 printf("=======this->comment:: %s\n", (*this->currentEntry).comment);631 650 } 632 651
Note: See TracChangeset
for help on using the changeset viewer.