File: swconfig.3

package info (click to toggle)
sword 1.5.3-3woody2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 20,484 kB
  • ctags: 11,105
  • sloc: cpp: 49,665; ansic: 13,335; sh: 8,730; pascal: 3,433; tcl: 1,602; makefile: 988; perl: 565; sed: 93
file content (100 lines) | stat: -rw-r--r-- 2,266 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
.TH "SWConfig" 3 "5 Oct 2001" "The Sword Project" \" -*- nroff -*-
.ad l
.nh
.SH NAME
SWConfig \- The class to read and save settings using a file on disk. 
.SH SYNOPSIS
.br
.PP
\fC#include <swconfig.h>\fR
.PP
.SS Public Methods

.in +1c
.ti -1c
.RI "\fBSWConfig\fR (const char *ifilename)"
.br
.RI "\fIConstructor of SWConfig.\fR"
.ti -1c
.RI "virtual \fB~SWConfig\fR ()"
.br
.ti -1c
.RI "virtual void \fBLoad\fR ()"
.br
.RI "\fILoad from disk Load the contzent from disk.\fR"
.ti -1c
.RI "virtual void \fBSave\fR ()"
.br
.RI "\fISave to disk Save the content of this config object to disk.\fR"
.ti -1c
.RI "virtual SWConfig& \fBoperator+=\fR (SWConfig &addFrom)"
.br
.RI "\fIMerges the values of addFrom.\fR"
.ti -1c
.RI "virtual ConfigEntMap& \fBoperator[]\fR (const char *section)"
.br
.RI "\fIGet a section This is an easy way to get and store config values.\fR"
.in -1c
.SS Public Attributes

.in +1c
.ti -1c
.RI "string \fBfilename\fR"
.br
.RI "\fIThe filename used by this SWConfig object.\fR"
.ti -1c
.RI "SectionMap \fBSections\fR"
.br
.RI "\fIMap of available sections The map of available sections.\fR"
.in -1c
.SS Private Methods

.in +1c
.ti -1c
.RI "char \fBgetline\fR (FILE *fp, string &line)"
.br
.in -1c
.SH DETAILED DESCRIPTION
.PP 
The class to read and save settings using a file on disk.
.PP
Definition at line 56 of file swconfig.h.
.SH CONSTRUCTOR & DESTRUCTOR DOCUMENTATION
.PP 
.SS SWConfig::SWConfig (const char * ifilename)
.PP
Constructor of SWConfig.
.PP
\fBParameters: \fR
.in +1c
.TP
\fB\fIifilename\fR\fR
The file, which should be used for this config. 
.SH MEMBER FUNCTION DOCUMENTATION
.PP 
.SS SWConfig & SWConfig::operator+= (SWConfig & addFrom)\fC [virtual]\fR
.PP
Merges the values of addFrom.
.PP
\fBParameters: \fR
.in +1c
.TP
\fB\fIThe\fR\fR
config which values should be merged to this config object. Already existing values will be overwritten. 
.SS ConfigEntMap & SWConfig::operator[] (const char * section)\fC [virtual]\fR
.PP
Get a section This is an easy way to get and store config values.
.PP
The following will work:
.br

.PP
.nf
 SWConfig config("/home/user/.setttings");
 config["Colors"]["Background"] = "red";
.fi
 

.SH AUTHOR
.PP 
Generated automatically by Doxygen for The Sword Project from the source code.