libabigail
Loading...
Searching...
No Matches
config Class Reference

The abstraction of the structured content of an .ini file. This roughly follows what is explained at http://en.wikipedia.org/wiki/INI_file. More...

#include <abg-ini.h>

Classes

class  section
 The abstraction of one section of the .ini config. More...
 

Public Types

typedef vector< property_sptrproperties_type
 A convenience typedef for a vector of property_sptr.
 
typedef shared_ptr< sectionsection_sptr
 A convenience typedef for a shared pointer to a config::section.
 
typedef vector< section_sptrsections_type
 A convenience typedef for a vector of config::section_sptr.
 

Public Member Functions

 config (const string &path, sections_type &sections)
 
const string & get_path () const
 
const sections_typeget_sections () const
 
void set_path (const string &path)
 Set the path to the config file.
 
void set_sections (const sections_type &sections)
 Set new sections to the ini config.
 

Detailed Description

The abstraction of the structured content of an .ini file. This roughly follows what is explained at http://en.wikipedia.org/wiki/INI_file.

Definition at line 321 of file abg-ini.h.

Member Typedef Documentation

◆ properties_type

A convenience typedef for a vector of property_sptr.

Definition at line 335 of file abg-ini.h.

◆ section_sptr

shared_ptr<section> section_sptr

A convenience typedef for a shared pointer to a config::section.

Definition at line 329 of file abg-ini.h.

◆ sections_type

A convenience typedef for a vector of config::section_sptr.

Definition at line 332 of file abg-ini.h.

Constructor & Destructor Documentation

◆ config() [1/2]

config ( )

Definition at line 1656 of file abg-ini.cc.

◆ config() [2/2]

config ( const string & path,
sections_type & sections )
Parameters
paththe path to the config file.
sectionsthe sections of the config file.

Definition at line 1651 of file abg-ini.cc.

◆ ~config()

~config ( )
virtual

Definition at line 1660 of file abg-ini.cc.

Member Function Documentation

◆ get_path()

const string & get_path ( ) const
Returns
the path to the config file.

Definition at line 1665 of file abg-ini.cc.

◆ get_sections()

const config::sections_type & get_sections ( ) const
Returns
the sections of the config file.

Definition at line 1677 of file abg-ini.cc.

◆ set_path()

void set_path ( const string & path)

Set the path to the config file.

Parameters
thenew path to the config file.

Definition at line 1672 of file abg-ini.cc.

◆ set_sections()

void set_sections ( const sections_type & sections)

Set new sections to the ini config.

Parameters
sectionsthe new sections to set.

Definition at line 1684 of file abg-ini.cc.


The documentation for this class was generated from the following files: