Logo
  • Main Page
  • Related Pages
  • Modules
  • Classes
  • Files

datasource.cpp

Go to the documentation of this file.
00001 /***************************************************************************
00002  *   Copyright (C) 2005-2007 Stefan Schwarzer, Jens Schneider,             *
00003  *                           Matthias Hardt, Guido Madaus                  *
00004  *                                                                         *
00005  *   Copyright (C) 2007-2008 BerLinux Solutions GbR                        *
00006  *                           Stefan Schwarzer & Guido Madaus               *
00007  *                                                                         *
00008  *   Copyright (C) 2009-2013 BerLinux Solutions GmbH                       *
00009  *                                                                         *
00010  *   Authors:                                                              *
00011  *      Stefan Schwarzer   <stefan.schwarzer@diskohq.org>,                 *
00012  *      Matthias Hardt     <matthias.hardt@diskohq.org>,                   *
00013  *      Jens Schneider     <jens.schneider@diskohq.org>,                   *
00014  *      Guido Madaus       <guido.madaus@diskohq.org>,                     *
00015  *      Patrick Helterhoff <patrick.helterhoff@diskohq.org>,               *
00016  *      René Bählkow       <rene.baehlkow@diskohq.org>                     *
00017  *                                                                         *
00018  *   This library is free software; you can redistribute it and/or         *
00019  *   modify it under the terms of the GNU Lesser General Public            *
00020  *   License version 2.1 as published by the Free Software Foundation.     *
00021  *                                                                         *
00022  *   This library is distributed in the hope that it will be useful,       *
00023  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00024  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU     *
00025  *   Lesser General Public License for more details.                       *
00026  *                                                                         *
00027  *   You should have received a copy of the GNU Lesser General Public      *
00028  *   License along with this library; if not, write to the                 *
00029  *   Free Software Foundation, Inc.,                                       *
00030  *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA            *
00031  **************************************************************************/
00032 
00033 #include "mmstools/datasource.h"
00034 
00035 /**
00036  * @file datasource.cpp
00037  *
00038  * Implementation of DataSource class.
00039  *
00040  * @ingroup mmstools
00041  */
00042 
00043 DataSource::DataSource(const string _dbms,
00044                        const string _dbName,
00045                        const string _address,
00046                        const unsigned int _port,
00047                        const string _user,
00048                        const string _password) :
00049     dbms(_dbms),
00050     address(_address),
00051     port(_port),
00052     dbName(_dbName),
00053     user(_user),
00054     password(_password) {
00055 }
00056 
00057 DataSource::DataSource(const DataSource& d) :
00058     dbms(d.dbms),
00059     address(d.address),
00060     port(d.port),
00061     dbName(d.dbName),
00062     user(d.user),
00063     password(d.password) {
00064 }
00065 
00066 DataSource::~DataSource() {
00067 
00068 }
00069 
00070 void DataSource::setDBMS(const string dbms) {
00071     this->dbms = dbms;
00072 }
00073 
00074 const string DataSource::getDBMS() {
00075     return this->dbms;
00076 }
00077 
00078 void DataSource::setAddress(const string address) {
00079     this->address = address;
00080 }
00081 
00082 const string DataSource::getAddress() {
00083     return this->address;
00084 }
00085 
00086 void DataSource::setPort(const unsigned int port) {
00087     this->port = port;
00088 }
00089 
00090 const unsigned int DataSource::getPort() {
00091     return this->port;
00092 }
00093 
00094 void DataSource::setDatabaseName(const string dbName) {
00095     this->dbName = dbName;
00096 }
00097 
00098 const string DataSource::getDatabaseName() {
00099     return this->dbName;
00100 }
00101 
00102 void DataSource::setUser(const string user) {
00103     this->user = user;
00104 }
00105 
00106 const string DataSource::getUser() {
00107     return this->user;
00108 }
00109 
00110 void DataSource::setPassword(const string password) {
00111     this->password = password;
00112 }
00113 
00114 const string DataSource::getPassword() {
00115     return this->password;
00116 }

Generated by doxygen