00001
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef LOG4SENDPP_LOCATIONINFO_H
00031 #define LOG4SENDPP_LOCATIONINFO_H
00032
00033 #include <log4sendpp/log4sendpp.h>
00034
00035
00036 LOG4SENDPP_NS_START
00037
00040 class LOG4SENDPP_API_DECL0 LocationInformation
00041 {
00042 public:
00043
00051 LocationInformation(const LOG4SENDPP_STD_NS::string &filename,
00052 unsigned linenum,
00053 const LOG4SENDPP_STD_NS::string &methodname,
00054 const LOG4SENDPP_STD_NS::string &threadname,
00055 const LOG4SENDPP_STD_NS::string &throwablename = "");
00056
00060 LOG4SENDPP_STD_NS::string getFilename() const;
00061
00065 LOG4SENDPP_STD_NS::string getMethodname() const;
00066
00070 LOG4SENDPP_STD_NS::string getThreadname() const;
00071
00076 LOG4SENDPP_STD_NS::string getThrowablename() const;
00077
00081 unsigned getLinenumber() const;
00082
00083 private:
00084
00085 LOG4SENDPP_STD_NS::string filename;
00086 unsigned linenum;
00087 LOG4SENDPP_STD_NS::string methodname;
00088 LOG4SENDPP_STD_NS::string threadname;
00089 LOG4SENDPP_STD_NS::string throwablename;
00090 };
00091
00092
00093 LOG4SENDPP_NS_END
00094
00095 #endif // LOG4SENDPP_LOCATIONINFO_H
00096