dbid_ops.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. //
  12. // DESCRIPTION:
  13. //
  14. // This file declares functions called by the app versions of the comparison
  15. // operators of class AcDbObjectId. This file currently contains the c4
  16. // versions of these functions and will be updated to contain c5 versions
  17. // of these functions. Adjacent apps that compile against c4 will thus not
  18. // experience behavioral changes when c5 AutoCAD ships. However, by
  19. // recompiling against c5, adjacent apps can pick up the modified behavior
  20. // of these operators, as the operators themselves will be modified to
  21. // call the new functions in the header dbidapps.h
  22. //
  23. // Presumably, this file will be eliminated, and these functions will be
  24. // collapsed back into dbid.h as inlines, at a later date.
  25. //
  26. // For further description of the AcDbObjectId types, see dbid.h
  27. #ifndef _AD_DBID_OPS_H
  28. #define _AD_DBID_OPS_H 1
  29. #include "adesk.h"
  30. class AcDbStub;
  31. bool
  32. c5ObjIdIsLessThan(const AcDbStub * lhs, const AcDbStub * rhs);
  33. bool
  34. c5ObjIdIsGreaterThan(const AcDbStub * lhs, const AcDbStub * rhs);
  35. bool
  36. c5ObjIdLessThanOrEqual(const AcDbStub * lhs, const AcDbStub * rhs);
  37. bool
  38. c5ObjIdGreaterThanOrEqual(const AcDbStub * lhs, const AcDbStub * rhs);
  39. bool
  40. c5ObjIdIsEqualTo(const AcDbStub * lhs, const AcDbStub * rhs);
  41. bool
  42. c4ObjIdIsLessThan(Adesk::ULongPtr lhs, Adesk::ULongPtr rhs);
  43. bool
  44. c4ObjIdIsGreaterThan(Adesk::ULongPtr lhs, Adesk::ULongPtr rhs);
  45. bool
  46. c4ObjIdLessThanOrEqual(Adesk::ULongPtr lhs, Adesk::ULongPtr rhs);
  47. bool
  48. c4ObjIdGreaterThanOrEqual(Adesk::ULongPtr lhs, Adesk::ULongPtr rhs);
  49. bool
  50. c4ObjIdIsEqualTo(Adesk::ULongPtr lhs, Adesk::ULongPtr rhs);
  51. bool
  52. c4ObjIdNotEqualTo(Adesk::ULongPtr lhs, Adesk::ULongPtr rhs);
  53. #endif