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

Public Member Functions

int clientId () const
std::string userId () const
std::string password () const
std::string traderId () const
std::string traderPwd () const
Public Member Functions inherited from ConfigurationBase
bool show () const
void show (std::ostream &out) const
virtual ~ConfigurationBase ()=default

Protected Member Functions

 LogonConfiguration (size_t qty, char **args)
void showOptions (std::ostream &out) const override
Protected Member Functions inherited from ConfigurationBase
 ConfigurationBase (size_t qty, char **args) noexcept
const Optionsoptions () const noexcept

Additional Inherited Members

Static Protected Member Functions inherited from ConfigurationBase
static bool exist (const Options &options, const Char *option)

Detailed Description

Definition at line 530 of file Options.h.

Constructor & Destructor Documentation

◆ LogonConfiguration()

LogonConfiguration ( size_t qty,
char ** args )
inlineprotected

Definition at line 559 of file Options.h.

560 : ConfigurationBase(qty, args)
561 {
562 }

Member Function Documentation

◆ clientId()

int clientId ( ) const
inline

Definition at line 533 of file Options.h.

534 {
535 return argOrDefault(options(), "clientId", Default::ClientId);
536 }
Value argOrDefault(const Options &options, const Char *option, const Value &defaultValue=Value())
Definition Options.h:375

◆ password()

std::string password ( ) const
inline

Definition at line 543 of file Options.h.

544 {
545 return argOrDefault(options(), "password", Default::Password);
546 }

◆ showOptions()

void showOptions ( std::ostream & out) const
inlineoverrideprotectedvirtual

Implements ConfigurationBase.

Definition at line 564 of file Options.h.

565 {
566 out
567 << " --clientId [clientId]" << std::endl
568 << " --userId [userId]" << std::endl
569 << " --password [password]" << std::endl
570 << " --traderId [traderId]" << std::endl
571 << " --traderPwd [traderPwd]" << std::endl;
572 }

◆ traderId()

std::string traderId ( ) const
inline

Definition at line 548 of file Options.h.

549 {
550 return argOrDefault(options(), "traderId", Default::TraderId);
551 }

◆ traderPwd()

std::string traderPwd ( ) const
inline

Definition at line 553 of file Options.h.

554 {
555 return argOrDefault(options(), "traderPwd", Default::TraderPassword);
556 }

◆ userId()

std::string userId ( ) const
inline

Definition at line 538 of file Options.h.

539 {
540 return argOrDefault(options(), "userId", Default::UserId);
541 }