Mana
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ServerInfo Class Reference

#include <serverinfo.h>

Public Types

using VersionString = std::pair< int, std::string >
 

Public Member Functions

bool isValid () const
 
void clear ()
 
bool operator== (const ServerInfo &other) const
 
bool operator!= (const ServerInfo &other) const
 

Static Public Member Functions

static ServerType parseType (const std::string &type)
 
static uint16_t defaultPortForServerType (ServerType type)
 
static ServerType defaultServerTypeForPort (uint16_t port)
 

Public Attributes

ServerType type = ServerType::Unknown
 
std::string name
 
std::string hostname
 
uint16_t port = 0
 
std::string description
 
VersionString version = std::make_pair(0, std::string())
 
bool save = false
 
bool persistentIp = true
 

Detailed Description

Definition at line 35 of file serverinfo.h.

Member Typedef Documentation

◆ VersionString

using ServerInfo::VersionString = std::pair<int, std::string>

Definition at line 38 of file serverinfo.h.

Member Function Documentation

◆ clear()

void ServerInfo::clear ( )
inline

Definition at line 56 of file serverinfo.h.

◆ defaultPortForServerType()

static uint16_t ServerInfo::defaultPortForServerType ( ServerType  type)
inlinestatic

Definition at line 85 of file serverinfo.h.

◆ defaultServerTypeForPort()

static ServerType ServerInfo::defaultServerTypeForPort ( uint16_t  port)
inlinestatic

Definition at line 99 of file serverinfo.h.

◆ isValid()

bool ServerInfo::isValid ( ) const
inline

Definition at line 51 of file serverinfo.h.

◆ operator!=()

bool ServerInfo::operator!= ( const ServerInfo other) const
inline

Definition at line 67 of file serverinfo.h.

◆ operator==()

bool ServerInfo::operator== ( const ServerInfo other) const
inline

Definition at line 61 of file serverinfo.h.

◆ parseType()

static ServerType ServerInfo::parseType ( const std::string &  type)
inlinestatic

Definition at line 73 of file serverinfo.h.

Member Data Documentation

◆ description

std::string ServerInfo::description

Definition at line 45 of file serverinfo.h.

◆ hostname

std::string ServerInfo::hostname

Definition at line 42 of file serverinfo.h.

◆ name

std::string ServerInfo::name

Definition at line 41 of file serverinfo.h.

◆ persistentIp

bool ServerInfo::persistentIp = true

Definition at line 49 of file serverinfo.h.

◆ port

uint16_t ServerInfo::port = 0

Definition at line 43 of file serverinfo.h.

◆ save

bool ServerInfo::save = false

Definition at line 48 of file serverinfo.h.

◆ type

ServerType ServerInfo::type = ServerType::Unknown

Definition at line 40 of file serverinfo.h.

◆ version

VersionString ServerInfo::version = std::make_pair(0, std::string())

Definition at line 46 of file serverinfo.h.


The documentation for this class was generated from the following file: