azure-core-amqp
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Azure::Core::Amqp::Models::AmqpTimestamp Class Referencefinal

An AMQP timestamp value. More...

#include <amqp_value.hpp>

Public Member Functions

 AmqpTimestamp (std::chrono::milliseconds const &values)
 Construct a new AmqpTimestamp object .
 
 AmqpTimestamp (AmqpValue const &value)
 Construct a new AmqpSymbol object from an existing uAMQP AMQP_VALUE item.
 
 AmqpTimestamp (const AmqpTimestamp &other)=default
 Copy constructor.
 
AmqpTimestampoperator= (const AmqpTimestamp &other)=default
 Copy Assignment operator.
 
 AmqpTimestamp (AmqpTimestamp &&other) noexcept=default
 Move constructor.
 
AmqpTimestampoperator= (AmqpTimestamp &&other) noexcept=default
 Move Assignment operator.
 
AmqpValue AsAmqpValue () const
 Convert this AmqpTimestamp to an AmqpValue.
 
 operator std::chrono::milliseconds () const
 Convert an AmqpTimestamp instance to a std::chrono::milliseconds.
 
bool operator< (AmqpTimestamp const &that)
 Compare this AMQP Timestamp with another.
 

Detailed Description

Defined in AMQP Core Types section 1.6.19.

Constructor & Destructor Documentation

◆ AmqpTimestamp()

Azure::Core::Amqp::Models::AmqpTimestamp::AmqpTimestamp ( AmqpValue const &  value)
Remarks
Note that this does NOT capture the passed in AMQP_VALUE object, the caller is responsible for freeing that object.
This is an internal accessor and should never be used by code outside the AMQP implementation.
Parameters
value- the AMQP "binary" value to capture.

Member Function Documentation

◆ AsAmqpValue()

AmqpValue Azure::Core::Amqp::Models::AmqpTimestamp::AsAmqpValue ( ) const
Returns
An AmqpValue containing this AmqpTimestamp.

◆ operator<()

bool Azure::Core::Amqp::Models::AmqpTimestamp::operator< ( AmqpTimestamp const &  that)
inline
Parameters
that- the other AMQP Timestamp to compare with.
Returns
true if this AMQP Timestamp is less than the other.

The documentation for this class was generated from the following files: