Last change
on this file since 10383 was 10378, checked in by tbretz, 14 years ago |
New classes replacing ServiceList soon.
|
File size:
927 bytes
|
Line | |
---|
1 | #ifndef FACT_DimServerList
|
---|
2 | #define FACT_DimServerList
|
---|
3 |
|
---|
4 | #include <vector>
|
---|
5 | #include <string>
|
---|
6 |
|
---|
7 | #include "dic.hxx"
|
---|
8 |
|
---|
9 | class DimServerList : public DimClient
|
---|
10 | {
|
---|
11 | public:
|
---|
12 | typedef std::vector<std::string> ServerList;
|
---|
13 |
|
---|
14 | private:
|
---|
15 | DimInfo fDimServers; /// A DimInfo to retrieve the SERVER_LIST from teh DNS server
|
---|
16 | ServerList fServerList; /// A list with the available servers
|
---|
17 |
|
---|
18 | virtual void AddServer(const std::string &) { };
|
---|
19 | virtual void RemoveServer(const std::string &) { };
|
---|
20 | virtual void RemoveAllServers() { };
|
---|
21 |
|
---|
22 | protected:
|
---|
23 | void infoHandler();
|
---|
24 |
|
---|
25 | public:
|
---|
26 | DimServerList();
|
---|
27 |
|
---|
28 | /// @returns a reference to the list of servers
|
---|
29 | const ServerList &GetServerList() const { return fServerList; }
|
---|
30 |
|
---|
31 | /// @returns whether the given server is in the list or not
|
---|
32 | /// @param server string with the server which availability should be checked
|
---|
33 | bool HasServer(const std::string &server) const;
|
---|
34 | };
|
---|
35 |
|
---|
36 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.