FileFormatManager.h
873 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
#ifndef FILEFORMATMANAGER_H
#define FILEFORMATMANAGER_H
#include "../Application/Application.h"
#include "../XMLManager/XMLManager.h"
#define TREPS_FORMATS_XSD "formats.xsd"
using namespace TREPS::Application;
using namespace TREPS::XMLManager;
namespace TREPS
{
namespace File
{
class FileFormatManagerClass
{
public:
FileFormatManagerClass(void);
~FileFormatManagerClass(void);
//load the file formats xml file = xsd validation
bool init(const char *format_path);
//get file format from id
t_FileFormat getFileFormatFromId(const char *format_id);
//get id from file format
string getFileFormatIdFromFileFormat(t_FileFormat format);
//detect the file format from file path
t_FileFormat detectFileFormat(const char *filePath);
private:
ApplicationClass *app;
XMLManagerClass *loader;
};
}
}
#endif