Subversion Repositories HomeAutomation

Rev

Rev 1309 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1309 Rev 1310
Line 5... Line 5...
5
 *      Author: Mattias Runge
5
 *      Author: Mattias Runge
6
 */
6
 */
7
 
7
 
8
#ifndef DATABASE_H_
8
#ifndef DATABASE_H_
9
#define DATABASE_H_
9
#define DATABASE_H_
-
 
10
 
-
 
11
#include <string>
-
 
12
#include <boost/make_shared.hpp>
-
 
13
#include "xml/Node.h"
-
 
14
#include "utils/Logger.h"
10
 
15
 
11
namespace atom {
16
namespace atom {
12
namespace db {
17
namespace db {
13
 
18
 
-
 
19
using namespace std;
-
 
20
using namespace utils;
-
 
21
 
14
class Database
22
class Database
15
{
23
{
16
public:
24
public:
-
 
25
    typedef boost::shared_ptr<Database> pointer;
-
 
26
 
-
 
27
    virtual ~Database();
-
 
28
 
-
 
29
    static pointer getInstance();
-
 
30
 
-
 
31
    void load(string filename);
-
 
32
 
-
 
33
    xml::Node & getRootNode();
-
 
34
 
-
 
35
private:
17
    Database();
36
    Database();
-
 
37
 
-
 
38
    static pointer Instance;
-
 
39
 
18
    virtual
40
    Logger LOG;
-
 
41
 
19
    ~Database();
42
    xml::Node myXmlNode;
20
};
43
};
21
 
44
 
22
}
45
}
23
}
46
}
24
 
47