#include <EchoLinkStationData.h>
Definition at line 108 of file EchoLinkStationData.h.
The status of the station in the directory server
STAT_UNKNOWN | The state is unknown. |
STAT_OFFLINE | The state is offline. |
STAT_ONLINE | The state is online. |
STAT_BUSY | The state is busy. |
Definition at line 114 of file EchoLinkStationData.h.
EchoLink::StationData::StationData | ( | void | ) |
Default constructor.
EchoLink::StationData::StationData | ( | const StationData & | rhs | ) | [inline] |
static std::string EchoLink::StationData::statusStr | ( | Status | status | ) | [static] |
Translate a status code to a string.
status | The status code to translate |
void EchoLink::StationData::clear | ( | void | ) |
Clear the contents and reset to default values.
void EchoLink::StationData::setCallsign | ( | const std::string & | callsign | ) |
Set the callsign.
callsign | The callsign to set |
const std::string& EchoLink::StationData::callsign | ( | void | ) | const [inline] |
Get the callsign.
Definition at line 160 of file EchoLinkStationData.h.
void EchoLink::StationData::setData | ( | const char * | data | ) |
Set station data from a string as represented in the directory server.
data | The data to set |
void EchoLink::StationData::setStatus | ( | Status | status | ) | [inline] |
Set the status.
status | The new status to set |
Definition at line 179 of file EchoLinkStationData.h.
Status EchoLink::StationData::status | ( | void | ) | const [inline] |
std::string EchoLink::StationData::statusStr | ( | void | ) | const [inline] |
Return the string representation of the status.
Definition at line 191 of file EchoLinkStationData.h.
Referenced by EchoLink::Directory::statusStr().
void EchoLink::StationData::setTime | ( | const std::string & | time | ) | [inline] |
Set the time.
time | The time to set |
Definition at line 197 of file EchoLinkStationData.h.
const std::string& EchoLink::StationData::time | ( | void | ) | const [inline] |
void EchoLink::StationData::setDescription | ( | const std::string & | desc | ) | [inline] |
Set the description/location string.
desc | The description string to set |
Definition at line 209 of file EchoLinkStationData.h.
const std::string& EchoLink::StationData::description | ( | void | ) | const [inline] |
Get the description/location string.
Definition at line 215 of file EchoLinkStationData.h.
void EchoLink::StationData::setId | ( | int | id | ) | [inline] |
Set the EchoLink ID number.
id | The new id |
Definition at line 221 of file EchoLinkStationData.h.
int EchoLink::StationData::id | ( | void | ) | const [inline] |
Get the EchoLink ID number.
Definition at line 227 of file EchoLinkStationData.h.
void EchoLink::StationData::setIp | ( | const Async::IpAddress & | ip | ) | [inline] |
Set the IP address.
ip | The IP address to set |
Definition at line 233 of file EchoLinkStationData.h.
const Async::IpAddress EchoLink::StationData::ip | ( | void | ) | const [inline] |
Get the IP address.
Definition at line 239 of file EchoLinkStationData.h.
std::string EchoLink::StationData::ipStr | ( | void | ) | const [inline] |
Get the string representation of the IP address.
Definition at line 245 of file EchoLinkStationData.h.
std::string EchoLink::StationData::code | ( | void | ) | const [inline] |
Get the code representation of the callsign.
Definition at line 259 of file EchoLinkStationData.h.
StationData& EchoLink::StationData::operator= | ( | const StationData & | rhs | ) |
Assignment operator.
rhs | Right Hand Side expression |
std::ostream& operator<< | ( | std::ostream & | os, | |
const StationData & | station | |||
) | [friend] |
Output stream operator.
os | The stream to output data to | |
station | The station data to output to the stream |
const int EchoLink::StationData::MAXCALL = 15 [static] |
const int EchoLink::StationData::MAXDATA = 45 [static] |
const int EchoLink::StationData::MAXDESC = 27 [static] |
const int EchoLink::StationData::MAXID = 7 [static] |
const int EchoLink::StationData::MAXIP = 20 [static] |