- Inherits from:
- Object
- Conforms to:
- DConfigHandler
- Declared in:
- DConfig.h
Object
|
+---DConfigWriter
Class Description
The config writer class implements methods for writing a config file.
- Last modified:
- 23-Jul-2006 (DConfig.h)
Instance Variables
- private id <DTextWritable> _dest
- the config file
- private DText *_section
- the current section
- Constructors
- - (DConfigWriter *) init
- Initialise a config writer
- Returns:
- the object
- - (DConfigWriter *) init :(id <DTextWritable>) destination
- Initialise a config writer with a config file
- Parameters:
- destination - the config file
- Returns:
- the object
- Copy constructor
- - shallowCopy
- Do a shallow copy of the object (not implemented)
- Returns:
- the object
- Deconstructor
- - free
- Free the object
- Returns:
- the object
- Writer methods
- - (BOOL) comment :(const char *) comment
- Write a comment in the config file
- Parameters:
- comment - the comment text
- Returns:
- success
- - (BOOL) endConfig
- Process the end of the config file
- Returns:
- success
- - (void) error :(int) number :(const char *) name :(int) lineNumber :(int) columnNumber
- Report an error during the writing of the file
- Parameters:
- number - the error number
name - the name of the config file
lineNumber - the line number in the config file
columnNumber - the column number in the config file
- Returns:
- success
- - (BOOL) option :(const char *) section :(const char *) name :(const char *) value
- Write an option
- Parameters:
- section - the name of the section
name - the name of the option
value - the value of the option
- Returns:
- success
- - (BOOL) section :(const char *) name
- Write the (start of a) section
- Parameters:
- name - the name of the section
- Returns:
- success
- - (BOOL) startConfig
- Process the start of the config file
- Returns:
- success
- - (BOOL) startConfig :(id <DTextWritable>) destination
- Start the writing of a config file
- Parameters:
- destination - the config file
- Returns:
- the object
generated 25-Jul-2006 by ObjcDoc 3.0.0