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.

68 lines
2.4 KiB

  1. // CntrEnum.h -- Card Container Enumerator
  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_CNTRENUM_H)
  8. #define SLBCSP_CNTRENUM_H
  9. #include <string>
  10. #include <list>
  11. #include <vector>
  12. #include "HCardCtx.h"
  13. #include "CardEnum.h"
  14. class ContainerEnumerator
  15. {
  16. public:
  17. // Types
  18. // C'tors/D'tors
  19. // explicit -- TO DO: compiler erroneously complains if explicit used here
  20. ContainerEnumerator();
  21. explicit
  22. ContainerEnumerator(std::list<HCardContext> const &rlHCardContexts);
  23. // explicit -- TO DO: compiler complains erroneously if explicit used here
  24. ContainerEnumerator(ContainerEnumerator const &rhs);
  25. // Operators
  26. ContainerEnumerator &
  27. operator=(ContainerEnumerator const &rhs);
  28. // Operations
  29. // Access
  30. std::vector<std::string>::const_iterator &
  31. Iterator();
  32. std::vector<std::string> const &
  33. Names() const;
  34. // Predicates
  35. protected:
  36. // Types
  37. // C'tors/D'tors
  38. // Operators
  39. // Operations
  40. // Access
  41. // Predicates
  42. // Variables
  43. private:
  44. // Types
  45. // C'tors/D'tors
  46. // Operators
  47. // Operations
  48. // Access
  49. // Predicates
  50. // Variables
  51. std::vector<std::string> m_vsNames;
  52. std::vector<std::string>::const_iterator m_it;
  53. };
  54. #endif // SLBCSP_CNTRENUM_H