Changeset 3153 for code/branches/pch/src/util
- Timestamp:
- Jun 13, 2009, 4:12:45 PM (16 years ago)
- Location:
- code/branches/pch/src/util
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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.