42 using ConfigMap = std::multimap<std::string, std::string>;
97 void read(std::istream& stream);
170 std::unique_ptr<ConfigImpl> m_pImpl;
Interface for Config entity.
Definition Config.h:34
std::uint16_t advertisePeriod() const
Get advertise period.
const std::string & defaultClientId() const
Get default client ID.
const AuthInfosList & authInfos() const
Get access to list of authentication informations.
ClientConnectionType clientConnectionType() const
Get client side I/O socket connection type.
std::vector< PredefinedTopicInfo > PredefinedTopicsList
Type of list containing predefined topics.
Definition Config.h:56
std::size_t sleepingClientMsgLimit() const
Get limit for max number of messages to accumulate for sleeping clients.
std::vector< std::uint8_t > BinaryData
Type of buffer that contains binary data.
Definition Config.h:45
TopicIdsRange topicIdAllocRange() const
Get range of allowed topic IDs for allocation.
std::multimap< std::string, std::string > ConfigMap
Full configuration map.
Definition Config.h:42
std::uint16_t brokerTcpHostPort() const
Get TCP/IP port of the broker.
unsigned retryCount() const
Get number of retry attempts.
std::uint16_t pubOnlyKeepAlive() const
Get keep alive period for publish only clients.
std::vector< AuthInfo > AuthInfosList
Type of list containing authentication information for multiple clients.
Definition Config.h:67
std::pair< std::uint16_t, std::uint16_t > TopicIdsRange
Range of topic IDs.
Definition Config.h:72
const std::string & brokerTcpHostAddress() const
Get TCP/IP address of the broker.
void read(std::istream &stream)
Read configuration from input stream.
BrokerConnectionType
Broker I/O socket connection type.
Definition Config.h:83
@ BrokerConnectionType_Tcp
TCP/IP.
Definition Config.h:84
@ BrokerConnectionType_ValuesLimit
Limit to available values, must be last.
Definition Config.h:85
std::uint8_t gatewayId() const
Get gateway numeric ID.
const PredefinedTopicsList & predefinedTopics() const
Get access to the list of predefined topics.
unsigned retryPeriod() const
Get retry period.
const std::string & logFile() const
Get log file.
ClientConnectionType
Client I/O socket connection type.
Definition Config.h:76
@ ClientConnectionType_Udp
UDP/IP.
Definition Config.h:77
@ ClientConnectionType_ValuesLimit
Limit to available values, must be last.
Definition Config.h:78
BrokerConnectionType brokerConnectionType() const
Get broker side I/O socket connection type.
const ConfigMap & configMap() const
Get access to the full configuration map.
Main namespace for all classes / functions of the gateway library.
Authentication info for single client.
Definition Config.h:60
std::string password
Password string (from the configuration)
Definition Config.h:63
std::string clientId
Client ID.
Definition Config.h:61
std::string username
Username.
Definition Config.h:62
Info about single predefined topic.
Definition Config.h:49
std::string topic
Topic string.
Definition Config.h:51
std::uint16_t topicId
Numeric topic ID.
Definition Config.h:52
std::string clientId
Client ID.
Definition Config.h:50