00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef TORC_GENERIC_UTIL_MESSAGE_HPP
00017 #define TORC_GENERIC_UTIL_MESSAGE_HPP
00018
00019 #include <string>
00020 #include "torc/generic/util/MessageSeverity.hpp"
00021
00022 namespace torc {
00023
00024 namespace generic {
00025
00026
00027
00028
00029 class Message
00030 {
00031 public:
00032 inline const std::string
00033 getMessage() const throw();
00034
00035 void
00036 setMessage(const std::string & inSource) throw();
00037
00038 inline const MessageSeverity
00039 getSeverity() const throw();
00040
00041 void
00042 setSeverity(const MessageSeverity & inSource) throw();
00043
00044 Message();
00045
00046 Message( const std::string &inMessage,
00047 MessageSeverity inSeverity );
00048
00049 ~Message() throw();
00050
00051 Message(const Message &inSource);
00052
00053 Message &
00054 operator=(const Message &inSource) throw();
00055
00056 private:
00057 std::string mMessage;
00058 MessageSeverity mSeverity;
00059
00060 };
00061 inline const std::string
00062 Message::getMessage() const throw() {
00063 return mMessage;
00064 }
00065
00066 inline const MessageSeverity
00067 Message::getSeverity() const throw() {
00068 return mSeverity;
00069 }
00070
00071 }
00072
00073 }
00074 #endif // TORC_GENERIC_UTIL_MESSAGE_HPP