Leaked source code of windows server 2003
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.

128 lines
3.5 KiB

  1. // V2DataObj.h: interface for the CV2DataObject class.
  2. //
  3. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  4. // 1999. This computer program includes Confidential, Proprietary
  5. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  6. // use, disclosure, and/or reproduction is prohibited unless authorized
  7. // in writing. All Rights Reserved.
  8. //////////////////////////////////////////////////////////////////////
  9. // Note: This file should only be included by the CCI, not directly
  10. // by the client.
  11. #if !defined(SLBCCI_V2DATAOBJ_H)
  12. #define SLBCCI_V2DATAOBJ_H
  13. #include <string>
  14. #include <memory> // for auto_ptr
  15. #include <slbRCObj.h>
  16. #include "iop.h"
  17. #include "slbarch.h"
  18. #include "ADataObj.h"
  19. namespace cci {
  20. class CV2Card;
  21. class CDataObjectInfoRecord;
  22. class CV2DataObject
  23. : public CAbstractDataObject
  24. {
  25. public:
  26. // Types
  27. // C'tors/D'tors
  28. CV2DataObject(CV2Card const &rv2card,
  29. ObjectAccess oa);
  30. CV2DataObject(CV2Card const &rv2card,
  31. SymbolID sidHandle,
  32. ObjectAccess oa);
  33. virtual
  34. ~CV2DataObject() throw();
  35. // Operators
  36. // Operations
  37. virtual void
  38. Application(std::string const &rstr);
  39. virtual void
  40. Label(std::string const &rstrLabel);
  41. static CV2DataObject *
  42. Make(CV2Card const &rv2card,
  43. SymbolID sidHandle,
  44. ObjectAccess oa);
  45. virtual void
  46. Modifiable(bool flag);
  47. // Access
  48. virtual std::string
  49. Application();
  50. SymbolID
  51. Handle();
  52. virtual std::string
  53. Label();
  54. virtual bool
  55. Modifiable();
  56. virtual bool
  57. Private();
  58. // Predicates
  59. protected:
  60. // Types
  61. // C'tors/D'tors
  62. // Operators
  63. // Operations
  64. virtual void
  65. DoDelete();
  66. virtual void
  67. DoValue(ZipCapsule const &rzc);
  68. // Access
  69. virtual ZipCapsule
  70. DoValue();
  71. // Predicates
  72. virtual bool
  73. DoEquals(CAbstractDataObject const &rhs) const;
  74. // Variables
  75. private:
  76. // Types
  77. // C'tors/D'tors
  78. CV2DataObject(CV2DataObject const &rhs);
  79. // not defined, copying not allowed.
  80. // Operators
  81. CV2DataObject &
  82. operator=(CV2DataObject const &rhs);
  83. // not defined, initialization not allowed.
  84. // Operations
  85. void
  86. Setup(CV2Card const &rv2card);
  87. // Access
  88. // Predicates
  89. // Variables
  90. SymbolID m_sidHandle;
  91. std::auto_ptr<CDataObjectInfoRecord> m_apcir;
  92. };
  93. }
  94. #endif // !defined(SLBCCI_CERT_H)