PCL
pcl::ISO8601ConversionOptions Struct Reference

Formatting options for string representations of dates and times in ISO 8601 format. More...

#include <String.h>

Public Member Functions

constexpr ISO8601ConversionOptions (unsigned timeItems_=3, unsigned precision_=3, bool timeZone_=true, bool zuluTime_=true)
 
 ISO8601ConversionOptions (const ISO8601ConversionOptions &)=default
 
ISO8601ConversionOptionsoperator= (const ISO8601ConversionOptions &)=default
 

Public Attributes

unsigned precision: 4
 
unsigned timeItems: 2
 
bool timeZone: 1
 
bool zuluTime: 1
 

Detailed Description

Constructor & Destructor Documentation

◆ ISO8601ConversionOptions() [1/2]

constexpr pcl::ISO8601ConversionOptions::ISO8601ConversionOptions ( unsigned  timeItems_ = 3,
unsigned  precision_ = 3,
bool  timeZone_ = true,
bool  zuluTime_ = true 
)
inline

Default constructor.

Definition at line 416 of file String.h.

◆ ISO8601ConversionOptions() [2/2]

pcl::ISO8601ConversionOptions::ISO8601ConversionOptions ( const ISO8601ConversionOptions )
default

Copy constructor.

Member Function Documentation

◆ operator=()

ISO8601ConversionOptions& pcl::ISO8601ConversionOptions::operator= ( const ISO8601ConversionOptions )
default

Copy assignment operator. Returns a reference to this object.

Member Data Documentation

◆ precision

unsigned pcl::ISO8601ConversionOptions::precision

Number of decimal digits for the last represented time item. The default value is three decimal digits.

Definition at line 399 of file String.h.

◆ timeItems

unsigned pcl::ISO8601ConversionOptions::timeItems

Number of represented time items. Can be 0, 1, 2 or 3. All items but the last one are represented as integer values. The last item is represented as a floating point value with the specified precision. The default value is three time items.

Definition at line 393 of file String.h.

◆ timeZone

bool pcl::ISO8601ConversionOptions::timeZone

Whether to append a time zone specifier to the ISO 8601 representation. The default value is true.

Definition at line 405 of file String.h.

◆ zuluTime

bool pcl::ISO8601ConversionOptions::zuluTime

Whether to append the 'Z' special time zone specifier for UTC time, or the '+00:00' specifier otherwise. The default value is true.

Definition at line 411 of file String.h.


The documentation for this struct was generated from the following file: