Wittyshare  0.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Attributes | List of all members
WsLayoutProperties Class Reference

Layout Properties. More...

#include <WsLayoutProperties.h>

Inheritance diagram for WsLayoutProperties:
Inheritance graph
Collaboration diagram for WsLayoutProperties:
Collaboration graph

Public Member Functions

std::string get (const std::string &section, const std::string &id, const std::string &def)
 

Static Public Member Functions

static WsLayoutPropertiesinstance ()
 Get the singleton instance. More...
 

Protected Member Functions

 WsLayoutProperties ()
 Default Constructor. More...
 
int parse (const std::string &path)
 parse the Json config file More...
 

Protected Attributes

Json::Value m_root
 
bool m_parsed
 

Static Private Attributes

static WsLayoutPropertiesm_instance = 0
 

Detailed Description

Layout Properties.

Used for rendering the site

Definition at line 26 of file WsLayoutProperties.h.

Constructor & Destructor Documentation

WsLayoutProperties::WsLayoutProperties ( )
protected

Default Constructor.

Definition at line 23 of file WsLayoutProperties.cpp.

Here is the caller graph for this function:

Member Function Documentation

std::string WsLayoutProperties::get ( const std::string &  section,
const std::string &  id,
const std::string &  def 
)
virtual

Implements WsAbstractProperties.

Definition at line 37 of file WsLayoutProperties.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

WsLayoutProperties * WsLayoutProperties::instance ( )
static

Get the singleton instance.

Definition at line 28 of file WsLayoutProperties.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

int WsAbstractProperties::parse ( const std::string &  path)
protectedinherited

parse the Json config file

Parameters
paththe path to the configuration file
Returns
SUCCESS if file is ok, FAILURE otherwise

Definition at line 28 of file WsAbstractProperties.cpp.

Here is the caller graph for this function:

Member Data Documentation

WsLayoutProperties * WsLayoutProperties::m_instance = 0
staticprivate

Definition at line 50 of file WsLayoutProperties.h.

bool WsAbstractProperties::m_parsed
protectedinherited

True or false whether the configuration file has already be parsed or no This flag is changed by the WsAbstractProperties::parse method

Definition at line 66 of file WsAbstractProperties.h.

Json::Value WsAbstractProperties::m_root
protectedinherited

Root of the Json tree where. This is where the contents of Json parsed file is stored

Definition at line 60 of file WsAbstractProperties.h.


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