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.

82 lines
1.4 KiB

  1. // Active Directory Display Specifier Upgrade Tool
  2. //
  3. // Copyright (c) 2001 Microsoft Corporation
  4. //
  5. // class Amanuensis, records a log of the analysis phase
  6. //
  7. // 8 Mar 2001 sburns
  8. #ifndef AMANUENSIS_HPP_INCLUDED
  9. #define AMANUENSIS_HPP_INCLUDED
  10. // a.man.u.en.sis [ah mannyoo ehnsiss] (plural a.man.u.en.ses [ah mannyoo ehn
  11. // seez]) noun 1.scribe: somebody employed by an individual to write from his
  12. // or her dictation or to copy manuscripts 2.writer�s assistant: a writer�s
  13. // assistant with research and secretarial duties
  14. //
  15. // [Early 17th century. From Latin, formed from a manu, literally, �by hand�
  16. // (in the phrase servus a manu enslaved servant with secretarial duties�).]
  17. class Amanuensis
  18. {
  19. public:
  20. explicit
  21. Amanuensis(int outputInterval = 5);
  22. void
  23. AddEntry(const String& entry);
  24. void
  25. AddErrorEntry(HRESULT hr, int stringResId);
  26. void
  27. AddErrorEntry(HRESULT hr, const String& entry);
  28. void
  29. Flush();
  30. // String
  31. // GetLog() const;
  32. // HRESULT
  33. // SaveLogFile(const String& logFilePath) const;
  34. //
  35. //
  36. //
  37. private:
  38. StringList entries;
  39. int outputInterval;
  40. StringList::iterator lastOutput;
  41. // not implemented: no copying allowed. You can't copy the copyist. Ha!
  42. // I crack myself up.
  43. Amanuensis(const Amanuensis&);
  44. const Amanuensis& operator=(const Amanuensis&);
  45. };
  46. #endif // AMANUENSIS_HPP_INCLUDED