next up previous contents
Next: select_xxx Up: Config class Previous: Config   Contents

Subsections

Reading and writing

Syntax

short read_conf();
short write_conf(const string filename, const string file_title,
                 const int space_between_column);

Description

The member function read_conf reads a configuration file (specified by constructor). The member function write_conf writes the configuration data in a file. A configuration file is divided in sections, which contain different parameters with their values. A section starts by $[$section_name$]$ and contains one or more parameters an their values: parameter_name: value The ``:'' is mandatory between the name of the parameter and it's value. Lines beginning with a # and white/empty lines are ignored . The following example contains one section named PUMA560_mDH.

[PUMA560_mDH]
DH:         0
Fix:        1
MinPara:    0
dof:        6
Motor:      0

Return Value

Status, as a short int.
0 successful
CAN_NOT_OPEN_FILE



Richard Gourdeau 2004-07-06