Public Member Functions | Static Protected Attributes | Private Member Functions | Private Attributes | List of all members
FilePropertiesProvider Class Reference

#include <properties_providers.h>

Inheritance diagram for FilePropertiesProvider:
Inheritance graph
[legend]

Public Member Functions

void append_file_content (const std::string &path)
 
 FilePropertiesProvider ()
 
bool get_bool (const std::string &id, bool dflt) const override
 
double get_dbl (const std::string &id, double dflt) const override
 
int get_int (const std::string &id, int dflt) const override
 
str get_str (const std::string &id, const str &dflt) const override
 
unsigned get_uint (const std::string &id, unsigned dflt) const override
 

Static Protected Attributes

static constexpr char Comment_Marker = '#'
 
static constexpr char Id_Value_Delimiter = '='
 
static constexpr char Include_Close_Marker = '>'
 
static constexpr char Include_Open_Marker = '<'
 

Private Member Functions

MapPropertiesProvider parse_file (const std::string &path)
 

Private Attributes

MapPropertiesProvider _props
 

Additional Inherited Members

- Protected Types inherited from PropertiesProvider
using str = std::string
 

Detailed Description

Definition at line 71 of file properties_providers.h.

Constructor & Destructor Documentation

FilePropertiesProvider::FilePropertiesProvider ( )
inline

Definition at line 79 of file properties_providers.h.

Member Function Documentation

void FilePropertiesProvider::append_file_content ( const std::string &  path)
inline

Definition at line 81 of file properties_providers.h.

bool FilePropertiesProvider::get_bool ( const std::string &  id,
bool  dflt 
) const
inlineoverridevirtual

Implements PropertiesProvider.

Definition at line 101 of file properties_providers.h.

double FilePropertiesProvider::get_dbl ( const std::string &  id,
double  dflt 
) const
inlineoverridevirtual

Implements PropertiesProvider.

Definition at line 89 of file properties_providers.h.

int FilePropertiesProvider::get_int ( const std::string &  id,
int  dflt 
) const
inlineoverridevirtual

Implements PropertiesProvider.

Definition at line 85 of file properties_providers.h.

str FilePropertiesProvider::get_str ( const std::string &  id,
const str dflt 
) const
inlineoverridevirtual

Implements PropertiesProvider.

Definition at line 93 of file properties_providers.h.

unsigned FilePropertiesProvider::get_uint ( const std::string &  id,
unsigned  dflt 
) const
inlineoverridevirtual

Implements PropertiesProvider.

Definition at line 97 of file properties_providers.h.

MapPropertiesProvider FilePropertiesProvider::parse_file ( const std::string &  path)
inlineprivate

Definition at line 107 of file properties_providers.h.

Member Data Documentation

MapPropertiesProvider FilePropertiesProvider::_props
private

Definition at line 175 of file properties_providers.h.

constexpr char FilePropertiesProvider::Comment_Marker = '#'
staticprotected

Definition at line 73 of file properties_providers.h.

constexpr char FilePropertiesProvider::Id_Value_Delimiter = '='
staticprotected

Definition at line 76 of file properties_providers.h.

constexpr char FilePropertiesProvider::Include_Close_Marker = '>'
staticprotected

Definition at line 75 of file properties_providers.h.

constexpr char FilePropertiesProvider::Include_Open_Marker = '<'
staticprotected

Definition at line 74 of file properties_providers.h.


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


slam_constructor
Author(s): JetBrains Research, OSLL team
autogenerated on Mon Jun 10 2019 15:08:26