This commit is contained in:
jed
2011-10-26 16:10:43 -07:00
parent fed4350ccc
commit 880c763dea
31 changed files with 1012 additions and 35 deletions

View File

@@ -1,5 +1,8 @@
#include "Config.h"
#include "util/pugixml.hpp"
#include "Application.h"
#include "database/SqliteDatabase.h"
#include <boost/lexical_cast.hpp>
using namespace pugi;
@@ -50,5 +53,14 @@ void Config::load()
node= root.child("RPC_PORT");
if(!node.empty()) RPC_PORT=boost::lexical_cast<int>(node.child_value());
/*
node=root.child("DB_TYPE");
if(!node.empty())
{
if( stricmp(node.child_value(),"mysql")==0 ) theApp->setDB(Database::newMysqlDatabase("host","user","pass"));
else theApp->setSerializer(new DiskSerializer());
}else */
theApp->setDB(new SqliteDatabase());
}