![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cManifestDir.h>
Public Member Functions | |
cManifestElemData (FILEATTR_MASK_t dwAttrMask=FILEATTR_None, FILE_SIZE_t Size=0, cTimeInt timeChange=cTimeInt::k_nZero, CRC32_t CRC32=cCRC32Table::k_nStart) | |
cManifestElemData (const cFileStatus &rStatus, CRC32_t nCRC32=0) | |
~cManifestElemData () | |
void | InitData (FILEATTR_MASK_t Attributes=FILEATTR_None) |
void | InitDataS (const cFileStatus &rStatus) |
bool | IsAttrMask (FILEATTR_MASK_t dwAttrMask) const noexcept |
bool | isAttrDir () const noexcept |
bool | isAttrHidden () const noexcept |
bool | IsEqual (const cManifestElemData &Test) const |
bool | IsSameFileDataS (const cFileStatus &status) const |
bool | IsSameFileData (const cManifestElemData &Test) const |
Public Attributes | |
FILEATTR_MASK_t | m_Attributes |
Mask of FILEATTR_MASK_t attribute bits. FILEATTR_Hidden, FILEATTR_Directory? More... | |
FILE_SIZE_t | m_Size |
file size in bytes. More... | |
cTimeInt | m_timeChange |
m_mtime = real world time/date of last modification. (UTC)(FAT32 only accurate to 2 sec) More... | |
CRC32_t | m_CRC32 |
32 bit CRC for the file or directory of files. NOTE: is there a trick to get this from the OS?? More... | |
Attributes for a single file/directory element in a cManifestDir. Similar to cFileStatus. attributes, size, time last modified, CRC, Does NOT include file name.
GrayLib::cManifestElemData::cManifestElemData | ( | FILEATTR_MASK_t | dwAttrMask = FILEATTR_None , |
FILE_SIZE_t | Size = 0 , |
||
cTimeInt | timeChange = cTimeInt::k_nZero , |
||
CRC32_t | CRC32 = cCRC32Table::k_nStart |
||
) |
GrayLib::cManifestElemData::cManifestElemData | ( | const cFileStatus & | rStatus, |
CRC32_t | nCRC32 = 0 |
||
) |
GrayLib::cManifestElemData::~cManifestElemData | ( | ) |
void GrayLib::cManifestElemData::InitData | ( | FILEATTR_MASK_t | Attributes = FILEATTR_None | ) |
void GrayLib::cManifestElemData::InitDataS | ( | const cFileStatus & | rStatus | ) |
|
inlinenoexcept |
is this a directory?
|
inlinenoexcept |
Is this hidden? for linux starts with .
|
inlinenoexcept |
bool GrayLib::cManifestElemData::IsEqual | ( | const cManifestElemData & | Test | ) | const |
bool GrayLib::cManifestElemData::IsSameFileData | ( | const cManifestElemData & | Test | ) | const |
bool GrayLib::cManifestElemData::IsSameFileDataS | ( | const cFileStatus & | status | ) | const |
Compare files by time and size, not CRC as it is assumed i have not calculated it yet.
FILEATTR_MASK_t GrayLib::cManifestElemData::m_Attributes |
Mask of FILEATTR_MASK_t attribute bits. FILEATTR_Hidden, FILEATTR_Directory?
CRC32_t GrayLib::cManifestElemData::m_CRC32 |
32 bit CRC for the file or directory of files. NOTE: is there a trick to get this from the OS??
FILE_SIZE_t GrayLib::cManifestElemData::m_Size |
file size in bytes.
cTimeInt GrayLib::cManifestElemData::m_timeChange |
m_mtime = real world time/date of last modification. (UTC)(FAT32 only accurate to 2 sec)