This class models the concept of a project for the TerraView. More...
#include "../terralib/maptools/AbstractLayer.h"#include "Config.h"#include <QString>#include <list>Go to the source code of this file.
Classes | |
| struct | ProjectMetadata |
Functions | |
| void | LoadProject (const QString &projFile, ProjectMetadata &proj, std::list< te::map::AbstractLayerPtr > &layers) |
| void | SaveProject (const ProjectMetadata &proj, const std::list< te::map::AbstractLayerPtr > &layers) |
| void LoadProject | ( | const QString & | projFile, |
| ProjectMetadata & | proj, | ||
| std::list< te::map::AbstractLayerPtr > & | layers | ||
| ) |
Definition at line 185 of file Project.cpp.
References ds, te::xml::END_DOCUMENT, te::xml::END_ELEMENT, te::common::Singleton< DataSourceInfoManager >::getInstance(), te::common::Singleton< T >::getInstance(), ProjectMetadata::m_author, ProjectMetadata::m_fileName, ProjectMetadata::m_title, te::xml::ReaderFactory::make(), te::map::serialize::Layer::read(), te::serialize::xml::ReadDataSourceInfo(), te::xml::START_ELEMENT, updateLayerDataSource(), and te::xml::VALUE.
Referenced by TerraView::openProject().
| void SaveProject | ( | const ProjectMetadata & | proj, |
| const std::list< te::map::AbstractLayerPtr > & | layers | ||
| ) |
Definition at line 97 of file Project.cpp.
References te::core::FindInTerraLibPath(), getDataSourceIds(), te::common::Singleton< T >::getInstance(), te::common::Singleton< DataSourceInfoManager >::getInstance(), ProjectMetadata::m_author, ProjectMetadata::m_fileName, ProjectMetadata::m_title, te::xml::AbstractWriterFactory::make(), te::core::URIEncode(), and te::map::serialize::Layer::write().
Referenced by TerraView::onSaveProjectTriggered().