}
/**
- * @brief Copy constructor.
- */
-DiffFileInfo::DiffFileInfo(const DiffFileInfo &info)
-{
- bVersionChecked = info.bVersionChecked;
- flags = info.flags;
- codepage = info.codepage;
- unicoding = info.unicoding;
-}
-
-/**
* @brief Update fileinfo from given file
* @param [in] sFilePath Full path to file/directory to update
*/
int codepage; /**< 8bit codepage, if applicable, 0 is unknown or N/A */
int unicoding; /**< Unicode encoding (ucr::CODESET) */
DiffFileInfo() { Clear(); }
- DiffFileInfo(const DiffFileInfo &info);
CString getEncodingString() const;
// We could stash a pointer here to the parent DIFFITEM
#define new DEBUG_NEW
#endif
-/**
- * @brief Copy constructor.
- */
-DIFFITEM::DIFFITEM(const DIFFITEM &di)
-{
- left = di.left;
- right = di.right;
- diffcode = di.diffcode;
- if (di.sfilename.GetLength())
- sfilename = di.sfilename;
- if (di.sSubdir.GetLength())
- sSubdir = di.sSubdir;
- nsdiffs = di.nsdiffs;
- ndiffs = di.ndiffs;
-}
-
/** @brief Return path to left file, including all but file name */
CString DIFFITEM::getLeftFilepath(CString sLeftRoot) const
{
DIFFCODE() : diffcode(0) { }
DIFFCODE(int diffcode) : diffcode(diffcode) { }
- DIFFCODE(const DIFFCODE &code) : diffcode(code.diffcode) { }
// file/directory
bool isDirectory() const { return ((diffcode & DIFFCODE::DIRFLAG) == DIFFCODE::DIR); }
DIFFITEM() : ndiffs(-1), nsdiffs(-1),
sfilename(_T("")), sSubdir(_T("")) { }
- DIFFITEM(const DIFFITEM &di);
CString getLeftFilepath(CString sLeftRoot) const;
CString getRightFilepath(CString sRightRoot) const;
}
/**
- * @brief Copy constructor.
- */
-FileInfo::FileInfo(const FileInfo &fi)
-{
- ctime = fi.ctime;
- mtime = fi.mtime;
- size = fi.size;
- version = fi.version;
- flags = fi.flags;
-}
-
-/**
* @brief Update fileinfo from given file
* @param [in] sFilePath Full path to file/directory to update
*/
CString version; /**< string of fixed file version, eg, 1.2.3.4 */
FileFlags flags; /**< file attributes */
FileInfo() { Clear(); }
- FileInfo(const FileInfo &fi);
void Update(CString sFilePath);
void Clear();