All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AbstractGraphBuilder.h
Go to the documentation of this file.
1 /* Copyright (C) 2001-2009 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 AbstractGraphBuilder.h
22 
23  \brief This abstract class provides the common functions for graph
24  builder classes. Each builder strategy has to implement only
25  a public function called build.
26 
27  The graph instance created by this class has to be controlled
28  by the user of this class.
29 */
30 
31 #ifndef __TERRALIB_GRAPH_INTERNAL_ABSTRACTGRAPHBUILDER_H
32 #define __TERRALIB_GRAPH_INTERNAL_ABSTRACTGRAPHBUILDER_H
33 
34 // Terralib Includes
35 #include "../Config.h"
36 
37 // STL Includes
38 #include <string>
39 #include <vector>
40 
41 namespace te
42 {
43  namespace graph
44  {
45 
46  class AbstractGraph;
47  /*!
48  \class AbstractGraphBuilder
49 
50  \brief This abstract class provides the common functions for graph
51  builder classes. Each builder strategy has to implement only
52  a public function called build.
53 
54  The graph instance created by this class has to be controlled
55  by the user of this class.
56  */
57 
59  {
60  public:
61 
62  /*! \brief Default constructor. */
64 
65  /*! \brief Virtual destructor. */
66  virtual ~AbstractGraphBuilder();
67 
68  /** @name Abstract Methods
69  * Method common to each graph builder
70  */
71  //@{
72 
73  /*! \brief Get error message. */
74  std::string getErrorMessage();
75 
76  /*! \brief Get generated graph. */
77  AbstractGraph* getGraph();
78 
79  //@}
80 
81  protected:
82 
83  AbstractGraph* m_graph; //!< Graph object
84 
85  std::string m_errorMessage; //!< Error message
86  };
87 
88  } // end namespace graph
89 } // end namespace te
90 
91 #endif // __TERRALIB_GRAPH_INTERNAL_ABSTRACTGRAPHBUILDER_H
Abstract class used to define the main functions of graph struct. All graph implementations must used...
Definition: AbstractGraph.h:56
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:216
This abstract class provides the common functions for graph builder classes. Each builder strategy ha...
std::string m_errorMessage
Error message.
AbstractGraph * m_graph
Graph object.