-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDamisFile.cpp
More file actions
51 lines (40 loc) · 1.08 KB
/
DamisFile.cpp
File metadata and controls
51 lines (40 loc) · 1.08 KB
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
40
41
42
43
44
45
46
47
48
49
50
///////////////////////////////////////////////////////////
// DamisFile.cpp
// Implementation of the Class DamisFile
// Created on: 30-Sau-2014 17:06:18
// Original author: Povilas
///////////////////////////////////////////////////////////
#include "DamisFile.h"
#include "HelperMethods.h"
#include "ServiceSettings.h"
DamisFile::~DamisFile(){
}
/**
* class constructor
*/
DamisFile::DamisFile(std::string preffix){
//Generate input file name with passed preffix
DamisFile::fileName.assign(HelperMethods::generateFileName(preffix));
//Add generated file name to sorage path
DamisFile::filePath.assign(ServiceSettings::localDataFileSavePath + DamisFile::fileName);
//Add generated file name to the http path
DamisFile::fileHttpPath.assign(ServiceSettings::httpDataFileSavePath + DamisFile::fileName);
}
/**
* Returns file name
*/
std::string DamisFile::getFileName(){
return fileName;
}
/**
* Returns local file path
*/
std::string DamisFile::getFilePath(){
return filePath;
}
/**
* Returns http link to file
*/
std::string DamisFile::getHttpPath(){
return fileHttpPath;
}