XMLFormatter Class Reference

A class that formats strings. More...

#include <XMLFormatter.h>

Static Public Member Functions

static void format (ProjectMetadata *p, const std::list< te::map::AbstractLayerPtr > &layers, const bool &encode)
 Formats the project informations. More...
 

Detailed Description

A class that formats strings.

Use this class for changing strings, contained in some TerraLib objects, to XML percentage encode format and/or to human readable format. Use XML formatting before serializing the object to a XML file, for example, and human readable format after read the object from a XML.

Definition at line 57 of file XMLFormatter.h.

Member Function Documentation

static void XMLFormatter::format ( ProjectMetadata p,
const std::list< te::map::AbstractLayerPtr > &  layers,
const bool &  encode 
)
static

Formats the project informations.

Parameters
pThe project.
encodePass true to change for XML percentage format and false for human readable format.

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