windows-nt/Source/XPSP1/NT/admin/dsutils/displayspecifierupgrade/previoussource/amanuensis.hpp

83 lines
1.4 KiB
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
// Active Directory Display Specifier Upgrade Tool
//
// Copyright (c) 2001 Microsoft Corporation
//
// class Amanuensis, records a log of the analysis phase
//
// 8 Mar 2001 sburns
#ifndef AMANUENSIS_HPP_INCLUDED
#define AMANUENSIS_HPP_INCLUDED
// a.man.u.en.sis [ah mannyoo ehnsiss] (plural a.man.u.en.ses [ah mannyoo ehn
// seez]) noun 1.scribe: somebody employed by an individual to write from his
// or her dictation or to copy manuscripts 2.writer<65>s assistant: a writer<65>s
// assistant with research and secretarial duties
//
// [Early 17th century. From Latin, formed from a manu, literally, <20>by hand<6E>
// (in the phrase servus a manu enslaved servant with secretarial duties<65>).]
class Amanuensis
{
public:
explicit
Amanuensis(int outputInterval = 5);
void
AddEntry(const String& entry);
void
AddErrorEntry(HRESULT hr, int stringResId);
void
AddErrorEntry(HRESULT hr, const String& entry);
void
Flush();
// String
// GetLog() const;
// HRESULT
// SaveLogFile(const String& logFilePath) const;
//
//
//
private:
StringList entries;
int outputInterval;
StringList::iterator lastOutput;
// not implemented: no copying allowed. You can't copy the copyist. Ha!
// I crack myself up.
Amanuensis(const Amanuensis&);
const Amanuensis& operator=(const Amanuensis&);
};
#endif // AMANUENSIS_HPP_INCLUDED