Changeset 3153
- Timestamp:
- Jun 13, 2009, 4:12:45 PM (15 years ago)
- Location:
- code/branches/pch/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/OrxonoxConfig.h.in
r3152 r3153 190 190 } 191 191 192 /* Just in case you don't include a standard header */ 193 #ifndef NULL 194 #define NULL 0 195 #endif 196 192 197 /* Visual Leak Detector looks for memory leaks */ 193 198 #cmakedefine VISUAL_LEAK_DETECTOR_ENABLE -
code/branches/pch/src/orxonox/gui/GUIManager.cc
r3143 r3153 271 271 Returns false if the Overlay was already present. 272 272 */ 273 bool GUIManager::registerOverlay( std::stringname, GUIOverlay* overlay)273 bool GUIManager::registerOverlay(const std::string& name, GUIOverlay* overlay) 274 274 { 275 275 return (this->guiOverlays_.insert(std::pair<std::string, GUIOverlay*>(name, overlay))).second; … … 284 284 Returns a pointer to the GUIOverlay. 285 285 */ 286 GUIOverlay* GUIManager::getOverlay( std::stringname)286 GUIOverlay* GUIManager::getOverlay(const std::string& name) 287 287 { 288 288 return (this->guiOverlays_.find(name))->second; -
code/branches/pch/src/orxonox/gui/GUIManager.h
r3143 r3153 91 91 void executeCode(const std::string& str); 92 92 93 bool registerOverlay( std::stringname, GUIOverlay* overlay); //!< Register a GUIOverlay with the GUIManager.94 GUIOverlay* getOverlay( std::stringname); // Get the GUIOverlay of the GUI with the given name.93 bool registerOverlay(const std::string& name, GUIOverlay* overlay); //!< Register a GUIOverlay with the GUIManager. 94 GUIOverlay* getOverlay(const std::string& name); // Get the GUIOverlay of the GUI with the given name. 95 95 96 96 void setCamera(Ogre::Camera* camera); -
code/branches/pch/src/orxonox/tools/TextureGenerator.cc
r3145 r3153 65 65 unsigned int TextureGenerator::materialCount_s = 0; 66 66 67 /*static*/ const std::string& TextureGenerator::getMaterialName( std::stringtextureName, const ColourValue& colour)67 /*static*/ const std::string& TextureGenerator::getMaterialName(const std::string& textureName, const ColourValue& colour) 68 68 { 69 69 std::map<ColourValue, std::string>& colourMap = materials_s[textureName]; -
code/branches/pch/src/orxonox/tools/TextureGenerator.h
r3131 r3153 46 46 { 47 47 public: 48 static const std::string& getMaterialName( std::stringtextureName, const ColourValue& colour);48 static const std::string& getMaterialName(const std::string& textureName, const ColourValue& colour); 49 49 50 50 private: -
code/branches/pch/src/util/ExprParser.h
r2171 r3153 72 72 73 73 ExprParser(const std::string& str); 74 std::string& getRemains() { return this->remains_; }75 double getResult() { return this->result_; }76 bool getSuccess() { return !this->failed_; }74 const std::string& getRemains() { return this->remains_; } 75 double getResult() { return this->result_; } 76 bool getSuccess() { return !this->failed_; } 77 77 78 78 private: -
code/branches/pch/src/util/OrxAssert.h
r3149 r3153 44 44 #ifndef NDEBUG 45 45 #define OrxAssert(Assertion, ErrorMessage) \ 46 Assertion ? ((void)0) : (void)(orxonox::OutputHandler::getOutStream().setOutputLevel( ORX_ERROR) << ErrorMessage << std::endl); \46 Assertion ? ((void)0) : (void)(orxonox::OutputHandler::getOutStream().setOutputLevel(1) << ErrorMessage << std::endl); \ 47 47 assert(Assertion) 48 48 #else -
code/branches/pch/src/util/OutputHandler.h
r2710 r3153 63 63 64 64 /** @brief Puts some text on the outstream. @param text The text */ 65 static inline std::stringlog(const std::string& text)65 static inline const std::string& log(const std::string& text) 66 66 { OutputHandler::getOutStream().setOutputLevel(0); OutputHandler::getOutStream().output(text + "\n"); return text; } 67 67 68 68 /** @brief Puts an error on the outstream. @param text The text */ 69 static inline std::stringerror(const std::string& text)69 static inline const std::string& error(const std::string& text) 70 70 { OutputHandler::getOutStream().setOutputLevel(1); OutputHandler::getOutStream().output(text + "\n"); return text; } 71 71 72 72 /** @brief Puts a warning on the outstream. @param text The text */ 73 static inline std::stringwarning(const std::string& text)73 static inline const std::string& warning(const std::string& text) 74 74 { OutputHandler::getOutStream().setOutputLevel(2); OutputHandler::getOutStream().output(text + "\n"); return text; } 75 75 76 76 /** @brief Puts an info on the outstream. @param text The text */ 77 static inline std::stringinfo(const std::string& text)77 static inline const std::string& info(const std::string& text) 78 78 { OutputHandler::getOutStream().setOutputLevel(3); OutputHandler::getOutStream().output(text + "\n"); return text; } 79 79 80 80 /** @brief Puts some debug output on the outstream. @param text The text */ 81 static inline std::stringdebug(const std::string& text)81 static inline const std::string& debug(const std::string& text) 82 82 { OutputHandler::getOutStream().setOutputLevel(4); OutputHandler::getOutStream().output(text + "\n"); return text; } 83 83
Note: See TracChangeset
for help on using the changeset viewer.