areaDetector  3-5-0
EPICS areaDetector framework
ccd_exception.h
Go to the documentation of this file.
1 
11 /*
12  * Include files.
13  */
14 
15 #include <stdio.h>
16 #include <stdlib.h>
17 #include <string.h>
18 
19 #include <shareLib.h>
20 /*
21  * Double incluson protection.
22  */
23 #ifndef _CCD_EXCEPTION_H
24 #define _CCD_EXCEPTION_H
25 
26 //#ifdef _WINDOWS
27 // #define EXPORT __declspec(dllexport)
28 //#else
29 // #define EXPORT
30 
31 //#endif
42 // class EXPORT ccd_exception
43 class epicsShareClass ccd_exception {
44  public:
45  enum error_code { ok, xfer_not_starting, not_implemented, unknown };
46 
47  // make err message mess
48  ccd_exception(const char *mess);
49  // make default err message
50  ccd_exception(error_code er, const char *mess);
51  // make default err message
52  ccd_exception(error_code er);
53  // make default err message
54  ccd_exception();
55  // Return error message.
56  char *err_mess(void);
57 
58  // Return error message.
59  error_code getErrCode(void);
60 
61  protected:
62  // Error message in this exception.
63  char err[256];
64 
66 };
67 
68 #endif
error_code code
Definition: ccd_exception.h:65
error_code
Definition: ccd_exception.h:45
Definition: ccd_exception.h:45
Class for storing errors from detector.
Definition: ccd_exception.h:43