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>
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 |
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.
|
virtualinherited |
Definition at line 54 of file Serialization.cpp.
|
virtualinherited |
Definition at line 64 of file Serialization.cpp.
|
virtualinherited |
Definition at line 49 of file Serialization.cpp.
|
virtual |
Implements te::layout::Serialization.
|
virtual |
Implements te::layout::Serialization.
Definition at line 219 of file JSON.cpp.
References TE_TR.
Referenced by te::layout::JSONTemplate::importTemplate().
|
virtual |
Implements te::layout::Serialization.
Definition at line 256 of file JSON.cpp.
References te::layout::Variant::convertToString(), te::layout::Property::getName(), te::layout::EnumType::getName(), te::layout::Properties::getProperties(), te::layout::Property::getType(), te::layout::Properties::getTypeObj(), and te::layout::Property::getValue().
Referenced by te::layout::JSONTemplate::exportTemplate().
|
virtual |
Implements te::layout::Serialization.
Definition at line 104 of file JSON.cpp.
References te::layout::Properties::addProperty(), te::layout::Property::clear(), te::layout::Variant::fromPtree(), te::layout::AbstractEnum::getEnum(), te::layout::Enums::getEnumDataType(), te::layout::Enums::getEnumObjectType(), te::common::Singleton< Enums >::getInstance(), te::layout::Property::setName(), te::layout::Properties::setTypeObj(), and te::layout::Property::setValue().
Referenced by te::layout::JSONTemplate::importTemplate().
|
virtual |
|
protectedvirtual |
|
protectedvirtual |
Definition at line 306 of file JSON.cpp.
References te::layout::Variant::convertToString(), te::layout::Property::getName(), te::layout::EnumType::getName(), te::layout::Property::getSubProperty(), te::layout::Property::getType(), and te::layout::Property::getValue().
|
virtual |
Implements te::layout::Serialization.
Definition at line 59 of file JSON.cpp.
References TE_TR.
Referenced by te::layout::JSONTemplate::exportTemplate().
|
virtualinherited |
Definition at line 59 of file Serialization.cpp.
|
virtualinherited |
Definition at line 44 of file Serialization.cpp.
Referenced by te::layout::JSONTemplate::exportTemplate(), and te::layout::JSONTemplate::importTemplate().
|
protected |
|
protectedinherited |
Definition at line 74 of file Serialization.h.
|
protectedinherited |
Definition at line 76 of file Serialization.h.
|
protectedinherited |
Definition at line 77 of file Serialization.h.
|
protectedinherited |
Definition at line 75 of file Serialization.h.