OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
DataBaseInfo.h
Go to the documentation of this file.
1#pragma once
2
3// std header
4#include <string>
5
7public:
9 DataBaseInfo(const DataBaseInfo& _other);
11
13
14 bool hasInfoSet(void) const;
15
16 void setDataBaseUrl(const std::string& _url) { m_dbUrl = _url; };
17 const std::string& getDataBaseUrl(void) const { return m_dbUrl; };
18
19 void setSiteId(const std::string& _id) { m_siteId = _id; };
20 const std::string& getSiteId(void) const { return m_siteId; };
21
22 void setCollectionName(const std::string& _collectionName) { m_collectionName = _collectionName; };
23 const std::string& getCollectionName(void) const { return m_collectionName; };
24
25 void setUserName(const std::string& _userName) { m_userName = _userName; };
26 const std::string& getUserName(void) const { return m_userName; };
27
28 void setUserPassword(const std::string& _userPassword) { m_userPassword = _userPassword; };
29 const std::string& getUserPassword(void) const { return m_userPassword; };
30
31private:
32 std::string m_dbUrl;
33 std::string m_siteId;
34 std::string m_collectionName;
35
36 std::string m_userName;
37 std::string m_userPassword;
38
39};
Definition DataBaseInfo.h:6
void setUserPassword(const std::string &_userPassword)
Definition DataBaseInfo.h:28
const std::string & getCollectionName(void) const
Definition DataBaseInfo.h:23
bool hasInfoSet(void) const
Definition DataBaseInfo.cpp:20
const std::string & getUserPassword(void) const
Definition DataBaseInfo.h:29
const std::string & getUserName(void) const
Definition DataBaseInfo.h:26
void setCollectionName(const std::string &_collectionName)
Definition DataBaseInfo.h:22
void setSiteId(const std::string &_id)
Definition DataBaseInfo.h:19
void setUserName(const std::string &_userName)
Definition DataBaseInfo.h:25
const std::string & getDataBaseUrl(void) const
Definition DataBaseInfo.h:17
const std::string & getSiteId(void) const
Definition DataBaseInfo.h:20
DataBaseInfo & operator=(const DataBaseInfo &_other)
Definition DataBaseInfo.cpp:7
DataBaseInfo()
Definition DataBaseInfo.h:8
void setDataBaseUrl(const std::string &_url)
Definition DataBaseInfo.h:16
~DataBaseInfo()
Definition DataBaseInfo.h:10