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

Public Member Functions

 ArgCarriage (size_t qty, char **args) noexcept
 operator bool () const
const char * operator* () const
void advance ()

Detailed Description

Definition at line 38 of file Options.h.

Constructor & Destructor Documentation

◆ ArgCarriage()

ArgCarriage ( size_t qty,
char ** args )
inlinenoexcept

Definition at line 41 of file Options.h.

42 : qty_(qty)
43 , args_(args)
44 {
45 }

Member Function Documentation

◆ advance()

void advance ( )
inline

Definition at line 63 of file Options.h.

64 {
65 --qty_;
66 ++args_;
67 }

◆ operator bool()

operator bool ( ) const
inline

Definition at line 48 of file Options.h.

49 {
50 return (0 < qty_);
51 }

◆ operator*()

const char * operator* ( ) const
inline

Definition at line 55 of file Options.h.

56 {
57 assert(0 < qty_);
58
59 return *args_;
60 }