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.

106 lines
4.0 KiB

  1. // ACntrKey.h -- Adaptive CoNTaiNeR Key struct declaration
  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. #if !defined(SLBCSP_ACNTRKEY_H)
  8. #define SLBCSP_ACNTRKEY_H
  9. #include "HCardCtx.h"
  10. // Key to an AdaptiveContainer. Together, the HCardContext and
  11. // container name enable uniquely identifies the container. The
  12. // operator== and operator< are used for comparing with a keys
  13. // lexically.
  14. // Forward declaration necessary to satisfy HAdaptiveContainerKey's declaration
  15. class AdaptiveContainerKey;
  16. class HAdaptiveContainerKey
  17. : public slbRefCnt::RCPtr<AdaptiveContainerKey>
  18. {
  19. public:
  20. // Types
  21. // C'tors/D'tors
  22. HAdaptiveContainerKey(AdaptiveContainerKey *pacntrk = 0);
  23. // Operators
  24. // Operations
  25. // Access
  26. // Predicates
  27. protected:
  28. // Types
  29. // C'tors/D'tors
  30. // Operators
  31. // Operations
  32. // Access
  33. // Predicates
  34. // Variables
  35. private:
  36. // Types
  37. // C'tors/D'tors
  38. // Operators
  39. // Operations
  40. // Access
  41. // Predicates
  42. // Variables
  43. };
  44. class AdaptiveContainerKey
  45. : public slbRefCnt::RCObject
  46. {
  47. public:
  48. // Types
  49. // C'tors/D'tors
  50. AdaptiveContainerKey(HCardContext const &rhcardctx,
  51. std::string const &rsContainerName);
  52. ~AdaptiveContainerKey();
  53. // Operators
  54. bool
  55. operator==(AdaptiveContainerKey const &rhs) const;
  56. bool
  57. operator<(AdaptiveContainerKey const &rhs) const;
  58. // Operations
  59. // Access
  60. HCardContext
  61. CardContext() const;
  62. void
  63. ClearCardContext();
  64. std::string
  65. ContainerName() const;
  66. // Predicates
  67. protected:
  68. // Types
  69. // C'tors/D'tors
  70. // Operators
  71. // Operations
  72. // Access
  73. // Predicates
  74. // Variables
  75. private:
  76. // Types
  77. // C'tors/D'tors
  78. // Operators
  79. // Operations
  80. // Access
  81. // Predicates
  82. // Variables
  83. HCardContext m_hcardctx;
  84. std::string m_sContainerName;
  85. };
  86. #endif // SLBCSP_ACNTRKEY_H