Granada  1.54.0
Structured layer on top of C++ REST SDK for building server applications in C++. Granada implements sessions, server side plug-in framework, C++ OAuth 2.0 server, data storage access, server script running, server browsing.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
granada::util::file::PropertyFile Class Reference

#include <file.h>

Public Member Functions

 PropertyFile (const std::string &file_path)
 
const std::string GetProperty (const std::string &name)
 
const bool empty ()
 

Detailed Description

Contains methods for parsing a property file and getting the parsed properties.

Example of property file:

            ############################
            # EXAMPLE OF PROPERTY FILE #
            ############################
            # comment on property1
            property1=value1

            # comment on property2
            property2=value2

Constructor & Destructor Documentation

granada::util::file::PropertyFile::PropertyFile ( const std::string &  file_path)

Constructor

Parameters
file_pathPath of the file to parse.

Member Function Documentation

const bool granada::util::file::PropertyFile::empty ( )
inline

Check if file properties are parsed

const std::string granada::util::file::PropertyFile::GetProperty ( const std::string &  name)

Get a property from the property file.

Parameters
name[description]
Returns
[description]

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