Changeset 9348 for code/trunk/src/libraries
- Timestamp:
- Aug 30, 2012, 11:08:17 PM (12 years ago)
- Location:
- code/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 .project 1 2 build 2 3 codeblocks 4 dependencies 3 5 vs 4 dependencies
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
code/trunk/src/libraries/core/Super.h
r8866 r9348 280 280 SUPER_NOARGS(classname, functionname) 281 281 282 #define SUPER_clone(classname, functionname, ...) \283 SUPER_ARGS(classname, functionname, __VA_ARGS__)284 285 282 #define SUPER_changedCarrier(classname, functionname, ...) \ 286 283 SUPER_NOARGS(classname, functionname) … … 398 395 inline void operator()( SUPER_CALL_ARGUMENTS##hasarguments(__VA_ARGS__) ) \ 399 396 { \ 400 ( dynamic_cast<T*>(object))->T:: functionname397 (orxonox_cast<T*>(object))->T:: functionname 401 398 402 399 /* … … 508 505 inline void operator()( SUPER_CALL_ARGUMENTS##hasarguments(__VA_ARGS__) ) 509 506 { 510 ( dynamic_cast<T*>(object))->T:: functionname ( Call the function with it's arguments );507 (orxonox_cast<T*>(object))->T:: functionname ( Call the function with it's arguments ); 511 508 } 512 509 … … 566 563 SUPER_FUNCTION_GLOBAL_DECLARATION_PART2; 567 564 568 SUPER_FUNCTION_GLOBAL_DECLARATION_PART1(11, clone, true, OrxonoxClass*& item) 569 (item) 570 SUPER_FUNCTION_GLOBAL_DECLARATION_PART2; 571 572 SUPER_FUNCTION_GLOBAL_DECLARATION_PART1(12, changedCarrier, false) 573 () 574 SUPER_FUNCTION_GLOBAL_DECLARATION_PART2; 575 576 SUPER_FUNCTION_GLOBAL_DECLARATION_PART1(13, changedPickedUp, false) 565 SUPER_FUNCTION_GLOBAL_DECLARATION_PART1(11, changedCarrier, false) 566 () 567 SUPER_FUNCTION_GLOBAL_DECLARATION_PART2; 568 569 SUPER_FUNCTION_GLOBAL_DECLARATION_PART1(12, changedPickedUp, false) 577 570 () 578 571 SUPER_FUNCTION_GLOBAL_DECLARATION_PART2; … … 632 625 SUPER_INTRUSIVE_DECLARATION(changedGametype); 633 626 SUPER_INTRUSIVE_DECLARATION(changedUsed); 634 SUPER_INTRUSIVE_DECLARATION(clone);635 627 SUPER_INTRUSIVE_DECLARATION(changedCarrier); 636 628 SUPER_INTRUSIVE_DECLARATION(changedPickedUp); -
code/trunk/src/libraries/core/Template.cc
r8858 r9348 149 149 orxout(verbose, context::templates) << object->getLoaderIndentation() << " aplying Template \"" << this->getName() << "\"..." << endl; 150 150 151 // check if the template is applied on an object of the right type 152 Identifier* identifier = Identifier::getIdentifierByString(this->getXMLElement().Value()); 153 if (!object->getIdentifier()->isA(identifier)) 154 orxout(internal_warning, context::templates) << "Template was defined for " << identifier->getName() << " but the object is of type " << object->getIdentifier()->getName() << endl; 155 151 156 Element temp = &const_cast<TiXmlElement&>(this->getXMLElement()); 152 157 -
code/trunk/src/libraries/core/XMLPort.h
r8858 r9348 197 197 ClassIdentifier<classname>::getIdentifier()->addXMLPortParamContainer(paramname, containername); \ 198 198 } \ 199 containername->port( dynamic_cast<BaseObject*>(this), object, xmlelement, mode)199 containername->port(orxonox_cast<BaseObject*>(this), object, xmlelement, mode) 200 200 201 201 // -------------------- -
code/trunk/src/libraries/core/command/ConsoleCommand.cc
r8858 r9348 594 594 @param bPrintError If true, an error is printed if the command doesn't exist 595 595 */ 596 /* static */ constConsoleCommand* ConsoleCommand::getCommand(const std::string& group, const std::string& name, bool bPrintError)596 /* static */ ConsoleCommand* ConsoleCommand::getCommand(const std::string& group, const std::string& name, bool bPrintError) 597 597 { 598 598 // find the group … … 624 624 @param bPrintError If true, an error is printed if the command doesn't exist 625 625 */ 626 /* static */ constConsoleCommand* ConsoleCommand::getCommandLC(const std::string& group, const std::string& name, bool bPrintError)626 /* static */ ConsoleCommand* ConsoleCommand::getCommandLC(const std::string& group, const std::string& name, bool bPrintError) 627 627 { 628 628 std::string groupLC = getLowercase(group); -
code/trunk/src/libraries/core/command/ConsoleCommand.h
r8858 r9348 382 382 public: 383 383 /// Constructor: Creates a manipulator for a given ConsoleCommand. 384 ConsoleCommandManipulator( const ConsoleCommand* command) : command_(const_cast<ConsoleCommand*>(command)) {}384 ConsoleCommandManipulator(ConsoleCommand* command) : command_(command) {} 385 385 386 386 /// Changes the current function of the command. @param function The new function-pointer @param bForce If true, the new function-pointer is always assigned, even if the headers don't match … … 619 619 620 620 /// Returns a manipulator for this command. 621 inline ConsoleCommandManipulator getManipulator() const621 inline ConsoleCommandManipulator getManipulator() 622 622 { return this; } 623 623 … … 667 667 668 668 /// Returns a command (shortcut) with given name. @param name The name of the command shortcut @param bPrintError If true, an error is printed if the command doesn't exist 669 static inline constConsoleCommand* getCommand(const std::string& name, bool bPrintError = false)669 static inline ConsoleCommand* getCommand(const std::string& name, bool bPrintError = false) 670 670 { return ConsoleCommand::getCommand("", name, bPrintError); } 671 671 /// Returns a command (shortcut) with given name in lowercase. @param name The lowercase name of the command shortcut @param bPrintError If true, an error is printed if the command doesn't exist 672 static inline constConsoleCommand* getCommandLC(const std::string& name, bool bPrintError = false)672 static inline ConsoleCommand* getCommandLC(const std::string& name, bool bPrintError = false) 673 673 { return ConsoleCommand::getCommandLC("", name, bPrintError); } 674 674 675 static constConsoleCommand* getCommand(const std::string& group, const std::string& name, bool bPrintError = false);676 static constConsoleCommand* getCommandLC(const std::string& group, const std::string& name, bool bPrintError = false);675 static ConsoleCommand* getCommand(const std::string& group, const std::string& name, bool bPrintError = false); 676 static ConsoleCommand* getCommandLC(const std::string& group, const std::string& name, bool bPrintError = false); 677 677 678 678 static void destroyAll(); -
code/trunk/src/libraries/util/output/ConsoleWriter.cc
- Property svn:eol-style set to native
Note: See TracChangeset
for help on using the changeset viewer.