message_ns.hpp 603 Bytes
Newer Older
Olivier Lagrasse's avatar
Olivier Lagrasse committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*!
 *\file message_ns.hpp
 */

#ifndef MESSAGE_NS_HPP
#define MESSAGE_NS_HPP


#include "message.hpp"

/*!
 * \brief Namespace for error, warning and informative messages. 
 */

namespace message_ns{


18 19 20 21 22
    /* declared inside message_ns.cpp */
    extern std::stringstream message;
    extern Enderror ende;
    extern Endwarning endw;
    extern Endinformation endi;
Olivier Lagrasse's avatar
Olivier Lagrasse committed
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

    
    /* the operator function declaration */
#define OP_FUNC_DECL(T) std::ostream& operator<< (std::ostream& stream, T & e );

    OP_FUNC_DECL(Enderror)
    OP_FUNC_DECL(Endwarning)
    OP_FUNC_DECL(Endinformation)


}



#endif