dbboiler.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef AC_DBBOILER_H
  2. #define AC_DBBOILER_H
  3. //
  4. //
  5. //////////////////////////////////////////////////////////////////////////////
  6. //
  7. // Copyright 2015 Autodesk, Inc. All rights reserved.
  8. //
  9. // Use of this software is subject to the terms of the Autodesk license
  10. // agreement provided at the time of installation or download, or which
  11. // otherwise accompanies this software in either electronic or hard copy form.
  12. //
  13. //////////////////////////////////////////////////////////////////////////////
  14. //
  15. // DESCRIPTION: Main Exported Database Library Definitions.
  16. // Macros primarily used in the api headers
  17. #include "rxboiler.h"
  18. // Macro for common declarations of classes derived from
  19. // AcDbObject which are built into AutoCAD.
  20. //
  21. // This macro is NOT intended for application-defined classes derived
  22. // from AcDbObject when declaring their class header. This macro declares
  23. // an internally used form of constructor, which takes the
  24. // AcDbSystemInternals* argument. Rx applications should not define
  25. // such constructors for their database object classes, but they should
  26. // be ignored by the system anyway.
  27. //
  28. // Application-defined classes are advised to use the ACRX_DECLARE_MEMBERS
  29. // macro instead, and to consult the documentation for related definitions.
  30. //
  31. #define ACDB_DECLARE_MEMBERS(CLASSNAME) \
  32. private: \
  33. friend class AcDbSystemInternals; \
  34. protected: \
  35. CLASSNAME(AcDbSystemInternals*); \
  36. public: \
  37. ACRX_DECLARE_MEMBERS(CLASSNAME)
  38. #endif