AcPlPlotLoggingErrorHandler.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright 2015 Autodesk, Inc. All rights reserved.
  4. //
  5. // Use of this software is subject to the terms of the Autodesk license
  6. // agreement provided at the time of installation or download, or which
  7. // otherwise accompanies this software in either electronic or hard copy form.
  8. //
  9. //////////////////////////////////////////////////////////////////////////////
  10. #ifndef ACPLPLOTLOGGINGERRORHANDLER_H
  11. #define ACPLPLOTLOGGINGERRORHANDLER_H
  12. class AcPlPlotLogger;
  13. class AcPlSystenInternals;
  14. class AcPlPlotLoggingErrorHandler : public AcPlPlotErrorHandler
  15. {
  16. public:
  17. ACPL_PORT AcPlPlotLoggingErrorHandler();
  18. ACPL_PORT AcPlPlotLoggingErrorHandler(AcPlPlotLogger *);
  19. ACPL_PORT virtual ~AcPlPlotLoggingErrorHandler();
  20. ACPL_DECLARE_MEMBERS(AcPlPlotLoggingErrorHandler);
  21. public:
  22. ACPL_PORT virtual void infoMessage(const ACHAR *pMessage);
  23. ACPL_PORT virtual int messageBox(const ACHAR *pText,
  24. const ACHAR *pCaption,
  25. unsigned int uType,
  26. int defaultReturn);
  27. //info error handler.
  28. ACPL_PORT virtual void info(ULONG_PTR category,
  29. const unsigned int specific,
  30. const ACHAR *pLocation,
  31. const ACHAR *pContextData,
  32. const ACHAR *pRevision);
  33. //warning error handler.
  34. ACPL_PORT virtual ErrorResult warning(ULONG_PTR category,
  35. const unsigned int specific,
  36. const ACHAR *pLocation,
  37. const ACHAR *pContextData,
  38. const ACHAR *pRevision);
  39. //Severe handler
  40. ACPL_PORT virtual void severeError(ULONG_PTR category,
  41. const unsigned int specific,
  42. const ACHAR *pLocation,
  43. const ACHAR *pContextData,
  44. const ACHAR *pRevision);
  45. //Error handler
  46. ACPL_PORT virtual ErrorResult error(ULONG_PTR category,
  47. const unsigned int specific,
  48. const ACHAR *pLocation,
  49. const ACHAR *pContextData,
  50. const ACHAR *pRevision);
  51. //Abort/Retry/Ignore handler
  52. ACPL_PORT virtual ErrorResult ariError(ULONG_PTR category,
  53. const unsigned int specific,
  54. const ACHAR *pLocation,
  55. const ACHAR *pContextData,
  56. const ACHAR *pRevision);
  57. // Terminal error handler
  58. ACPL_PORT virtual void terminalError(ULONG_PTR category,
  59. const unsigned int specific,
  60. const ACHAR *pLocation,
  61. const ACHAR *pContextData,
  62. const ACHAR *pRevision);
  63. // log a message to the log file
  64. ACPL_PORT virtual void logMessage(const ACHAR *pTitle, const ACHAR *pMsg);
  65. };
  66. #endif // ACPLPLOTLOGGINGERRORHANDLER_H