company logo

IniFile :: IniFile - Constructor

The constructor provides a reference to an ini-file (option settings) for the application.

Implementation overview

Implementation details

  1. Copy constructor
    IniFile  :: IniFile ( odaba::utils::IniFile &cIniFile )

    The constructor creates a handle copy for the configuration file object passed in cIniFile.

    • cIniFile - Reference to configuration or ini-file
  2. to list
  3. Dummy constructor
    IniFile  :: IniFile (  )

    The function creates an empty ini-file handle (no ini-file object is referenced).

  4. to list
  5. Create form file
    IniFile  :: IniFile ( odaba::String &sFilePath )

    The function creates an ini-file object and initializes the class from the file passed in sFilePath. Whether a classical ini-file or an XML configuration file is processed depends on the first characters in the text file. When the file starts with <?xml, an XML configuration file is assumed, otherwise a classical ini-file.

    Notes:

    XML configuration files support multiple configurations.

    • sFilePath - Complete file path
  6. to list