owlps/GuiNuMo-server/clientinfo.hh

33 lines
741 B
C++

#ifndef _CLIENTINFO_HH_
#define _CLIENTINFO_HH_
#include <iostream>
#include <string>
#include <vector>
#include "point.hh"
using namespace std;
using std::string;
#define CLIENT_DEFAULT_PORT 7778
#define CLIENT_DEFAULT_IP "127.0.0.1"
#define CLIENT_DEFAULT_ANTENNA_GAIN 2 // Good default value
class ClientInfo
{
protected:
string client_ip;
float antenna_gain;
int client_listen_port;
vector<Point> viterbi_vector1; // Previous vector
vector<Point> viterbi_vector2; // Last vector
float viterbi_distances[5];
public:
ClientInfo(string ip = CLIENT_DEFAULT_IP, int port = CLIENT_DEFAULT_PORT, float antg = CLIENT_DEFAULT_ANTENNA_GAIN);
~ClientInfo();
float getAntennaGain()const { return antenna_gain; };
};
#endif