1 |
// Host Status |
2 |
// |
3 |
// Douglas Thrift |
4 |
// |
5 |
// $Id$ |
6 |
|
7 |
#ifndef _Host_hpp_ |
8 |
#define _Host_hpp_ |
9 |
|
10 |
#include "HostStatus.hpp" |
11 |
|
12 |
class Host |
13 |
{ |
14 |
private: |
15 |
string host; |
16 |
string name; |
17 |
string address; |
18 |
string platform; |
19 |
string since; |
20 |
public: |
21 |
Host() {} |
22 |
~Host() {} |
23 |
void setHost(const string& host) { this->host = host; } |
24 |
void setName(const string& name) { this->name = name; } |
25 |
void setAddress(const string& address) { this->address = address; } |
26 |
void setPlatform(const string& platform) { this->platform = platform; } |
27 |
void setSince(const string& since); |
28 |
string getHost() const { return host; } |
29 |
string getName() const { return name; } |
30 |
string getAddress() const { return address; } |
31 |
string getPlatform() const { return platform; } |
32 |
string getSince() const { return since; } |
33 |
// friends: |
34 |
friend ostream& operator<<(ostream& output, Host& host); |
35 |
friend istream& operator>>(istream& input, Host& host); |
36 |
}; |
37 |
|
38 |
#endif // _Host_hpp_ |