Changeset 5944 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Dec 6, 2005, 10:06:10 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 4 added
- 11 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/Makefile.am
r5822 r5944 15 15 network/libORXnet.a \ 16 16 graphics/spatial_separation/libORXquadtree.a \ 17 tinyxml/libtinyxml.a \ 17 parser/tinyxml/libtinyxml.a \ 18 parser/ini_parser/libIniParser.a \ 18 19 shell/libORXshell.a 19 20 … … 29 30 network/libORXnet.a \ 30 31 graphics/spatial_separation/libORXquadtree.a \ 31 tinyxml/libtinyxml.a \32 32 shell/libORXshell.a \ 33 33 $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS) … … 37 37 lang/base_object.cc \ 38 38 lang/class_list.cc \ 39 util/ini_parser.cc \40 39 util/substring.cc \ 41 40 util/color.cc \ … … 53 52 graphics/render2D/render_2d.h \ 54 53 lang/class_list.h \ 55 util/ini_parser.h \56 54 util/substring.h \ 57 55 util/array.h \ … … 75 73 collision_detection \ 76 74 network \ 77 tinyxml\75 parser \ 78 76 shell \ 79 77 gui \ -
trunk/src/lib/event/key_mapper.cc
r5936 r5944 24 24 25 25 #include "globals.h" 26 #include " ini_parser.h"26 #include "parser/ini_parser/ini_parser.h" 27 27 #include "key_names.h" 28 28 #include "debug.h" -
trunk/src/lib/graphics/graphics_engine.cc
r5857 r5944 26 26 #include "debug.h" 27 27 28 #include " ini_parser.h"28 #include "parser/ini_parser/ini_parser.h" 29 29 #include "substring.h" 30 30 #include "text.h" -
trunk/src/lib/graphics/light.cc
r5750 r5944 22 22 #include "glincl.h" 23 23 #include "vector.h" 24 #include " tinyxml.h"24 #include "parser/tinyxml/tinyxml.h" 25 25 #include "load_param.h" 26 26 #include "factory.h" -
trunk/src/lib/graphics/render2D/element_2d.cc
r5783 r5944 23 23 #include "graphics_engine.h" 24 24 #include "load_param.h" 25 #include " tinyxml.h"25 #include "parser/tinyxml/tinyxml.h" 26 26 #include "class_list.h" 27 27 -
trunk/src/lib/gui/gtk_gui/gui_exec.cc
r5938 r5944 27 27 28 28 #include "resource_manager.h" 29 #include " ini_parser.h"29 #include "parser/ini_parser/ini_parser.h" 30 30 31 31 #include <string.h> -
trunk/src/lib/parser/ini_parser/ini_parser.cc
r5943 r5944 24 24 #include <string.h> 25 25 26 #if HAVE_CONFIG_H 27 #include <config.h> 26 #if HAVE_CONFIG_H 27 #include <config.h> 28 28 #endif 29 29 30 30 #ifdef DEBUG 31 #include " debug.h"31 #include "../../../defs/debug.h" 32 32 #else 33 33 #define PRINTF(x) printf … … 68 68 { 69 69 IniSection section = this->sections.front(); 70 70 71 71 // in all entries of the sections 72 72 while(!section.entries.empty()) … … 107 107 108 108 /** 109 * @brief opens a file to parse 109 * @brief opens a file to parse 110 110 * @param fileName: path and name of the new file to parse 111 111 * @return true on success false otherwise; … … 217 217 { 218 218 fprintf(stream, "\n [%s]\n", (*section).name); 219 219 220 220 std::list<IniEntry>::const_iterator entry; 221 221 for (entry = (*section).entries.begin(); entry != (*section).entries.end(); entry++) … … 316 316 bool IniParser::nextVar() 317 317 { 318 if ( this->sections.empty() 318 if ( this->sections.empty() 319 319 || this->currentSection == this->sections.end() 320 320 || this->currentEntry == (*this->currentSection).entries.end()) … … 342 342 { 343 343 std::list<IniSection>::iterator section; 344 344 345 345 if (sectionName != NULL) 346 346 { … … 402 402 else 403 403 section = this->currentSection; 404 404 405 405 if (section == this->sections.end()) 406 406 { … … 414 414 return (*entry).value; 415 415 PRINTF(2)("Entry '%s' in section '%s' not found.\n", entryName, sectionName); 416 416 417 417 } 418 418 else … … 425 425 426 426 /** 427 * @returns the name of the Current selected Section 428 */ 429 const char* IniParser::getCurrentSection() const 427 * @returns the name of the Current selected Section 428 */ 429 const char* IniParser::getCurrentSection() const 430 430 { 431 431 if (!this->sections.empty() && 432 this->currentSection != this->sections.end()) 432 this->currentSection != this->sections.end()) 433 433 return this->currentSection->name; 434 434 else … … 437 437 438 438 439 /** 440 * @returns the current entries Name, or NULL if we havn't selected a Entry 439 /** 440 * @returns the current entries Name, or NULL if we havn't selected a Entry 441 441 */ 442 442 const char* IniParser::getCurrentName() const … … 451 451 452 452 /** 453 * @returns the current entries Value, or NULL if we havn't selected a Entry 454 */ 455 const char* IniParser::getCurrentValue() const 453 * @returns the current entries Value, or NULL if we havn't selected a Entry 454 */ 455 const char* IniParser::getCurrentValue() const 456 456 { 457 457 if (!this->sections.empty() && … … 460 460 return (*this->currentEntry).value; 461 461 else 462 return NULL; 462 return NULL; 463 463 } 464 464 -
trunk/src/lib/particles/particle_engine.h
r5447 r5944 12 12 #include "particle_emitter.h" 13 13 14 #include " tinyxml.h"14 #include "parser/tinyxml/tinyxml.h" 15 15 16 16 // FORWARD DECLARATION -
trunk/src/lib/particles/particle_system.cc
r5750 r5944 30 30 #include "shell_command.h" 31 31 32 #include " tinyxml.h"32 #include "parser/tinyxml/tinyxml.h" 33 33 34 34 CREATE_FACTORY(ParticleSystem, CL_PARTICLE_SYSTEM); -
trunk/src/lib/physics/physics_engine.cc
r5779 r5944 20 20 #include "class_list.h" 21 21 #include "list.h" 22 #include " tinyxml.h"22 #include "parser/tinyxml/tinyxml.h" 23 23 #include "factory.h" 24 24 #include "load_param.h" -
trunk/src/lib/sound/sound_engine.cc
r5930 r5944 27 27 #include "resource_manager.h" 28 28 #include "debug.h" 29 #include " ini_parser.h"29 #include "parser/ini_parser/ini_parser.h" 30 30 #include "globals.h" 31 31 -
trunk/src/lib/util/executor/executor_specials.h
r5754 r5944 10 10 11 11 #include "compiler.h" 12 #include " tinyxml.h"12 #include "parser/tinyxml/tinyxml.h" 13 13 // FORWARD DECLARATION 14 14
Note: See TracChangeset
for help on using the changeset viewer.