mgdhost.h 945 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. //////////////////////////////////////////////////////////////////////////////
  3. //
  4. // Copyright 2015 Autodesk, Inc. All rights reserved.
  5. //
  6. // Use of this software is subject to the terms of the Autodesk license
  7. // agreement provided at the time of installation or download, or which
  8. // otherwise accompanies this software in either electronic or hard copy form.
  9. //
  10. //////////////////////////////////////////////////////////////////////////////
  11. //
  12. #include "AdAChar.h"
  13. #ifndef MGDHOST_H
  14. #define MGDHOST_H 1
  15. #pragma once
  16. class AcDbManagedHost
  17. {
  18. public:
  19. virtual int version() { return 1;}
  20. virtual Acad::ErrorStatus load(const ACHAR * fname)=0;
  21. };
  22. AcDbManagedHost* ADESK_STDCALL acdbGetManagedHost();
  23. Acad::ErrorStatus ADESK_STDCALL acdbSetManagedHost(AcDbManagedHost* pHost);
  24. ACDB_PORT HRESULT ADESK_STDCALL acdbInitializeManagedLayer();
  25. ACDB_PORT HRESULT ADESK_STDCALL acdbTerminateManagedLayer();
  26. #endif /* MGDHOST_H */