Beam-lib  2.16.3
This is the Beam C++ class library.
BConfig.h
Go to the documentation of this file.
1 /*******************************************************************************
2  * BConfig.h Config File Access
3  * T.Barnaby, BEAM Ltd, 2009-01-28
4  * Copyright (c) 2012 All Right Reserved, Beam Ltd, http://www.beam.ltd.uk
5  *******************************************************************************
6  */
7 #ifndef BConfig_H
8 #define BConfig_H
9 
10 #include <BDict.h>
11 #include <BFile.h>
12 #include <BMutex.h>
13 
15 class BConfig : public BDictString {
16 public:
17  BError open(BString fileName, BString mode = "r");
18  void close();
19  BError read();
20  BError write();
21 
23  BString fileName();
24 
25 private:
26  BMutex olock;
27  BString ofileName;
28  BFile ofile;
29 };
30 #endif
BString findValue(BString name)
Definition: BConfig.cpp:76
Definition: BString.h:18
BError read()
Definition: BConfig.cpp:20
BError open(BString fileName, BString mode="r")
Definition: BConfig.cpp:9
This class implements the configuration file access.
Definition: BConfig.h:15
BError write()
Definition: BConfig.cpp:58
Definition: BMutex.h:14
BString fileName()
Definition: BConfig.cpp:81
Definition: BDict.h:22
void close()
Definition: BConfig.cpp:15
Definition: BError.h:25
File operations class.
Definition: BFile.h:16