-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathlayoutdb.h
79 lines (66 loc) · 1.54 KB
/
layoutdb.h
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#ifndef LAYOUT_DB_H
#define LAYOUT_DB_H
#include <iostream>
#include "debug.h"
#include "configdb.h"
using namespace std;
class Layout_NUpDB : public ConfigDB
{
public:
Layout_NUpDB(ConfigFile *inif,const char *section) : ConfigDB(Template)
{
new ConfigDBHandler(inif,section,this);
}
private:
static ConfigTemplate Template[];
};
class Layout_SingleDB : public ConfigDB
{
public:
Layout_SingleDB(ConfigFile *inif,const char *section) : ConfigDB(Template)
{
new ConfigDBHandler(inif,section,this);
}
private:
static ConfigTemplate Template[];
};
class Layout_PosterDB : public ConfigDB
{
public:
Layout_PosterDB(ConfigFile *inif,const char *section) : ConfigDB(Template)
{
new ConfigDBHandler(inif,section,this);
}
private:
static ConfigTemplate Template[];
};
class Layout_CarouselDB : public ConfigDB
{
public:
Layout_CarouselDB(ConfigFile *inif,const char *section) : ConfigDB(Template)
{
new ConfigDBHandler(inif,section,this);
}
private:
static ConfigTemplate Template[];
};
class LayoutDB : public ConfigDB
{
public:
LayoutDB(ConfigFile *inif,const char *section) :
ConfigDB(Template), nupdb(inif,"[Layout_NUp]"),
singledb(inif,"[Layout_Single]"), posterdb(inif,"[Layout_Poster]"),
carouseldb(inif,"[Layout_Carousel]")
{
Debug[TRACE] << "In LayoutDB constructor" << endl;
new ConfigDBHandler(inif,section,this);
}
// Add DBs for each layout type here
Layout_NUpDB nupdb;
Layout_SingleDB singledb;
Layout_PosterDB posterdb;
Layout_CarouselDB carouseldb;
protected:
static ConfigTemplate Template[];
};
#endif