playererror.h

00001 #ifndef PLAYERERROR_H
00002 #define PLAYERERROR_H
00003 
00004 #include <string>
00005 #include <iostream>
00006 
00007 namespace PlayerCc
00008 {
00009 
00015 class PlayerError
00016 {
00017   private:
00018 
00019     // a string describing the error
00020     std::string mStr;
00021     // a string describing the location of the error in the source
00022     std::string mFun;
00023     // error code returned by playerc
00024     int mCode;
00025 
00026   public:
00028     std::string GetErrorStr() const { return(mStr); };
00030     std::string GetErrorFun() const { return(mFun); };
00032     int GetErrorCode() const { return(mCode); };
00033 
00035     PlayerError(const std::string aFun="",
00036                 const std::string aStr="",
00037                 const int aCode=-1);
00039     ~PlayerError();
00040 };
00041 
00042 }
00043 
00044 namespace std
00045 {
00046 std::ostream& operator << (std::ostream& os, const PlayerCc::PlayerError& e);
00047 }
00048 
00049 #endif

Last updated 12 September 2005 21:38:45