playererror.h

00001 #ifndef PLAYERERROR_H
00002 #define PLAYERERROR_H
00003 
00004 #include <string>
00005 #include <iostream>
00006 
00007 namespace PlayerCc
00008 {
00026 class PlayerError
00027 {
00028   private:
00029 
00030     // a string describing the error
00031     std::string mStr;
00032     // a string describing the location of the error in the source
00033     std::string mFun;
00034     // error code returned by playerc
00035     int mCode;
00036 
00037   public:
00039     std::string GetErrorStr() const { return(mStr); };
00041     std::string GetErrorFun() const { return(mFun); };
00043     int GetErrorCode() const { return(mCode); };
00044 
00046     PlayerError(const std::string aFun="",
00047                 const std::string aStr="",
00048                 const int aCode=-1);
00050     ~PlayerError();
00051 };
00056 }
00057 
00058 namespace std
00059 {
00060 std::ostream& operator << (std::ostream& os, const PlayerCc::PlayerError& e);
00061 }
00062 
00063 #endif

Last updated 12 September 2005 21:38:45