actrans.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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: Header for Transaction Modeler.
  12. #ifndef _ACTRANS_H
  13. #define _ACTRANS_H
  14. #include "rxnames.h"
  15. #include "aced.h"
  16. #include "dbptrar.h"
  17. #include "dbtrans.h"
  18. #include "acdocman.h"
  19. #pragma pack (push, 8)
  20. class AcTransactionManager: public AcDbTransactionManager
  21. {
  22. public:
  23. ACRX_DECLARE_MEMBERS(AcTransactionManager);
  24. virtual Acad::ErrorStatus enableGraphicsFlush(bool doEnable) = 0;
  25. virtual void flushGraphics() = 0;
  26. };
  27. inline AcTransactionManager* acTransactionManagerPtr()
  28. {
  29. AcApDocument* pDoc = acDocManager->curDocument();
  30. return pDoc ? pDoc->transactionManager() : NULL;
  31. }
  32. #define actrTransactionManager acTransactionManagerPtr()
  33. #pragma pack (pop)
  34. #endif