diff options
Diffstat (limited to 'src/unstable/settingsdrivertaf.cpp')
-rw-r--r-- | src/unstable/settingsdrivertaf.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/unstable/settingsdrivertaf.cpp b/src/unstable/settingsdrivertaf.cpp new file mode 100644 index 0000000..164bf0b --- /dev/null +++ b/src/unstable/settingsdrivertaf.cpp | |||
@@ -0,0 +1,29 @@ | |||
1 | #include "bu/settingsdrivertaf.h" | ||
2 | |||
3 | #include "bu/file.h" | ||
4 | #include "bu/taf.h" | ||
5 | |||
6 | #include <stdlib.h> | ||
7 | |||
8 | Bu::SettingsDriverTaf::SettingsDriverTaf() : | ||
9 | pRoot( NULL ) | ||
10 | { | ||
11 | } | ||
12 | |||
13 | Bu::SettingsDriverTaf::~SettingsDriverTaf() | ||
14 | { | ||
15 | } | ||
16 | |||
17 | void Bu::SettingsDriverTaf::init( const Bu::UtfString &sCompany, | ||
18 | const Bu::UtfString &sProduct ) | ||
19 | { | ||
20 | Bu::UtfString us( getenv("HOME") ); | ||
21 | us += "/"; | ||
22 | us += sCompany; | ||
23 | us += "/"; | ||
24 | us += sProduct; | ||
25 | Bu::File fIn( us.get(), Bu::File::Read|Bu::File::Create ); | ||
26 | Bu::TafReader tr( fIn ); | ||
27 | pRoot = tr.readGroup(); | ||
28 | } | ||
29 | |||