AcPlPlotLogger.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. //
  11. // DESCRIPTION: Interface for Plot Logging service.
  12. //
  13. #ifndef ACPLPLOTLOGGER_H
  14. #define ACPLPLOTLOGGER_H
  15. class ADESK_NO_VTABLE AcPlPlotLogger
  16. {
  17. public:
  18. AcPlPlotLogger(){};
  19. virtual ~AcPlPlotLogger(){};
  20. // informs the logging service that a job has started
  21. virtual Acad::ErrorStatus startJob(void) = 0;
  22. // informs the logging service that a sheet within a job has started
  23. virtual Acad::ErrorStatus startSheet(void) = 0;
  24. // log a terminal error
  25. virtual Acad::ErrorStatus logTerminalError(const ACHAR *pErrorString) = 0;
  26. // log an Abort, Retry, Ignore error
  27. virtual Acad::ErrorStatus logARIError(const ACHAR *pErrorString) = 0;
  28. // log a severe error
  29. virtual Acad::ErrorStatus logSevereError(const ACHAR *pErrorString) = 0;
  30. // log an error
  31. virtual Acad::ErrorStatus logError(const ACHAR *pErrorString) = 0;
  32. // log a warning
  33. virtual Acad::ErrorStatus logWarning(const ACHAR *pWarningString) = 0;
  34. // log a message
  35. virtual Acad::ErrorStatus logMessage(const ACHAR *pMessageString) = 0;
  36. // log an informational message
  37. virtual Acad::ErrorStatus logInformation(const ACHAR *pMessageString) = 0;
  38. // informs the logging service that a sheet within a job has ended
  39. virtual Acad::ErrorStatus endSheet(void) = 0;
  40. // returns whether an error was logged during the sheet
  41. virtual bool errorHasHappenedInSheet(void) const = 0;
  42. // returns whether a warning was logged during the sheet
  43. virtual bool warningHasHappenedInSheet(void) const = 0;
  44. // informs the logging service that a job has ended
  45. virtual Acad::ErrorStatus endJob(void) = 0;
  46. // returns whether an error was logged during the job
  47. virtual bool errorHasHappenedInJob(void) const = 0;
  48. // returns whether a warning was logged during the job
  49. virtual bool warningHasHappenedInJob(void) const = 0;
  50. };
  51. #endif // ACPLPLOTLOGGER_H