8#ifndef INCLUDED_BDLT_FIXUTILCONFIGURATION
9#define INCLUDED_BDLT_FIXUTILCONFIGURATION
183#include <bdlscm_version.h>
189#include <bsl_iosfwd.h>
214 k_FRACTIONAL_SECOND_PRECISION_MASK = 0x07,
215 k_USE_Z_ABBREVIATION_FOR_UTC_BIT = 0x08
219 static bsls::AtomicOperations::AtomicTypes::Int
220 s_defaultConfiguration;
223 int d_configurationMask;
312 bsl::ostream&
print(bsl::ostream& stream,
314 int spacesPerLevel = 4)
const;
354: d_configurationMask(configurationMask)
357 & ~(k_FRACTIONAL_SECOND_PRECISION_MASK
358 | k_USE_Z_ABBREVIATION_FOR_UTC_BIT)));
370void FixUtilConfiguration::setDefaultConfiguration(
374 configuration.d_configurationMask);
379FixUtilConfiguration::FixUtilConfiguration()
380: d_configurationMask(3)
387: d_configurationMask(original.d_configurationMask)
395 & ~(k_FRACTIONAL_SECOND_PRECISION_MASK
396 | k_USE_Z_ABBREVIATION_FOR_UTC_BIT)));
404 d_configurationMask = rhs.d_configurationMask;
413 return d_configurationMask & k_FRACTIONAL_SECOND_PRECISION_MASK;
419 return d_configurationMask & k_USE_Z_ABBREVIATION_FOR_UTC_BIT;
427 const FixUtilConfiguration& rhs)
429 return lhs.d_configurationMask == rhs.d_configurationMask;
434 const FixUtilConfiguration& rhs)
436 return lhs.d_configurationMask != rhs.d_configurationMask;
Definition bdlt_fixutilconfiguration.h:206
bool useZAbbreviationForUtc() const
Definition bdlt_fixutilconfiguration.h:417
void setFractionalSecondPrecision(int value)
static void setDefaultConfiguration(const FixUtilConfiguration &configuration)
Definition bdlt_fixutilconfiguration.h:370
friend bool operator!=(const FixUtilConfiguration &, const FixUtilConfiguration &)
~FixUtilConfiguration()
Destroy this object.
Definition bdlt_fixutilconfiguration.h:392
friend bool operator==(const FixUtilConfiguration &, const FixUtilConfiguration &)
FixUtilConfiguration & operator=(const FixUtilConfiguration &rhs)
Definition bdlt_fixutilconfiguration.h:401
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
FixUtilConfiguration()
Definition bdlt_fixutilconfiguration.h:379
void setUseZAbbreviationForUtc(bool value)
static FixUtilConfiguration defaultConfiguration()
Definition bdlt_fixutilconfiguration.h:363
int fractionalSecondPrecision() const
Definition bdlt_fixutilconfiguration.h:411
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
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)
static void setIntRelaxed(AtomicTypes::Int *atomicInt, int value)
Definition bsls_atomicoperations.h:1552
static int getIntRelaxed(AtomicTypes::Int const *atomicInt)
Definition bsls_atomicoperations.h:1534