Project.h
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file Project.h
22 
23  \brief This class models the concept of a project for the TerraView.
24 */
25 
26 #ifndef __TERRALIB_TERRAVIEW_INTERNAL_PROJECT_H
27 #define __TERRALIB_TERRAVIEW_INTERNAL_PROJECT_H
28 
29 // Terralib
30 #include "../terralib/maptools/AbstractLayer.h"
31 #include "Config.h"
32 
33 // Qt
34 #include <QString>
35 
36 // STL
37 #include <list>
38 
40 {
41  QString m_title; //!< The title of the project.
42  QString m_author; //!< The author of the project.
43  bool m_changed; //!< Flag indicating that the project needs to be saved.
44  QString m_fileName; //!< The project file.
45 };
46 
47 void SaveProject(const ProjectMetadata& proj, const std::list<te::map::AbstractLayerPtr>& layers);
48 
49 void LoadProject(const QString& projFile, ProjectMetadata& proj, std::list<te::map::AbstractLayerPtr>& layers);
50 
51 #endif // __TERRALIB_QT_AF_INTERNAL_PROJECT_H
void LoadProject(const QString &projFile, ProjectMetadata &proj, std::list< te::map::AbstractLayerPtr > &layers)
bool m_changed
Flag indicating that the project needs to be saved.
Definition: Project.h:43
QString m_fileName
The project file.
Definition: Project.h:44
void SaveProject(const ProjectMetadata &proj, const std::list< te::map::AbstractLayerPtr > &layers)
QString m_author
The author of the project.
Definition: Project.h:42
Proxy configuration file for TerraView (see terraview_config.h).
QString m_title
The title of the project.
Definition: Project.h:41