#include <TimeStamp.h>
Inherits openjaus::model::fields::Field, and openjaus::system::Transportable.
◆ TimeStamp()
| openjaus::model::fields::TimeStamp::TimeStamp |
( |
| ) |
|
◆ ~TimeStamp()
| openjaus::model::fields::TimeStamp::~TimeStamp |
( |
| ) |
|
|
virtual |
◆ addDays()
| TimeStamp openjaus::model::fields::TimeStamp::addDays |
( |
int32_t |
days | ) |
const |
◆ addHours()
| TimeStamp openjaus::model::fields::TimeStamp::addHours |
( |
int32_t |
hours | ) |
const |
◆ addMilliseconds()
| TimeStamp openjaus::model::fields::TimeStamp::addMilliseconds |
( |
int32_t |
milliseconds | ) |
const |
◆ addMinutes()
| TimeStamp openjaus::model::fields::TimeStamp::addMinutes |
( |
int32_t |
minutes | ) |
const |
◆ addSeconds()
| TimeStamp openjaus::model::fields::TimeStamp::addSeconds |
( |
int32_t |
seconds | ) |
const |
◆ convertToTm()
| struct tm openjaus::model::fields::TimeStamp::convertToTm |
( |
| ) |
const |
◆ copy()
| void openjaus::model::fields::TimeStamp::copy |
( |
TimeStamp & |
source | ) |
|
◆ currentTimeStamp()
| static TimeStamp openjaus::model::fields::TimeStamp::currentTimeStamp |
( |
| ) |
|
|
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::TimeStamp::fromIntegerValue |
( |
uint32_t |
intValue | ) |
|
◆ getDay()
| uint8_t openjaus::model::fields::TimeStamp::getDay |
( |
| ) |
const |
◆ getHour()
| uint8_t openjaus::model::fields::TimeStamp::getHour |
( |
| ) |
const |
◆ getMilliseconds()
| uint16_t openjaus::model::fields::TimeStamp::getMilliseconds |
( |
| ) |
const |
◆ getMinutes()
| uint8_t openjaus::model::fields::TimeStamp::getMinutes |
( |
| ) |
const |
◆ getSeconds()
| uint8_t openjaus::model::fields::TimeStamp::getSeconds |
( |
| ) |
const |
◆ length()
| uint64 openjaus::model::fields::TimeStamp::length |
( |
| ) |
const |
|
virtual |
◆ setCurrentTime()
| void openjaus::model::fields::TimeStamp::setCurrentTime |
( |
| ) |
|
◆ setDay()
| bool openjaus::model::fields::TimeStamp::setDay |
( |
uint8_t |
day | ) |
|
- Parameters
-
| day | The value of the new day. |
◆ setHour()
| bool openjaus::model::fields::TimeStamp::setHour |
( |
uint8_t |
hour | ) |
|
- Parameters
-
| hour | The value of the new hour. |
◆ setMilliseconds()
| bool openjaus::model::fields::TimeStamp::setMilliseconds |
( |
uint16_t |
milliseconds | ) |
|
- Parameters
-
| milliseconds | The value of the new milliseconds. |
◆ setMinutes()
| bool openjaus::model::fields::TimeStamp::setMinutes |
( |
uint8_t |
minutes | ) |
|
- Parameters
-
| minutes | The value of the new minutes. |
◆ setSeconds()
| bool openjaus::model::fields::TimeStamp::setSeconds |
( |
uint8_t |
seconds | ) |
|
- Parameters
-
| seconds | The value of the new seconds. |
◆ setTime() [1/2]
| bool openjaus::model::fields::TimeStamp::setTime |
( |
int8_t |
days, |
|
|
int8_t |
hours, |
|
|
int8_t |
minutes, |
|
|
int8_t |
seconds, |
|
|
int16_t |
milliseconds |
|
) |
| |
- Parameters
-
| days | |
| hours | |
| minutes | |
| seconds | |
| milliseconds | |
◆ setTime() [2/2]
◆ till()
◆ 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()
| uint32_t openjaus::model::fields::TimeStamp::toIntegerValue |
( |
| ) |
const |
◆ toString() [1/2]
| std::string openjaus::model::fields::TimeStamp::toString |
( |
std::string |
format | ) |
const |
◆ toString() [2/2]
| std::string openjaus::model::fields::TimeStamp::toString |
( |
| ) |
const |
|
virtual |
◆ toXml()
| std::string openjaus::model::fields::TimeStamp::toXml |
( |
uint8_t |
level | ) |
const |
◆ operator<< [1/2]
◆ operator<< [2/2]
◆ day
| uint8_t openjaus::model::fields::TimeStamp::day |
|
protected |
◆ DAY_BIT_MASK
| const long openjaus::model::fields::TimeStamp::DAY_BIT_MASK = 0x1F |
|
staticprotected |
◆ DAY_MAX_VALUE
| const long openjaus::model::fields::TimeStamp::DAY_MAX_VALUE = 31 |
|
staticprotected |
◆ DAY_MIN_VALUE
| const long openjaus::model::fields::TimeStamp::DAY_MIN_VALUE = 1 |
|
staticprotected |
◆ DAY_START_BIT
| const long openjaus::model::fields::TimeStamp::DAY_START_BIT = 27 |
|
staticprotected |
◆ hour
| uint8_t openjaus::model::fields::TimeStamp::hour |
|
protected |
◆ HOUR_BIT_MASK
| const long openjaus::model::fields::TimeStamp::HOUR_BIT_MASK = 0x1F |
|
staticprotected |
◆ HOUR_MAX_VALUE
| const long openjaus::model::fields::TimeStamp::HOUR_MAX_VALUE = 23 |
|
staticprotected |
◆ HOUR_MIN_VALUE
| const long openjaus::model::fields::TimeStamp::HOUR_MIN_VALUE = 0 |
|
staticprotected |
◆ HOUR_START_BIT
| const long openjaus::model::fields::TimeStamp::HOUR_START_BIT = 22 |
|
staticprotected |
◆ MILLISECOND_BIT_MASK
| const long openjaus::model::fields::TimeStamp::MILLISECOND_BIT_MASK = 0x3FF |
|
staticprotected |
◆ MILLISECOND_MAX_VALUE
| const long openjaus::model::fields::TimeStamp::MILLISECOND_MAX_VALUE = 999 |
|
staticprotected |
◆ MILLISECOND_MIN_VALUE
| const long openjaus::model::fields::TimeStamp::MILLISECOND_MIN_VALUE = 0 |
|
staticprotected |
◆ MILLISECOND_START_BIT
| const long openjaus::model::fields::TimeStamp::MILLISECOND_START_BIT = 0 |
|
staticprotected |
◆ milliseconds
| uint16_t openjaus::model::fields::TimeStamp::milliseconds |
|
protected |
◆ MINUTE_BIT_MASK
| const long openjaus::model::fields::TimeStamp::MINUTE_BIT_MASK = 0x3F |
|
staticprotected |
◆ MINUTE_MAX_VALUE
| const long openjaus::model::fields::TimeStamp::MINUTE_MAX_VALUE = 59 |
|
staticprotected |
◆ MINUTE_MIN_VALUE
| const long openjaus::model::fields::TimeStamp::MINUTE_MIN_VALUE = 0 |
|
staticprotected |
◆ MINUTE_START_BIT
| const long openjaus::model::fields::TimeStamp::MINUTE_START_BIT = 16 |
|
staticprotected |
◆ minutes
| uint8_t openjaus::model::fields::TimeStamp::minutes |
|
protected |
◆ SECOND_BIT_MASK
| const long openjaus::model::fields::TimeStamp::SECOND_BIT_MASK = 0x3F |
|
staticprotected |
◆ SECOND_MAX_VALUE
| const long openjaus::model::fields::TimeStamp::SECOND_MAX_VALUE = 59 |
|
staticprotected |
◆ SECOND_MIN_VALUE
| const long openjaus::model::fields::TimeStamp::SECOND_MIN_VALUE = 0 |
|
staticprotected |
◆ SECOND_START_BIT
| const long openjaus::model::fields::TimeStamp::SECOND_START_BIT = 10 |
|
staticprotected |
◆ seconds
| uint8_t openjaus::model::fields::TimeStamp::seconds |
|
protected |
The documentation for this class was generated from the following files: