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 terraview/XMLFormatter.h.

Member Function Documentation

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.

Definition at line 32 of file terraview/XMLFormatter.cpp.

References te::common::uri::urisyn::encode(), te::qt::af::XMLFormatter::format(), ProjectMetadata::m_author, and ProjectMetadata::m_title.

Referenced by TerraView::onSaveProjectTriggered(), and TerraView::openProject().


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