OnixS ICE iMpact Multicast Price Feed Handler C++ library 8.18.0
API documentation
Loading...
Searching...
No Matches
Warning Class Reference

Public Member Functions

 Warning (const std::string &source, WarningCode code)
 Warning (const std::string &source, WarningCode code, const std::string &description)
 Warning (const std::string &source, WarningCode code, const std::string &description, FeedId feedId)
 Warning (const Warning &other)
 ~Warning ()
const Optional< FeedId > & feedId () const
WarningCode code () const
const char * description () const
const char * source () const
std::string toString () const
void toString (std::string &) const
Warningoperator= (const Warning &other)

Detailed Description

Definition at line 85 of file Warning.h.

Constructor & Destructor Documentation

◆ Warning() [1/4]

Warning ( const std::string & source,
WarningCode code )

Initializes instance with just a code.

◆ Warning() [2/4]

Warning ( const std::string & source,
WarningCode code,
const std::string & description )

Initializes instance with code and description.

◆ Warning() [3/4]

Warning ( const std::string & source,
WarningCode code,
const std::string & description,
FeedId feedId )

Initializes instance with code, description and feed ID.

◆ Warning() [4/4]

Warning ( const Warning & other)

Initializes as clone of another warning.

◆ ~Warning()

~Warning ( )

Cleans internal resources.

Member Function Documentation

◆ code()

WarningCode code ( ) const
inline

Code of warning.

Definition at line 145 of file Warning.h.

◆ description()

const char * description ( ) const
inline

Human readable description.

Definition at line 150 of file Warning.h.

◆ feedId()

const Optional< FeedId > & feedId ( ) const
inline

Feed ID (if available).

Definition at line 140 of file Warning.h.

◆ operator=()

Warning & operator= ( const Warning & other)

Copies warning attributes from another instance.

◆ source()

const char * source ( ) const
inline

Origin of the warning.

Definition at line 155 of file Warning.h.

◆ toString() [1/2]

std::string toString ( ) const
inline

String presentation of an warning.

Definition at line 160 of file Warning.h.

◆ toString() [2/2]

void toString ( std::string & ) const

Appends presentation of an warning to the string.