upl_err.h

Go to the documentation of this file.
00001 
00038 #ifndef __UPL_ERR_H__
00039 #define __UPL_ERR_H__
00040 
00041 #include <string>
00042 using namespace std;
00043 
00044 // namespace UPL {
00049 typedef enum UplErrCodes{
00050   UPL_OK                        = 0,      
00051   
00052   // Pug Lib Codes -1 - -1999
00053   UPL_ERR                       = -1,     
00054   UPL_FNF                       = -2,     
00055   
00056   // USB Error Codes -2000 - -2999   
00057   UPL_USB_ERR                   = -2000,  
00058   UPL_USB_FNA                   = -2001,  
00059   UPL_USB_NA                    = -2002,  
00060   UPL_USB_OPEN_FAILED           = -2003,  
00061   
00062 } UPL_ERR_CODES;
00063 
00064 typedef struct sUplErrCodes{
00065   UplErrCodes  err;
00066   string       err_str;
00067 } UPL_ERR_CODES_STR;
00068 
00075 const UPL_ERR_CODES_STR err_code_str[] =
00076   {
00077     {UPL_OK,                      "All is Good"},
00078     {UPL_FNF,                     "File Not Found"},
00079     
00080     {UPL_USB_ERR,                 "Generic USB error, sorry lamo didn't provice more info"},
00081     {UPL_USB_FNA,                 "Function (method) not implemented for this driver (for a particular implementation of CPugUsb abstract class"},
00082     {UPL_USB_NA,                  "USB device to open, try reopening the device.  Then if successful check the device status"},
00083     {UPL_USB_OPEN_FAILED,         "Failed to open the USB device"},
00084   };
00085 
00093 #endif
00094 

Generated on Mon Mar 5 20:44:19 2007 for usbp by  doxygen 1.5.1-p1