32 lines
477 B
C++
32 lines
477 B
C++
#ifndef _GYR_CONFIG_H
|
|
#define _GYR_CONFIG_H
|
|
|
|
#include <set>
|
|
|
|
#include <getopt.h>
|
|
#include <glibmm.h>
|
|
|
|
#include "protocol.h"
|
|
#include "group.h"
|
|
|
|
class Config {
|
|
private:
|
|
std::list<HostId> _group_hosts;
|
|
int _port;
|
|
Protocol::Type _mode;
|
|
short _index;
|
|
|
|
protected:
|
|
|
|
public:
|
|
|
|
Config(int argc, char **argv);
|
|
|
|
void usage();
|
|
bool isValid();
|
|
std::list<HostId> getGroupHosts();
|
|
int getPort();
|
|
short getIndex();
|
|
Protocol::Type getMode();
|
|
};
|
|
#endif // _GYR_CONFIG_H
|