Cern
LibTmsApi 2.3.0

#include <BDuration.h>

Public Member Functions

 BDuration (int hour=0, int minute=0, int second=0, int microsecond=0)
 
 BDuration (BString str)
 
 ~BDuration ()
 
void clear ()
 Clear the duration.
 
void set (int hour=0, int minute=0, int second=0, int microsecond=0)
 
void addMilliSeconds (int64_t milliSeconds)
 Add the given number of milli seconds.
 
void addMicroSeconds (int64_t microSeconds)
 Add the given number of micro seconds.
 
void addSeconds (int seconds)
 Add the given number of seconds.
 
uint32_t getSeconds ()
 Get number of seconds.
 
uint64_t getMicroSeconds ()
 Get number of micro seconds.
 
int hour ()
 
int minute ()
 
int second ()
 
int microSecond ()
 
BString getString ()
 Get the time as an ISO date/time string.
 
BError setString (BString time)
 Set the time from an ISO date/time.
 

Private Attributes

uint8_t ohour
 Hour (0 .. 23)
 
uint8_t ominute
 Minute (0 .. 59)
 
uint8_t osecond
 Second (0 .. 59)
 
uint8_t ospare
 Padding.
 
uint32_t omicroSecond
 MicroSecond (0 .. 999999)
 

Constructor & Destructor Documentation

◆ BDuration() [1/2]

BDuration::BDuration ( int  hour = 0,
int  minute = 0,
int  second = 0,
int  microsecond = 0 
)

◆ BDuration() [2/2]

BDuration::BDuration ( BString  str)

◆ ~BDuration()

BDuration::~BDuration ( )

Member Function Documentation

◆ addMicroSeconds()

void BDuration::addMicroSeconds ( int64_t  microSeconds)

Add the given number of micro seconds.

◆ addMilliSeconds()

void BDuration::addMilliSeconds ( int64_t  milliSeconds)

Add the given number of milli seconds.

◆ addSeconds()

void BDuration::addSeconds ( int  seconds)

Add the given number of seconds.

◆ clear()

void BDuration::clear ( )

Clear the duration.

◆ getMicroSeconds()

uint64_t BDuration::getMicroSeconds ( )

Get number of micro seconds.

◆ getSeconds()

uint32_t BDuration::getSeconds ( )

Get number of seconds.

◆ getString()

BString BDuration::getString ( )

Get the time as an ISO date/time string.

◆ hour()

int BDuration::hour ( )

◆ microSecond()

int BDuration::microSecond ( )

◆ minute()

int BDuration::minute ( )

◆ second()

int BDuration::second ( )

◆ set()

void BDuration::set ( int  hour = 0,
int  minute = 0,
int  second = 0,
int  microsecond = 0 
)

◆ setString()

BError BDuration::setString ( BString  time)

Set the time from an ISO date/time.

Member Data Documentation

◆ ohour

uint8_t BDuration::ohour
private

Hour (0 .. 23)

◆ omicroSecond

uint32_t BDuration::omicroSecond
private

MicroSecond (0 .. 999999)

◆ ominute

uint8_t BDuration::ominute
private

Minute (0 .. 59)

◆ osecond

uint8_t BDuration::osecond
private

Second (0 .. 59)

◆ ospare

uint8_t BDuration::ospare
private

Padding.


The documentation for this class was generated from the following files: