BDE 4.14.0 Production release
Loading...
Searching...
No Matches
balber::BerUtil_ExtendedBinaryEncodingUtil Struct Reference

#include <balber_berutil.h>

Public Types

typedef BerUtil_DateAndTimeEncoding Encoding
 

Static Public Member Functions

static bool useExtendedBinaryEncoding (const bdlt::Time &value, const BerEncoderOptions *options)
 
static bool useExtendedBinaryEncoding (const bdlt::TimeTz &value, const BerEncoderOptions *options)
 
static bool useExtendedBinaryEncoding (const bdlt::Datetime &value, const BerEncoderOptions *options)
 
static bool useExtendedBinaryEncoding (const bdlt::DatetimeTz &value, const BerEncoderOptions *options)
 
static bool useBinaryEncoding (const BerEncoderOptions *options)
 

Detailed Description

This component-private utility struct provides a namespace for a suite of functions used by BerUtil to determine if a particular date and/or time value should be encoded using its corresponding extended-binary-encoding format, its corresponding compact-binary-encoding format, or neither format.

Member Typedef Documentation

◆ Encoding

Encoding is an alias to a namespace for enumerating the union of the sets of date and time formats used to encode and decode all date and time types supported by BerUtil.

Member Function Documentation

◆ useBinaryEncoding()

bool balber::BerUtil_ExtendedBinaryEncodingUtil::useBinaryEncoding ( const BerEncoderOptions options)
inlinestatic

Return true if a date and/or time value must be encoded using either its corresponding extended-binary-encoding format or its corresponding compact-binary-encoding format according to the specified options, and return false otherwise. Note that, for any given value and options, the value must be encoded using its corresponding compact-binary-encoding format if useExtendedBinaryEncoding(value, options) returns false and useBinaryEncoding(options) returns true.

◆ useExtendedBinaryEncoding() [1/4]

bool balber::BerUtil_ExtendedBinaryEncodingUtil::useExtendedBinaryEncoding ( const bdlt::Datetime value,
const BerEncoderOptions options 
)
inlinestatic

◆ useExtendedBinaryEncoding() [2/4]

bool balber::BerUtil_ExtendedBinaryEncodingUtil::useExtendedBinaryEncoding ( const bdlt::DatetimeTz value,
const BerEncoderOptions options 
)
inlinestatic

Return true if the specified value must be encoded using its corresponding extended-binary-encoding format according to the specified options, and return false otherwise.

◆ useExtendedBinaryEncoding() [3/4]

bool balber::BerUtil_ExtendedBinaryEncodingUtil::useExtendedBinaryEncoding ( const bdlt::Time value,
const BerEncoderOptions options 
)
inlinestatic

◆ useExtendedBinaryEncoding() [4/4]

bool balber::BerUtil_ExtendedBinaryEncodingUtil::useExtendedBinaryEncoding ( const bdlt::TimeTz value,
const BerEncoderOptions options 
)
inlinestatic

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