#include <cManifestDir.h>
Build/check all the manifests for the root. Override the virtual onDirComplete() to add extra processing to the manifest building. Override the virtual onFilePrep() to exclude files/directories from the manifest.
◆ cManifestBuilder()
◆ ~cManifestBuilder()
GrayLib::cManifestBuilder::~cManifestBuilder |
( |
| ) |
|
|
virtual |
◆ DoBuildManifest()
HRESULT GrayLib::cManifestBuilder::DoBuildManifest |
( |
const FILECHAR_t * |
pszRelativePath = nullptr | ) |
|
Build up the new manifest file(s) from the old manifests and the dir info.
- pszRelativePath = build for all files at this level and below. (nullptr = root)
- Returns
- S_FALSE = not changed. S_OK = changes.
◆ isTrustedDir()
bool GrayLib::cManifestBuilder::isTrustedDir |
( |
const FILECHAR_t * |
pszDirPath | ) |
const |
|
protected |
Do we trust this has not changed ? Should we descend into this dir ? Not on change list ?
◆ onChangeManifest()
call this when some sort of change has been detected.
◆ onDirComplete()
callback when local dir manifest is verified/computed. CRC's are computed so i can match against some other dir.
- pManLocal = the local directories manifest. hRes = S_FALSE = no changes detected in the local files against the local manifest.
◆ onFilePrep()
override these to process the manifests differently.
callback when file is about to be checked. do i want this file ?
- Note
- FileEntry can be changed!
- Returns
- E_NOINTERFACE = don't record this file. Ignore It.
Reimplemented in GrayX::cCmdManifestBuild.
◆ UNITTEST_FRIEND()
◆ cManifestDir
◆ m_bTrustCRC
bool GrayLib::cManifestBuilder::m_bTrustCRC |
trust manifest CRC if file matches by date & size. so don't bother recalculating CRC. default=true.
◆ m_Context
Config info regarding my root and preferences.
◆ m_iChanges
int GrayLib::cManifestBuilder::m_iChanges |
Count changes for the last DoBuildManifest.
◆ m_ManProgress
How far into processing the full tree are we?
◆ m_pChangeList
Don't trust these paths. Assume they have changed. nullptr = descend all directories.
The documentation for this class was generated from the following files: