8#ifndef INCLUDED_BDLT_FIXUTILCONFIGURATION
9#define INCLUDED_BDLT_FIXUTILCONFIGURATION
183#include <bdlscm_version.h>
189#include <bsl_iosfwd.h>
213 k_FRACTIONAL_SECOND_PRECISION_MASK = 0x07,
214 k_USE_Z_ABBREVIATION_FOR_UTC_BIT = 0x08
218 static bsls::AtomicOperations::AtomicTypes::Int
219 s_defaultConfiguration;
222 int d_configurationMask;
316 bsl::ostream&
print(bsl::ostream& stream,
318 int spacesPerLevel = 4)
const;
359: d_configurationMask(configurationMask)
362 & ~(k_FRACTIONAL_SECOND_PRECISION_MASK
363 | k_USE_Z_ABBREVIATION_FOR_UTC_BIT)));
375void FixUtilConfiguration::setDefaultConfiguration(
379 configuration.d_configurationMask);
384FixUtilConfiguration::FixUtilConfiguration()
385: d_configurationMask(3)
392: d_configurationMask(original.d_configurationMask)
400 & ~(k_FRACTIONAL_SECOND_PRECISION_MASK
401 | k_USE_Z_ABBREVIATION_FOR_UTC_BIT)));
409 d_configurationMask = rhs.d_configurationMask;
418 return d_configurationMask & k_FRACTIONAL_SECOND_PRECISION_MASK;
424 return d_configurationMask & k_USE_Z_ABBREVIATION_FOR_UTC_BIT;
432 const FixUtilConfiguration& rhs)
434 return lhs.d_configurationMask == rhs.d_configurationMask;
439 const FixUtilConfiguration& rhs)
441 return lhs.d_configurationMask !=
rhs.d_configurationMask;
Definition bdlt_fixutilconfiguration.h:205
bool useZAbbreviationForUtc() const
Definition bdlt_fixutilconfiguration.h:422
void setFractionalSecondPrecision(int value)
static void setDefaultConfiguration(const FixUtilConfiguration &configuration)
Definition bdlt_fixutilconfiguration.h:375
friend bool operator!=(const FixUtilConfiguration &, const FixUtilConfiguration &)
~FixUtilConfiguration()
Destroy this object.
Definition bdlt_fixutilconfiguration.h:397
friend bool operator==(const FixUtilConfiguration &, const FixUtilConfiguration &)
FixUtilConfiguration & operator=(const FixUtilConfiguration &rhs)
Definition bdlt_fixutilconfiguration.h:406
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
FixUtilConfiguration()
Definition bdlt_fixutilconfiguration.h:384
void setUseZAbbreviationForUtc(bool value)
static FixUtilConfiguration defaultConfiguration()
Definition bdlt_fixutilconfiguration.h:368
int fractionalSecondPrecision() const
Definition bdlt_fixutilconfiguration.h:416
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1976
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition bbldc_basicisma30360.h:112
bool operator==(const Calendar &lhs, const Calendar &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, const Calendar &calendar)
bool operator!=(const Calendar &lhs, const Calendar &rhs)
ALLOCATOR const STRING_VIEW_LIKE_TYPE & rhs
Definition bslstl_string.h:3918
ALLOCATOR & lhs
Definition bslstl_string.h:3917
static void setIntRelaxed(AtomicTypes::Int *atomicInt, int value)
Definition bsls_atomicoperations.h:1554
static int getIntRelaxed(AtomicTypes::Int const *atomicInt)
Definition bsls_atomicoperations.h:1536