-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLocalResourceInfo.cpp
More file actions
37 lines (26 loc) · 918 Bytes
/
LocalResourceInfo.cpp
File metadata and controls
37 lines (26 loc) · 918 Bytes
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
#include "LocalResourceInfo.h"
namespace ua { namespace kiev { namespace ukma { namespace downloader {
LocalResourceInfo::LocalResourceInfo() : _url(""), _date(""), _localPath("") {}
LocalResourceInfo::LocalResourceInfo(const string& url,const string& date,const string& localPath) : _url(url), _date(date), _localPath(localPath) {}
LocalResourceInfo::LocalResourceInfo(const LocalResourceInfo& right) : _url(right._url), _date(right._date), _localPath(right._localPath) {}
LocalResourceInfo& LocalResourceInfo::operator =(const LocalResourceInfo& right)
{
if (&right == this) return *(this);
_url = right._url;
_date = right._date;
_localPath = right._localPath;
return *(this);
}
string LocalResourceInfo::getDate() const
{
return _date;
}
string LocalResourceInfo::getUrl() const
{
return _url;
}
string LocalResourceInfo::getLocalPath() const
{
return _localPath;
}
}}}}