Section.h
Go to the documentation of this file.
1 /* Copyright (C) 2011-2012 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 src/terralib/qt/plugins/mobile/core/form/Section.h
22 
23 \brief This file defines the section class.
24 */
25 
26 #ifndef __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_SECTION_H
27 #define __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_SECTION_H
28 
29 // TerraLib
30 #include "../../Config.h"
31 
32 // STL
33 #include <string>
34 #include <vector>
35 
36 namespace te
37 {
38  namespace qt
39  {
40  namespace plugins
41  {
42  namespace terramobile
43  {
44  //forward declaration
45  class Form;
46 
47  /*!
48  \class Section
49 
50  \brief This class defines the Section object.
51  */
52 
53  class Section
54  {
55  public:
56 
57  /* \brief Default Constructor */
58  Section();
59 
60  /* \brief Default Destructor*/
61  ~Section();
62 
63  public:
64 
65  std::string getName() { return m_name; }
66 
67  void setName(std::string name) { m_name = name; }
68 
69  std::string getDescription() { return m_description; }
70 
71  void setDescription(std::string desc) { m_description = desc; }
72 
73  std::vector<Form*>& getForms() { return m_forms; }
74 
75  Form* getForm(std::string formName);
76 
77  protected:
78 
79  std::string m_name;
80  std::string m_description;
81 
82  std::vector<Form*> m_forms;
83  };
84 
85  } // end namespace thirdParty
86  } // end namespace plugins
87  } // end namespace qt
88 } // end namespace te
89 
90 
91 #endif // __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_SECTION_H
This class defines the Section object.
Definition: Section.h:53
Form * getForm(std::string formName)
Form
It specifies the form for the attribute.
Definition: Enums.h:112
URI C++ Library.
This class defines the Form object.
Definition: Form.h:55
void setName(std::string name)
Definition: Section.h:67
std::vector< Form * > & getForms()
Definition: Section.h:73
std::vector< Form * > m_forms
Definition: Section.h:82
void setDescription(std::string desc)
Definition: Section.h:71