28 #ifndef __TERRALIB_LAYOUT_INTERNAL_JSON_H
29 #define __TERRALIB_LAYOUT_INTERNAL_JSON_H
33 #include "../property/Property.h"
34 #include "../Config.h"
37 #include <boost/property_tree/ptree.hpp>
61 virtual bool serialize();
63 virtual boost::property_tree::ptree retrievePTree();
65 virtual std::vector<te::layout::Properties*> retrieve();
67 virtual bool isEmpty();
69 virtual void loadFromPath( std::string loadPath );
71 virtual void loadFromProperties( std::vector<te::layout::Properties*> properties );
75 virtual void searchProperty(
Property& property, boost::property_tree::ptree& array, boost::property_tree::ptree& child);
77 virtual void retrieveSubPTree(boost::property_tree::ptree subTree,
Property& prop);
Implementation of .json for Serialization. It is a JSON file. Save or change a file ...
#define TELAYOUTEXPORT
You can use this macro in order to export/import classes and functions from this module.
Abstract class for serialization properties in any file extension.
Abstract class for serialization properties in any file extension.
boost::property_tree::ptree m_array
A property acts like a attribute member of a object and stores the state of this attribute. A set of properties stores the state of an object. Any data type, not included in the convertValue method in the class te::layout::Variant, it will be by default "std::string" value.