OnixS CME Drop Copy Handler C++ library 5.7.1
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 Warning &other)
 ~Warning ()
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 53 of file Warning.h.

Constructor & Destructor Documentation

◆ Warning() [1/3]

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

Initializes instance with just a code.

◆ Warning() [2/3]

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

Initializes instance with code and description.

◆ Warning() [3/3]

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 98 of file Warning.h.

◆ description()

const char * description ( ) const
inline

Human readable description.

Definition at line 103 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 108 of file Warning.h.

◆ toString() [1/2]

std::string toString ( ) const
inline

String presentation of an warning.

Definition at line 113 of file Warning.h.

◆ toString() [2/2]

void toString ( std::string & ) const

Appends presentation of an warning to the string.