Main Page | Namespace List | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals

XCGI.h

Go to the documentation of this file.
00001 00023 #ifndef MNST_H_XCGI 00024 #define MNST_H_XCGI 00025 #include <MonsterworksCopyright.h> 00026 00027 #include <exception> 00028 #include <string> 00029 00030 namespace monsterworks { 00031 namespace cgi { 00032 00035 class XConfiguration : public std::exception 00036 { 00037 public: 00038 XConfiguration(const std::string& inMessage) : myMessage(inMessage) {}; 00039 virtual ~XConfiguration() throw () {}; 00040 virtual const char* what() { return myMessage.c_str(); }; 00041 std::string Message() { return myMessage; }; 00042 private: 00043 std::string myMessage; 00044 }; 00045 00048 class XLogin : public std::exception 00049 { 00050 public: 00051 XLogin(const std::string& inLogin, const std::string& inPassword) : myLogin(inLogin), myPassword(inPassword) {}; 00052 virtual ~XLogin() throw() {}; 00053 virtual const char* what() { return "Your login information is invalid."; } 00054 std::string Login() { return myLogin; }; 00055 std::string Password() { return myPassword; }; 00056 private: 00057 std::string myLogin; 00058 std::string myPassword; 00059 }; 00060 00061 } 00062 } 00063 00064 #endif // ifndef MNST_H_XCGI

monsterworks Code by Monsterworks. Made available under the GNU Public License.
Documentation by doxygen.