Loading...
Searching...
No Matches
LibraryInfo.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
3
4 This file is part of the TerraLib - a Framework for building GIS enabled applications.
5
6 TerraLib is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation, either version 3 of the License,
9 or (at your option) any later version.
10
11 TerraLib is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public License
17 along with TerraLib. See COPYING. If not, write to
18 TerraLib Team at <terralib-team@terralib.org>.
19 */
20
21/*!
22 \file terralib/core/lib/LibraryInfo.h
23
24 \brief Basic information about a library.
25
26 \author Gilberto Ribeiro de Queiroz
27 */
28
29#ifndef __TERRALIB_CORE_LIB_LIBRARYINFO_H__
30#define __TERRALIB_CORE_LIB_LIBRARYINFO_H__
31
32// TerraLib
33#include "../Config.h"
34
35// STL
36#include <string>
37#include <utility>
38#include <vector>
39
40namespace te
41{
42 namespace core
43 {
44
45 //! Describe the module provider.
46 struct Provider
47 {
48 std::string name; //!< Provider name: may be a person or a company.
49 std::string site; //!< The provider home page.
50 std::string email; //!< The provider contact e-mail.
51 };
52
53 //! Describe the host system.
55 {
56 std::string name;
57 std::string version;
58 };
59
60 typedef std::pair<std::string, std::string> Resource;
61
62 typedef std::pair<std::string, std::string> Parameter;
63
64 //! Basic information about a module.
65 struct Info
66 {
67 std::string name; //!< The plugin name: an internal value used to identify the plugin in the system. Must be a unique value.
68 std::string display_name; //!< The plugin name to be displayed in a graphical interface.
69 std::string description; //!< A brief explanation about the plugin.
70 std::string version; //!< The module version.
71 std::string engine; //!< The type of module load engine: C++, JAVA, LUA or any other supported engine.
72 std::string license_description; //!< A brief description about the plugin license.
73 std::string license_URL; //!< An URL where someone can find more information on the license.
74 std::string site; //!< An URL pointing to the module site.
75 Provider provider; //!< Information about the plugin provider.
76 std::vector<std::string> dependencies; //!< The list of required modules.
77 std::vector<Resource> resources; //!< The list of resources used by plugin.
78 std::vector<Parameter> parameters; //!< Any configuration parameter that can be informed to module (map: parameter-name -> parameter-value).
79 HostApplication host_application; //!< Information about the host system. May be used to validate the module version.
80 };
81
82 } // end namespace core
83} // end namespace te
84
85#endif // __TERRALIB_CORE_LIB_LIBRARYINFO_H__
std::pair< std::string, std::string > Parameter
Definition: LibraryInfo.h:62
std::pair< std::string, std::string > Resource
Definition: LibraryInfo.h:60
TerraLib.
Describe the host system.
Definition: LibraryInfo.h:55
Basic information about a module.
Definition: LibraryInfo.h:66
std::string version
The module version.
Definition: LibraryInfo.h:70
std::string name
The plugin name: an internal value used to identify the plugin in the system. Must be a unique value.
Definition: LibraryInfo.h:67
std::string display_name
The plugin name to be displayed in a graphical interface.
Definition: LibraryInfo.h:68
Provider provider
Information about the plugin provider.
Definition: LibraryInfo.h:75
std::vector< std::string > dependencies
The list of required modules.
Definition: LibraryInfo.h:76
std::string license_URL
An URL where someone can find more information on the license.
Definition: LibraryInfo.h:73
std::string engine
The type of module load engine: C++, JAVA, LUA or any other supported engine.
Definition: LibraryInfo.h:71
std::string license_description
A brief description about the plugin license.
Definition: LibraryInfo.h:72
std::vector< Resource > resources
The list of resources used by plugin.
Definition: LibraryInfo.h:77
std::string site
An URL pointing to the module site.
Definition: LibraryInfo.h:74
std::string description
A brief explanation about the plugin.
Definition: LibraryInfo.h:69
std::vector< Parameter > parameters
Any configuration parameter that can be informed to module (map: parameter-name -> parameter-value).
Definition: LibraryInfo.h:78
HostApplication host_application
Information about the host system. May be used to validate the module version.
Definition: LibraryInfo.h:79
Describe the module provider.
Definition: LibraryInfo.h:47
std::string name
Provider name: may be a person or a company.
Definition: LibraryInfo.h:48
std::string email
The provider contact e-mail.
Definition: LibraryInfo.h:50
std::string site
The provider home page.
Definition: LibraryInfo.h:49