Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 29, 2008, 7:36:33 PM (16 years ago)
Author:
nicolasc
Message:

just a test - don't morge this

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gcc43/src/core/OutputHandler.h

    r1505 r1634  
    6363
    6464            /** @brief Puts some text on the outstream. @param text The text */
    65             static inline std::string log(const std::string& text)
     65            static std::string log(const std::string& text)
    6666                { OutputHandler::getOutStream().setOutputLevel(0); OutputHandler::getOutStream().output(text + "\n"); return text; }
    6767
    6868            /** @brief Puts an error on the outstream. @param text The text */
    69             static inline std::string error(const std::string& text)
     69            static std::string error(const std::string& text)
    7070                { OutputHandler::getOutStream().setOutputLevel(1); OutputHandler::getOutStream().output(text + "\n"); return text; }
    7171
    7272            /** @brief Puts a warning on the outstream. @param text The text */
    73             static inline std::string warning(const std::string& text)
     73            static std::string warning(const std::string& text)
    7474                { OutputHandler::getOutStream().setOutputLevel(2); OutputHandler::getOutStream().output(text + "\n"); return text; }
    7575
    7676            /** @brief Puts an info on the outstream. @param text The text */
    77             static inline std::string info(const std::string& text)
     77            static std::string info(const std::string& text)
    7878                { OutputHandler::getOutStream().setOutputLevel(3); OutputHandler::getOutStream().output(text + "\n"); return text; }
    7979
    8080            /** @brief Puts some debug output on the outstream. @param text The text */
    81             static inline std::string debug(const std::string& text)
     81            static std::string debug(const std::string& text)
    8282                { OutputHandler::getOutStream().setOutputLevel(4); OutputHandler::getOutStream().output(text + "\n"); return text; }
    8383
    8484            /** @brief Returns a reference to the logfile. @return The logfile */
    85             inline std::ofstream& getLogfile()
     85            std::ofstream& getLogfile()
    8686                { return this->logfile_; }
    8787
    8888            /** @brief Sets the level of the incoming output. @param level The level of the incoming output @return The OutputHandler itself */
    89             inline OutputHandler& setOutputLevel(int level)
     89            OutputHandler& setOutputLevel(int level)
    9090                { this->outputLevel_ = level; return *this; }
    9191
    9292            /** @brief Returns the level of the incoming output. @return The level */
    93             inline int getOutputLevel() const
     93            int getOutputLevel() const
    9494                { return this->outputLevel_; }
    9595
     
    102102
    103103            /** @brief Overloaded << operator, redirects the output to the console and the logfile. @param val The value that should be shown in the console @return A reference to the OutputHandler itself */
    104             inline OutputHandler& operator<<(unsigned char val)   { return this->output(val); }
     104            OutputHandler& operator<<(unsigned char val)   { return this->output(val); }
    105105            /** @brief Overloaded << operator, redirects the output to the console and the logfile. @param val The value that should be shown in the console @return A reference to the OutputHandler itself */
    106             inline OutputHandler& operator<<(short val)           { return this->output(val); }
     106            OutputHandler& operator<<(short val)           { return this->output(val); }
    107107            /** @brief Overloaded << operator, redirects the output to the console and the logfile. @param val The value that should be shown in the console @return A reference to the OutputHandler itself */
    108             inline OutputHandler& operator<<(unsigned short val)  { return this->output(val); }
     108            OutputHandler& operator<<(unsigned short val)  { return this->output(val); }
    109109            /** @brief Overloaded << operator, redirects the output to the console and the logfile. @param val The value that should be shown in the console @return A reference to the OutputHandler itself */
    110             inline OutputHandler& operator<<(int val)             { return this->output(val); }
     110            OutputHandler& operator<<(int val)             { return this->output(val); }
    111111            /** @brief Overloaded << operator, redirects the output to the console and the logfile. @param val The value that should be shown in the console @return A reference to the OutputHandler itself */
    112             inline OutputHandler& operator<<(unsigned int val)    { return this->output(val); }
     112            OutputHandler& operator<<(unsigned int val)    { return this->output(val); }
    113113            /** @brief Overloaded << operator, redirects the output to the console and the logfile. @param val The value that should be shown in the console @return A reference to the OutputHandler itself */
    114             inline OutputHandler& operator<<(long val)            { return this->output(val); }
     114            OutputHandler& operator<<(long val)            { return this->output(val); }
    115115            /** @brief Overloaded << operator, redirects the output to the console and the logfile. @param val The value that should be shown in the console @return A reference to the OutputHandler itself */
    116             inline OutputHandler& operator<<(unsigned long val)   { return this->output(val); }
     116            OutputHandler& operator<<(unsigned long val)   { return this->output(val); }
    117117            /** @brief Overloaded << operator, redirects the output to the console and the logfile. @param val The value that should be shown in the console @return A reference to the OutputHandler itself */
    118             inline OutputHandler& operator<<(float val)           { return this->output(val); }
     118            OutputHandler& operator<<(float val)           { return this->output(val); }
    119119            /** @brief Overloaded << operator, redirects the output to the console and the logfile. @param val The value that should be shown in the console @return A reference to the OutputHandler itself */
    120             inline OutputHandler& operator<<(double val)          { return this->output(val); }
     120            OutputHandler& operator<<(double val)          { return this->output(val); }
    121121            /** @brief Overloaded << operator, redirects the output to the console and the logfile. @param val The value that should be shown in the console @return A reference to the OutputHandler itself */
    122             inline OutputHandler& operator<<(long double val)     { return this->output(val); }
     122            OutputHandler& operator<<(long double val)     { return this->output(val); }
    123123            /** @brief Overloaded << operator, redirects the output to the console and the logfile. @param val The value that should be shown in the console @return A reference to the OutputHandler itself */
    124             inline OutputHandler& operator<<(const void* val)     { return this->output(val); }
     124            OutputHandler& operator<<(const void* val)     { return this->output(val); }
    125125            /** @brief Overloaded << operator, redirects the output to the console and the logfile. @param val The value that should be shown in the console @return A reference to the OutputHandler itself */
    126             inline OutputHandler& operator<<(bool val)            { return this->output(val); }
     126            OutputHandler& operator<<(bool val)            { return this->output(val); }
    127127
    128128            OutputHandler& operator<<(std::streambuf* sb);
Note: See TracChangeset for help on using the changeset viewer.