ANNA Suite
2020b
Multipurpose development suite for Telco applications
|
#include <Time.hpp>
Classes | |
struct | Timestamp |
Public Member Functions | |
virtual | ~Time () |
U32 | getTimestamp (Timestamp::_v timestampType=Timestamp::NTP) const |
void | setTimestamp (const U32 ×tamp, Timestamp::_v timestampType=Timestamp::NTP) |
std::string | getFormatName () const |
std::string | asPrintableString () noexcept(false) |
std::string | asString () noexcept(false) |
void | decode (const char *buffer, const int size) noexcept(false) |
Diameter Time container (NTP timestamp)
|
inlinevirtualnoexcept |
Gets the natural/smart string representation for avp data (format-dependent content) Used in diameter message 'data' field Default implementation launch exception when data is not printable
Reimplemented from anna::diameter::codec::basetypes::AvpData.
|
virtualnoexcept |
Class string representation Default implementation invokes raw DataBlock 'asString' method, but it should be different specially with complex application data types.
Reimplemented from anna::diameter::codec::basetypes::AvpData.
|
virtualnoexcept |
Decodes provided buffer/size
Derived types must invoke base class 'decode()' at the end in order to keep coherence with parent members. This base class decodification actually sets the base class members with the same buffer provided, being more comfortable than using base class setters.
buffer | Raw avp data |
size | Raw avp data length |
Reimplemented from anna::diameter::codec::basetypes::OctetString.
|
inlinevirtual |
Gets the avp data format name
Reimplemented from anna::diameter::codec::basetypes::OctetString.
U32 anna::diameter::codec::basetypes::Time::getTimestamp | ( | Timestamp::_v | timestampType = Timestamp::NTP | ) | const |
Gets the timestamp value
timestampType | Timestamp reference (NTP/Unix) |
void anna::diameter::codec::basetypes::Time::setTimestamp | ( | const U32 & | timestamp, |
Timestamp::_v | timestampType = Timestamp::NTP |
||
) |
Sets the timestamp value
timestamp | timestamp value |
timestampType | Timestamp reference (NTP/Unix) |