![]() |
TSDuck v3.46-4930
MPEG Transport Stream Toolkit
|
#include <tsSimulCryptDate.h>
Public Member Functions | |
| SimulCryptDate () | |
| SimulCryptDate (const Time &time) | |
| SimulCryptDate (const void *bin) | |
| SimulCryptDate (int year, int month, int day, int hour, int minute, int second, int hundredth) | |
| int | day () const |
| void | get (const tlv::MessageFactory &factory, tlv::TAG tag) |
| void | getBinary (const void *a) |
| int | hour () const |
| int | hundredth () const |
| int | minute () const |
| int | month () const |
| operator Time () const | |
| operator UString () const | |
| void | put (tlv::Serializer &zer) const |
| void | put (tlv::Serializer &zer, tlv::TAG tag) const |
| void | putBinary (void *a) const |
| void | reset () |
| int | second () const |
| void | setDay (int n) |
| void | setHour (int n) |
| void | setHundredth (int n) |
| void | setMinute (int n) |
| void | setMonth (int n) |
| void | setSecond (int n) |
| void | setYear (int n) |
| int | year () const |
Static Public Attributes | |
| static constexpr size_t | SIZE = 8 |
Representation of a date in DVB SimulCrypt protocols (ETSI TS 103 197).
A DVB SimulCrypt date is represented on 8 bytes:
|
inline |
Default constructor.
|
inline |
Constructor from binary data.
| [in] | bin | Address of an 8-byte binary DVB SimulCrypt date. |
| ts::SimulCryptDate::SimulCryptDate | ( | const Time & | time | ) |
| ts::SimulCryptDate::SimulCryptDate | ( | int | year, |
| int | month, | ||
| int | day, | ||
| int | hour, | ||
| int | minute, | ||
| int | second, | ||
| int | hundredth ) |
Constructor from broken-down date fields.
| [in] | year | Number of years. |
| [in] | month | Number of months (1 to 12). |
| [in] | day | Number of days (1 to 31). |
| [in] | hour | Number of hours (0 to 23). |
| [in] | minute | Number of minutes (0 to 59). |
| [in] | second | Number of seconds (0 to 59). |
| [in] | hundredth | Number of hundredths of seconds (0 to 99). |
|
inline |
Get the number of years.
|
inline |
Get the number of months.
|
inline |
Get the number of days.
|
inline |
Get the number of hours.
|
inline |
Get the number of minutes.
|
inline |
Get the number of seconds.
|
inline |
Get the number of hundredths of seconds.
|
inline |
Set the number of years.
| [in] | n | The number of years. |
|
inline |
Set the number of months.
| [in] | n | The number of months. |
|
inline |
Set the number of days.
| [in] | n | The number of days. |
|
inline |
Set the number of hours.
| [in] | n | The number of hours. |
|
inline |
Set the number of minutes.
| [in] | n | The number of minutes. |
|
inline |
Set the number of seconds.
| [in] | n | The number of seconds. |
|
inline |
Set the number of hundredths of seconds.
| [in] | n | The number of hundredths of seconds. |
|
inline |
Reset to a null value.
|
inline |
Read from memory (8 bytes).
| [in] | a | Address of an 8-byte binary DVB SimulCrypt date. |
|
inline |
Write to memory (8 bytes).
| [out] | a | Address of an 8-byte buffer for the binary DVB SimulCrypt date. |
|
inline |
Put into a DVB SimulCrypt TLV messages.
| [in,out] | zer | A TLV serializer. |
|
inline |
Put as a complete TLV structure into a DVB SimulCrypt TLV messages.
| [in,out] | zer | A TLV serializer. |
| [in] | tag | Tag for the date parameter. |
| void ts::SimulCryptDate::get | ( | const tlv::MessageFactory & | factory, |
| tlv::TAG | tag ) |
Get from a DVB SimulCrypt TLV messages.
| [in,out] | factory | A TLV message factory. |
| [in] | tag | Tag for the date parameter. |
| ts::tlv::DeserializationInternalError | if not found. |
| ts::SimulCryptDate::operator Time | ( | ) | const |
Convert to a Time object
| ts::SimulCryptDate::operator UString | ( | ) | const |
Convert to a string object
|
staticconstexpr |
Binary size in bytes of a DVB SimulCrypt date.