All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DataSourceInfo.cpp
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 terralib/dataaccess/datasource/DataSourceInfo.cpp
22 
23  \brief A conteiner class for keeping information about a data source.
24 */
25 
26 // TerraLib
27 #include "DataSourceInfo.h"
28 
30 {
31 }
32 
34 {
35 }
36 
37 const std::string& te::da::DataSourceInfo::getId() const
38 {
39  return m_id;
40 }
41 
42 void te::da::DataSourceInfo::setId(const std::string& id)
43 {
44  m_id = id;
45 }
46 
47 const std::string& te::da::DataSourceInfo::getType() const
48 {
49  return m_dsType;
50 }
51 
52 void te::da::DataSourceInfo::setType(const std::string& dsType)
53 {
54  m_dsType = dsType;
55 }
56 
57 const std::string& te::da::DataSourceInfo::getAccessDriver() const
58 {
59  return m_accessDriver;
60 }
61 
62 void te::da::DataSourceInfo::setAccessDriver(const std::string& d)
63 {
64  m_accessDriver = d;
65 }
66 
67 const std::string& te::da::DataSourceInfo::getTitle() const
68 {
69  return m_title;
70 }
71 
72 void te::da::DataSourceInfo::setTitle(const std::string& title)
73 {
74  m_title = title;
75 }
76 
77 const std::string& te::da::DataSourceInfo::getDescription() const
78 {
79  return m_description;
80 }
81 
82 void te::da::DataSourceInfo::setDescription(const std::string& d)
83 {
84  m_description = d;
85 }
86 
87 const std::map<std::string, std::string>& te::da::DataSourceInfo::getConnInfo() const
88 {
89  return m_conninfo;
90 }
91 
92 std::map<std::string, std::string>& te::da::DataSourceInfo::getConnInfo()
93 {
94  return m_conninfo;
95 }
96 
97 void te::da::DataSourceInfo::setConnInfo(const std::map<std::string, std::string>& conninfo)
98 {
99  m_conninfo = conninfo;
100 }
101 
103 {
104  return m_id < rhs.m_id;
105 }
106 
void setDescription(const std::string &d)
void setConnInfo(const std::map< std::string, std::string > &conninfo)
const std::string & getDescription() const
const std::map< std::string, std::string > & getConnInfo() const
void setAccessDriver(const std::string &d)
void setType(const std::string &dsType)
const std::string & getTitle() const
bool operator<(const DataSourceInfo &rhs) const
void setId(const std::string &id)
const std::string & getAccessDriver() const
A conteiner class for keeping information about a data source.
const std::string & getId() const
const std::string & getType() const
A class that represents a data source component.
void setTitle(const std::string &title)