#ifndef CMDLINE_H
#define CMDLINE_H
#include <iostream>
#include <string>
class Cmdline
{
private:
bool _e;
bool _n;
std::string _s;
int _t;
std::string _w;
int _x;
bool _h;
bool _v;
std::string _program_name;
int _optind;
public:
Cmdline (int, char **); ~Cmdline (){}
void usage (int status);
void version (int status);
int next_param () { return _optind; }
bool echoDataChannelMessages () const { return _e; }
bool noStun () const { return _n; }
std::string stunServer () const { return _s; }
int stunPort () const { return _t; }
std::string webSocketServer () const { return _w; }
int webSocketPort () const { return _x; }
bool h () const { return _h; }
bool v () const { return _v; }
};
#endif