All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::layout::JSON Class Reference

Implementation of .json for Serialization. It is a JSON file. Save or change a file .json and serializes the properties of the objects, MVC component. More...

#include <JSON.h>

Inheritance diagram for te::layout::JSON:
te::layout::Serialization

Public Member Functions

virtual std::string getLoadPath ()
 
virtual std::string getRootKey ()
 
virtual std::string getSerializationPath ()
 
virtual bool isEmpty ()
 
 JSON ()
 
virtual void loadFromPath (std::string loadPath)
 
virtual void loadFromProperties (std::vector< te::layout::Properties * > properties)
 
virtual std::vector
< te::layout::Properties * > 
retrieve ()
 
virtual boost::property_tree::ptree retrievePTree ()
 
virtual bool serialize ()
 
virtual void setRootKey (std::string rootKey)
 
virtual void setSerializationPath (std::string path)
 
virtual ~JSON ()
 

Protected Member Functions

virtual void retrieveSubPTree (boost::property_tree::ptree subTree, Property &prop)
 
virtual void searchProperty (Property &property, boost::property_tree::ptree &array, boost::property_tree::ptree &child)
 

Protected Attributes

boost::property_tree::ptree m_array
 
std::string m_loadPath
 
std::vector
< te::layout::Properties * > 
m_properties
 
std::string m_rootKey
 
std::string m_serializationPath
 

Detailed Description

Implementation of .json for Serialization. It is a JSON file. Save or change a file .json and serializes the properties of the objects, MVC component.

See also
te::layout::Serialization

Definition at line 53 of file JSON.h.

Constructor & Destructor Documentation

te::layout::JSON::JSON ( )

Definition at line 49 of file JSON.cpp.

te::layout::JSON::~JSON ( )
virtual

Definition at line 54 of file JSON.cpp.

Member Function Documentation

std::string te::layout::Serialization::getLoadPath ( )
virtualinherited

Definition at line 54 of file Serialization.cpp.

std::string te::layout::Serialization::getRootKey ( )
virtualinherited

Definition at line 64 of file Serialization.cpp.

std::string te::layout::Serialization::getSerializationPath ( )
virtualinherited

Definition at line 49 of file Serialization.cpp.

bool te::layout::JSON::isEmpty ( )
virtual

Implements te::layout::Serialization.

Definition at line 214 of file JSON.cpp.

void te::layout::JSON::loadFromPath ( std::string  loadPath)
virtual

Implements te::layout::Serialization.

Definition at line 219 of file JSON.cpp.

References TE_TR.

Referenced by te::layout::JSONTemplate::importTemplate().

boost::property_tree::ptree te::layout::JSON::retrievePTree ( )
virtual

Definition at line 99 of file JSON.cpp.

void te::layout::JSON::retrieveSubPTree ( boost::property_tree::ptree  subTree,
Property prop 
)
protectedvirtual
void te::layout::JSON::searchProperty ( Property property,
boost::property_tree::ptree &  array,
boost::property_tree::ptree &  child 
)
protectedvirtual
bool te::layout::JSON::serialize ( )
virtual

Implements te::layout::Serialization.

Definition at line 59 of file JSON.cpp.

References TE_TR.

Referenced by te::layout::JSONTemplate::exportTemplate().

void te::layout::Serialization::setRootKey ( std::string  rootKey)
virtualinherited

Definition at line 59 of file Serialization.cpp.

void te::layout::Serialization::setSerializationPath ( std::string  path)
virtualinherited

Member Data Documentation

boost::property_tree::ptree te::layout::JSON::m_array
protected

Definition at line 79 of file JSON.h.

std::string te::layout::Serialization::m_loadPath
protectedinherited

Definition at line 74 of file Serialization.h.

std::vector<te::layout::Properties*> te::layout::Serialization::m_properties
protectedinherited

Definition at line 76 of file Serialization.h.

std::string te::layout::Serialization::m_rootKey
protectedinherited

Definition at line 77 of file Serialization.h.

std::string te::layout::Serialization::m_serializationPath
protectedinherited

Definition at line 75 of file Serialization.h.


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