summaryrefslogtreecommitdiff
path: root/src/unstable/settingsdrivertaf.cpp
blob: 164bf0bd00a562501e7e0348b4572ab9c5541d4d (plain)
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
#include "bu/settingsdrivertaf.h"

#include "bu/file.h"
#include "bu/taf.h"

#include <stdlib.h>

Bu::SettingsDriverTaf::SettingsDriverTaf() :
	pRoot( NULL )
{
}

Bu::SettingsDriverTaf::~SettingsDriverTaf()
{
}

void Bu::SettingsDriverTaf::init( const Bu::UtfString &sCompany,
		const Bu::UtfString &sProduct )
{
	Bu::UtfString us( getenv("HOME") );
	us += "/";
	us += sCompany;
	us += "/";
	us += sProduct;
	Bu::File fIn( us.get(), Bu::File::Read|Bu::File::Create );
	Bu::TafReader tr( fIn );
	pRoot = tr.readGroup();
}