26 lines
410 B
C++
26 lines
410 B
C++
|
|
#ifndef HOST_H
|
||
|
|
#define HOST_H
|
||
|
|
|
||
|
|
#include <string>
|
||
|
|
|
||
|
|
namespace DBService {
|
||
|
|
class Host {
|
||
|
|
|
||
|
|
protected:
|
||
|
|
std::string host;
|
||
|
|
|
||
|
|
public:
|
||
|
|
Host();
|
||
|
|
Host(std::string host);
|
||
|
|
Host(Host &host);
|
||
|
|
Host(const Host &host);
|
||
|
|
|
||
|
|
std::string getHostname() const;
|
||
|
|
void setHostname(std::string newHost);
|
||
|
|
|
||
|
|
bool operator==(const Host &h2) const;
|
||
|
|
bool operator!=(const Host &h2) const;
|
||
|
|
};
|
||
|
|
}
|
||
|
|
#endif
|