#include <DateStamp.h>
Inherits openjaus::model::fields::Field, and openjaus::system::Transportable.
◆ DateStamp()
| openjaus::model::fields::DateStamp::DateStamp |
( |
| ) |
|
◆ ~DateStamp()
| openjaus::model::fields::DateStamp::~DateStamp |
( |
| ) |
|
|
virtual |
◆ addDays()
| DateStamp openjaus::model::fields::DateStamp::addDays |
( |
int32_t |
days | ) |
const |
◆ addMonths()
| DateStamp openjaus::model::fields::DateStamp::addMonths |
( |
int32_t |
months | ) |
const |
◆ addYears()
| DateStamp openjaus::model::fields::DateStamp::addYears |
( |
int32_t |
years | ) |
const |
◆ convertToTm()
| struct tm openjaus::model::fields::DateStamp::convertToTm |
( |
| ) |
const |
◆ copy()
| void openjaus::model::fields::DateStamp::copy |
( |
DateStamp & |
source | ) |
|
◆ currentDateStamp()
| static DateStamp openjaus::model::fields::DateStamp::currentDateStamp |
( |
| ) |
|
|
inlinestatic |
◆ from()
Deserializes the contents the Buffer connected to the provided BufferReader into this object. The BufferReader position will be advanced inside this method such that calling from() again will attempt to read the next Transportable object from the Buffer.
- Parameters
-
Implements openjaus::system::Transportable.
◆ fromIntegerValue()
| void openjaus::model::fields::DateStamp::fromIntegerValue |
( |
uint16_t |
intValue | ) |
|
◆ getDay()
| uint8_t openjaus::model::fields::DateStamp::getDay |
( |
| ) |
const |
◆ getMonth()
| uint8_t openjaus::model::fields::DateStamp::getMonth |
( |
| ) |
const |
◆ getYear()
| uint16_t openjaus::model::fields::DateStamp::getYear |
( |
| ) |
const |
◆ length()
| uint64 openjaus::model::fields::DateStamp::length |
( |
| ) |
const |
|
virtual |
◆ setCurrentDate()
| void openjaus::model::fields::DateStamp::setCurrentDate |
( |
| ) |
|
◆ setDate() [1/2]
| bool openjaus::model::fields::DateStamp::setDate |
( |
int16_t |
year, |
|
|
int8_t |
month, |
|
|
int8_t |
day |
|
) |
| |
◆ setDate() [2/2]
◆ setDay()
| bool openjaus::model::fields::DateStamp::setDay |
( |
uint8_t |
day | ) |
|
- Parameters
-
| day | The value of the new day. |
◆ setMonth()
| bool openjaus::model::fields::DateStamp::setMonth |
( |
uint8_t |
month | ) |
|
- Parameters
-
| month | The value of the new month. |
◆ setYear()
| bool openjaus::model::fields::DateStamp::setYear |
( |
uint16_t |
year | ) |
|
- Parameters
-
| year | The value of the new year. |
◆ to()
Serializes the contents of this object into the Buffer connected to the provided BufferWriter. The BufferWriter position will be advanced inside this method such that calling to() again will write the Transportable object into the Buffer a second time.
- Parameters
-
Implements openjaus::system::Transportable.
◆ toIntegerValue()
| uint16_t openjaus::model::fields::DateStamp::toIntegerValue |
( |
| ) |
const |
◆ toString() [1/2]
| std::string openjaus::model::fields::DateStamp::toString |
( |
std::string |
format | ) |
const |
◆ toString() [2/2]
| std::string openjaus::model::fields::DateStamp::toString |
( |
| ) |
const |
|
virtual |
◆ toXml()
| std::string openjaus::model::fields::DateStamp::toXml |
( |
uint8_t |
level | ) |
const |
◆ operator<< [1/2]
◆ operator<< [2/2]
◆ day
| uint8_t openjaus::model::fields::DateStamp::day |
|
protected |
◆ DAY_BIT_MASK
| const long openjaus::model::fields::DateStamp::DAY_BIT_MASK = 0x1F |
|
staticprotected |
◆ DAY_MAX_VALUE
| const long openjaus::model::fields::DateStamp::DAY_MAX_VALUE = 31 |
|
staticprotected |
◆ DAY_MIN_VALUE
| const long openjaus::model::fields::DateStamp::DAY_MIN_VALUE = 1 |
|
staticprotected |
◆ DAY_START_BIT
| const long openjaus::model::fields::DateStamp::DAY_START_BIT = 0 |
|
staticprotected |
◆ month
| uint8_t openjaus::model::fields::DateStamp::month |
|
protected |
◆ MONTH_BIT_MASK
| const long openjaus::model::fields::DateStamp::MONTH_BIT_MASK = 0xF |
|
staticprotected |
◆ MONTH_MAX_VALUE
| const long openjaus::model::fields::DateStamp::MONTH_MAX_VALUE = 12 |
|
staticprotected |
◆ MONTH_MIN_VALUE
| const long openjaus::model::fields::DateStamp::MONTH_MIN_VALUE = 1 |
|
staticprotected |
◆ MONTH_START_BIT
| const long openjaus::model::fields::DateStamp::MONTH_START_BIT = 5 |
|
staticprotected |
◆ year
| uint16_t openjaus::model::fields::DateStamp::year |
|
protected |
◆ YEAR_BIT_MASK
| const long openjaus::model::fields::DateStamp::YEAR_BIT_MASK = 0x7F |
|
staticprotected |
◆ YEAR_MAX_VALUE
| const long openjaus::model::fields::DateStamp::YEAR_MAX_VALUE = 2127 |
|
staticprotected |
◆ YEAR_MIN_VALUE
| const long openjaus::model::fields::DateStamp::YEAR_MIN_VALUE = 2000 |
|
staticprotected |
◆ YEAR_START_BIT
| const long openjaus::model::fields::DateStamp::YEAR_START_BIT = 9 |
|
staticprotected |
The documentation for this class was generated from the following files: