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.

45 lines
1013 B

  1. #ifndef _OID_HPP
  2. #define _OID_HPP
  3. class Oid
  4. {
  5. // DESCRIPTION:
  6. // array containing the numeric components of the OID
  7. CWordArray m_nOidComp;
  8. // DESCRIPTION:
  9. // array of pointers to strings, containing symbolic names
  10. // for OID's components.
  11. CObArray m_szOidComp;
  12. public:
  13. // DESCRIPTION:
  14. // constructor
  15. Oid();
  16. // DESCRIPTION:
  17. // Adds a new Oid component to the END of the internal arrays!
  18. // PARAMETERS:
  19. // (in) integer component of the Oid
  20. // (out) symbolic name of the component
  21. // RETURN VALUE:
  22. // 0 on success, -1 on failure
  23. int AddComponent(int nOidComp, const char * szOidComp);
  24. // DESCRIPTION:
  25. // Reverses the components of the OID from both
  26. // m_nOidComp and m_szOidComp
  27. // RETURN VALUE:
  28. // 0 on success, -1 on failure
  29. int ReverseComponents();
  30. // DESCRIPTION:
  31. // Output operator, displays the whole Oid
  32. friend ostream& operator<< (ostream& outStream, const Oid& oid);
  33. // DESCRIPTION:
  34. // destructor
  35. ~Oid();
  36. };
  37. #endif