VLink 2.0.0
A high-performance communication middleware
Loading...
Searching...
No Matches
vlink::Status::Unknown Struct Referencefinal

Placeholder status returned when the transport reports an unrecognised event type. More...

#include <status.h>

Inheritance diagram for vlink::Status::Unknown:
Collaboration diagram for vlink::Status::Unknown:

Public Member Functions

Type get_type () const override
 Returns kUnknown.
std::string get_string () const override
 Returns "Unknown".

Friends

VLINK_EXPORT friend std::ostream & operator<< (std::ostream &ostream, const Unknown &status) noexcept
 Writes "Unknown" to ostream.

Additional Inherited Members

Detailed Description

Placeholder status returned when the transport reports an unrecognised event type.

Callers should check get_type() == kUnknown and skip processing.

Member Function Documentation

◆ get_string()

std::string vlink::Status::Unknown::get_string ( ) const
nodiscardoverridevirtual

Returns "Unknown".

Returns
Descriptive string.

Implements vlink::Status::Base.

◆ get_type()

Type vlink::Status::Unknown::get_type ( ) const
nodiscardoverridevirtual

Returns kUnknown.

Returns
Always kUnknown.

Implements vlink::Status::Base.

◆ operator<<

VLINK_EXPORT friend std::ostream & operator<< ( std::ostream & ostream,
const Unknown & status )
friend

Writes "Unknown" to ostream.

Parameters
ostreamOutput stream.
statusThis Unknown status.
Returns
Reference to ostream.

The documentation for this struct was generated from the following file: