Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayX::cCmdManifestBuild Class Reference

#include <cCmdManifestBuild.h>

Inheritance diagram for GrayX::cCmdManifestBuild:
GrayLib::cManifestBuilder GrayX::GrayXCmd

Public Member Functions

 cCmdManifestBuild (cStringF sRootDir)
 
virtual HRESULT onFilePrep (cManifestDir *pDir, cFileFindEntry &FileEntry, cManifestElem *pElementOld) override
 override these to process the manifests differently. More...
 
virtual HRESULT DoCmd (const FILECHAR_t *pszArgs) override
 
- Public Member Functions inherited from GrayLib::cManifestBuilder
 cManifestBuilder (cManifestContext &context)
 
virtual ~cManifestBuilder ()
 
HRESULT DoBuildManifest (const FILECHAR_t *pszRelativePath=nullptr)
 
 UNITTEST_FRIEND (cManifestDir)
 

Additional Inherited Members

- Public Attributes inherited from GrayLib::cManifestBuilder
cManifestContextm_Context
 Config info regarding my root and preferences. More...
 
bool m_bTrustCRC
 trust manifest CRC if file matches by date & size. so don't bother recalculating CRC. default=true. More...
 
cArraySortString< FILECHAR_t > * m_pChangeList
 Don't trust these paths. Assume they have changed. nullptr = descend all directories. More...
 
int m_iChanges
 Count changes for the last DoBuildManifest. More...
 
- Protected Member Functions inherited from GrayLib::cManifestBuilder
bool isTrustedDir (const FILECHAR_t *pszDirPath) const
 
virtual HRESULT onDirComplete (cManifestDir *pManLocal, HRESULT hRes)
 
virtual HRESULT onChangeManifest (cManifestDir *pManLocal, const FILECHAR_t *pszElemName)
 
- Protected Attributes inherited from GrayLib::cManifestBuilder
cStreamProgressF m_ManProgress
 How far into processing the full tree are we? More...
 

Detailed Description

Used to build/update directory manifests for a directory of my choosing. root params.

Constructor & Destructor Documentation

◆ cCmdManifestBuild()

GrayX::cCmdManifestBuild::cCmdManifestBuild ( cStringF  sRootDir)

Member Function Documentation

◆ DoCmd()

HRESULT GrayX::cCmdManifestBuild::DoCmd ( const FILECHAR_t pszArgs)
overridevirtual

Implements GrayX::GrayXCmd.

◆ onFilePrep()

HRESULT GrayX::cCmdManifestBuild::onFilePrep ( cManifestDir pManLocal,
cFileFindEntry FileEntry,
cManifestElem pElementOld 
)
overridevirtual

override these to process the manifests differently.

Pick out the directories that can/can't be indexed.

Returns
E_NOINTERFACE = don't use this. Ignore this directory.

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 from GrayLib::cManifestBuilder.


The documentation for this class was generated from the following files: