![]() |
TerraLib 4.1
|
00001 /************************************************************************************ 00002 TerraLib - a library for developing GIS applications. 00003 Copyright 2001-2007 INPE and Tecgraf/PUC-Rio. 00004 00005 This code is part of the TerraLib library. 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation; either 00009 version 2.1 of the License, or (at your option) any later version. 00010 00011 You should have received a copy of the GNU Lesser General Public 00012 License along with this library. 00013 00014 The authors reassure the license terms regarding the warranties. 00015 They specifically disclaim any warranties, including, but not limited to, 00016 the implied warranties of merchantability and fitness for a particular purpose. 00017 The library provided hereunder is on an "as is" basis, and the authors have no 00018 obligation to provide maintenance, support, updates, enhancements, or modifications. 00019 In no event shall INPE and Tecgraf / PUC-Rio be held liable to any party for direct, 00020 indirect, special, incidental, or consequential damages arising out of the use 00021 of this library and its documentation. 00022 *************************************************************************************/ 00023 00030 #ifndef __TERRALIB_INTERNAL_CONNECTION_H 00031 #define __TERRALIB_INTERNAL_CONNECTION_H 00032 00033 // TerraLib 00034 #include "TeDefines.h" 00035 00036 // STL 00037 #include <string> 00038 00039 class TL_DLL TeConnection 00040 { 00041 00042 public: 00043 00048 00050 TeConnection(); 00051 00053 virtual ~TeConnection(); 00054 00056 00061 00062 unsigned int getId() const; 00063 void setId(const unsigned int& id); 00064 00065 std::string getUser() const; 00066 void setUser(const std::string& user); 00067 00068 std::string getHost() const; 00069 void setHost(const std::string& host); 00070 00071 std::string getPassword() const; 00072 void setPassword(const std::string& psw); 00073 00074 std::string getDBMS() const; 00075 void setDBMS(const std::string& name); 00076 00077 std::string getDatabaseName() const; 00078 void setDatabaseName(const std::string& name); 00079 00080 int getPortNumber() const; 00081 void setPortNumber(const int& portNumber); 00082 00084 00085 protected : 00086 00087 unsigned int id_; 00088 00091 00092 std::string host_; 00093 std::string user_; 00094 std::string password_; 00095 std::string database_; 00096 std::string dbmsName_; 00097 int portNumber_; 00098 00100 }; 00101 00102 #endif // __TERRALIB_INTERNAL_CONNECTION_H 00103