-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathInitDamisServiceFile.h
More file actions
43 lines (32 loc) · 989 Bytes
/
InitDamisServiceFile.h
File metadata and controls
43 lines (32 loc) · 989 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
38
39
40
41
42
43
///////////////////////////////////////////////////////////
// InitDamisServiceFile.h
// Implementation of the Class InitDamisServiceFile
// Created on: 30-Sau-2014 17:06:18
// Original author: Povilas
///////////////////////////////////////////////////////////
#if !defined(INITDAMISSERVICEFILE_H)
#define INITDAMISSERVICEFILE_H
#include "ArffFile.h"
#include <string>
struct FtpFile {
std::string filename;
FILE *stream;
};
/**
* Class that represents Damis service working file
*/
class InitDamisServiceFile : public ArffFile
{
public:
InitDamisServiceFile(std::string fPath, std::string pref);
InitDamisServiceFile(std::string pref);
virtual ~InitDamisServiceFile();
std::string getDownloadFileURI();
private:
std::string downloadFileURI;
bool checkForHttpError();
bool downloadFile();
bool initialize();
static size_t fileWriteDelegeate(void *buffer, size_t size, size_t nmemb, void *stream);
};
#endif // !defined(INITDAMISSERVICEFILE_H)