OnixS C++ ICE Binary Order Entry Handler 1.1.1
API Documentation
Loading...
Searching...
No Matches
BgwCredentials Class Reference

Public Member Functions

 BgwCredentials ()=default
 BgwCredentials (std::string host, unsigned short port, std::string ipSessionToken)
bool valid () const noexcept
 operator bool () const noexcept
Public Member Functions inherited from Counterparty
 Counterparty ()=default
 Counterparty (std::string host, unsigned short port, std::string ipSessionToken={})
const std::string & host () const noexcept
unsigned short port () const noexcept
const std::string & ipSessionToken () const noexcept

Detailed Description

Definition at line 29 of file BgwCredentialsProvider.h.

Constructor & Destructor Documentation

◆ BgwCredentials() [1/2]

BgwCredentials ( )
default

Initializes a blank instance.

◆ BgwCredentials() [2/2]

BgwCredentials ( std::string host,
unsigned short port,
std::string ipSessionToken )
inline

Fully identified credentials.

Definition at line 36 of file BgwCredentialsProvider.h.

37 : Scheduling::Counterparty(std::move(host), port, std::move(ipSessionToken))
38 {
39 }

Member Function Documentation

◆ operator bool()

operator bool ( ) const
inlineexplicitnoexcept

Definition at line 48 of file BgwCredentialsProvider.h.

49 {
50 return valid();
51 }

◆ valid()

bool valid ( ) const
inlinenoexcept

Checks whether all required fields are present and usable.

Definition at line 42 of file BgwCredentialsProvider.h.

43 {
44 return !host().empty() && !ipSessionToken().empty() && port() != 0;
45 }