![]() |
TSDuck v3.46-4965
MPEG Transport Stream Toolkit
|
#include <tsCASDate.h>


Public Member Functions | |
| CASDate ()=default | |
| CASDate (const Time &t) | |
| CASDate (int year, int month, int day) | |
| CASDate (uint16_t value) | |
| int | day () const |
| void | invalidate () |
| bool | isValid () const |
| int | month () const |
| operator ts::Time () const | |
| virtual UString | toString () const override |
| uint16_t | value () const |
| int | year () const |
Static Public Member Functions | |
| static CASDate | Max () |
| static CASDate | Min () |
Static Public Attributes | |
| static constexpr uint16_t | INVALID_DATE = 0xFFFF |
| static constexpr int | MAX_YEAR = YEARBASE + 127 |
| static constexpr int | MIN_YEAR = YEARBASE |
Template representation of a CAS date. This general format is used by several CAS vendors.
| YEARBASE | The base year for the dates (CAS dependent). |
|
default |
Default constructor. The date is initially invalid.
|
inline |
Constructor from a 16-bit binary value.
| [in] | value | 16-bit binary representation of the date. |
|
inline |
Constructor from fields.
| [in] | year | Year number. |
| [in] | month | Month number. |
| [in] | day | Day number. |
| ts::CASDate< YEARBASE >::CASDate | ( | const Time & | t | ) |
|
inlinestatic |
A static function to return the minimum date.
|
inlinestatic |
A static function to return the maximum date.
|
inline |
Check if a date is valid.
|
inline |
Make the date invalid.
|
inline |
Get the year number.
|
inline |
Get the month number.
|
inline |
Get the day number.
|
inline |
Convert to a 16-bit value, for binary insertion.
| ts::CASDate< YEARBASE >::operator ts::Time | ( | ) | const |
Convert to a Time object.
|
overridevirtual |
Convert to a string object.
Implements ts::StringifyInterface.
|
staticconstexpr |
An invalid 16-bit date value
|
staticconstexpr |
The first representable year.
|
staticconstexpr |
The last representable year.