Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

83 lines
2.7 KiB

  1. // ADataObj.cpp -- CAbstractDataObject class definition
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 1999. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. #include "cciDataObj.h"
  8. #include "TransactionWrap.h"
  9. using namespace std;
  10. using namespace cci;
  11. /////////////////////////// LOCAL/HELPER /////////////////////////////////
  12. /////////////////////////// PUBLIC /////////////////////////////////
  13. // Types
  14. // C'tors/D'tors
  15. CAbstractDataObject::~CAbstractDataObject()
  16. {}
  17. // Operators
  18. bool
  19. CAbstractDataObject::operator==(CAbstractDataObject const &rhs) const
  20. {
  21. CTransactionWrap wrap(m_hcard);
  22. CTransactionWrap rhswrap(rhs.m_hcard);
  23. return CProtectableCrypt::operator==(rhs) &&
  24. DoEquals(rhs);
  25. }
  26. bool
  27. CAbstractDataObject::operator!=(CAbstractDataObject const &rhs) const
  28. {
  29. return !(*this == rhs);
  30. }
  31. // Operations
  32. void
  33. CAbstractDataObject::Delete()
  34. {
  35. CTransactionWrap wrap(m_hcard);
  36. DoDelete();
  37. }
  38. // Access
  39. // Predicates
  40. // Static Variables
  41. /////////////////////////// PROTECTED /////////////////////////////////
  42. // C'tors/D'tors
  43. CAbstractDataObject::CAbstractDataObject(CAbstractCard const &racard,
  44. ObjectAccess oa,
  45. bool fAlwaysZip)
  46. : slbRefCnt::RCObject(),
  47. CAbstractZipValue(racard, oa, fAlwaysZip)
  48. {}
  49. // Operators
  50. // Operations
  51. // Access
  52. // Predicates
  53. // Static Variables
  54. /////////////////////////// PRIVATE /////////////////////////////////
  55. // C'tors/D'tors
  56. // Operators
  57. // Operations
  58. // Access
  59. // Predicates
  60. // Static Variables