forked from NOVACProject/NOVACProgram
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScannerFileInfo.cpp
39 lines (33 loc) · 987 Bytes
/
ScannerFileInfo.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "StdAfx.h"
#include "scannerfileinfo.h"
CScannerFileInfo::CScannerFileInfo()
{
}
CScannerFileInfo::CScannerFileInfo(char pDiskName, CString pFileName, CString pFileSubfix, long pFileSize, CString pDate, CString pTime)
: diskName(pDiskName),
fileName(pFileName),
fileSuffix(pFileSubfix),
fileSize(pFileSize),
date(pDate),
time(pTime)
{
}
CScannerFileInfo::CScannerFileInfo(const CScannerFileInfo &info2)
: diskName(info2.diskName),
fileName(info2.fileName),
fileSuffix(info2.fileSuffix),
fileSize(info2.fileSize),
date(info2.date),
time(info2.time)
{
}
CScannerFileInfo& CScannerFileInfo::operator=(const CScannerFileInfo& info2)
{
this->date.Format(info2.date);
this->diskName = info2.diskName;
this->fileName.Format(info2.fileName);
this->fileSize = info2.fileSize;
this->fileSuffix.Format(info2.fileSuffix);
this->time.Format(info2.time);
return *this;
}