Represents an TimeTicks as descibed in RFC 2741. More...
#include <TimeTicks.hpp>
Public Member Functions | |
| TimeTicks () | |
| Create an TimeTicks without initialization. | |
| TimeTicks (data_t::const_iterator &pos, const data_t::const_iterator &end, bool big_endian=true) | |
| Construct the object from input stream. | |
| virtual data_t | serialize () const |
| Encode the object as described in RFC 2741, section 5.4. | |
Protected Attributes | |
| uint32_t | value |
| The TimeTicks value. | |
Represents an TimeTicks as descibed in RFC 2741.
Definition at line 31 of file TimeTicks.hpp.
| agentxcpp::TimeTicks::TimeTicks | ( | ) | [inline] |
Create an TimeTicks without initialization.
The value after creation is undefined.
Definition at line 45 of file TimeTicks.hpp.
| TimeTicks::TimeTicks | ( | data_t::const_iterator & | pos, |
| const data_t::const_iterator & | end, | ||
| bool | big_endian = true |
||
| ) |
Construct the object from input stream.
This constructor parses the serialized form of the object. It takes an iterator, starts parsing at the position of the iterator and advances the iterator to the position right behind the object.
The constructor expects valid data from the stream; if parsing fails, parse_error is thrown. In this case, the iterator position is undefined.
| pos | Iterator pointing to the current stream position. The iterator is advanced while reading the header. |
| end | Iterator pointing one element past the end of the current stream. This is needed to mark the end of the buffer. |
| big_endian | Whether the input stream is in big endian format |
Definition at line 37 of file TimeTicks.cpp.
References value.
| data_t TimeTicks::serialize | ( | ) | const [virtual] |
Encode the object as described in RFC 2741, section 5.4.
This function uses big endian.
Implements variable.
Definition at line 23 of file TimeTicks.cpp.
References value.
uint32_t agentxcpp::TimeTicks::value [protected] |
The TimeTicks value.
Definition at line 37 of file TimeTicks.hpp.
Referenced by serialize(), and TimeTicks().