FrameManager.h
1019 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
44
45
46
#ifndef FRAMEMANAGER_H
#define FRAMEMANAGER_H
#include "../Application/Application.h"
#include "../XMLManager/XMLManager.h"
#define TREPS_FRAMES_XSD "frames.xsd"
using namespace TREPS::Application;
using namespace TREPS::XMLManager;
namespace TREPS
{
namespace FrameManager
{
class FrameManagerClass
{
public:
FrameManagerClass(void);
~FrameManagerClass(void);
//load frames list file, + xsd validation
bool init(const char *file_path);
//test if a frame exist
bool isFrameExist(const char *frame_id);
//detect frames from string list
void addDetectedFramesFromStringInList(const char *str, t_StringList &framesList);
//detect frames from attributes list
void addDetectedFramesFromAttributesInList(const map<string,string> *attributes, t_StringList &framesList);
//update the frame list file
bool updateFrameList(t_StringList frameList, const char *newFramePath);
private:
ApplicationClass *app;
XMLManagerClass *loader;
};
}
}
#endif