8#ifndef INCLUDED_BALTZO_LOCALDATETIME
9#define INCLUDED_BALTZO_LOCALDATETIME
130#include <balscm_version.h>
151#include <bsl_iosfwd.h>
152#include <bsl_string.h>
154#ifndef BDE_DONT_ALLOW_TRANSITIVE_INCLUDES
157#include <bsl_algorithm.h>
193#ifndef BDE_OMIT_INTERNAL_DEPRECATED
298 template <
class STREAM>
340 template <
class STREAM>
355 bsl::ostream&
print(bsl::ostream& stream,
357 int spacesPerLevel = 4)
const;
418, d_timeZoneId(allocator)
426: d_datetimeTz(datetimeTz)
427, d_timeZoneId(timeZoneId.begin(), timeZoneId.end(), allocator)
433 const char *timeZoneId,
435: d_datetimeTz(datetimeTz)
436, d_timeZoneId(allocator)
446: d_datetimeTz(original.d_datetimeTz)
447, d_timeZoneId(original.d_timeZoneId, allocator)
464: d_datetimeTz(
bslmf::MovableRefUtil::move(
465 bslmf::MovableRefUtil::access(original).d_datetimeTz))
466, d_timeZoneId(
bslmf::MovableRefUtil::move(
467 bslmf::MovableRefUtil::access(original).d_timeZoneId), allocator)
480 d_timeZoneId = rhs.d_timeZoneId;
481 d_datetimeTz = rhs.d_datetimeTz;
502 d_datetimeTz = value;
519 d_timeZoneId.
assign(value);
522 d_timeZoneId.
clear();
528template <
class STREAM>
585template <
class STREAM>
602#ifndef BDE_OMIT_INTERNAL_DEPRECATED
619 return lhs.datetimeTz() == rhs.datetimeTz()
620 && lhs.timeZoneId() == rhs.timeZoneId();
626 return lhs.datetimeTz() != rhs.datetimeTz()
627 || lhs.timeZoneId() != rhs.timeZoneId();
Definition baltzo_localdatetime.h:172
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
void setDatetimeTz(const bdlt::DatetimeTz &value)
Set the datetimeTz attribute of this object to the specified value.
Definition baltzo_localdatetime.h:500
STREAM & bdexStreamIn(STREAM &stream, int version)
Definition baltzo_localdatetime.h:529
const bsl::string & timeZoneId() const
Definition baltzo_localdatetime.h:562
STREAM & bdexStreamOut(STREAM &stream, int version) const
Definition baltzo_localdatetime.h:586
friend void swap(LocalDatetime &, LocalDatetime &)
bsl::allocator< char > allocator_type
Definition baltzo_localdatetime.h:183
LocalDatetime & operator=(const LocalDatetime &rhs)
Definition baltzo_localdatetime.h:478
~LocalDatetime()
Destroy this object.
Definition baltzo_localdatetime.h:472
BSLMF_NESTED_TRAIT_DECLARATION(LocalDatetime, bslmf::IsBitwiseMoveable)
LocalDatetime()
Definition baltzo_localdatetime.h:409
allocator_type get_allocator() const
Definition baltzo_localdatetime.h:578
static int maxSupportedBdexVersion()
Definition baltzo_localdatetime.h:606
void setTimeZoneId(const bsl::string_view &value)
Definition baltzo_localdatetime.h:506
bslma::Allocator * allocator() const
Definition baltzo_localdatetime.h:572
const bdlt::DatetimeTz & datetimeTz() const
Definition baltzo_localdatetime.h:556
BSLMF_NESTED_TRAIT_DECLARATION(LocalDatetime, bslma::UsesBslmaAllocator)
Definition bdlt_datetimetz.h:308
Definition bslma_bslallocator.h:580
BloombergLP::bslma::Allocator * mechanism() const
Definition bslma_bslallocator.h:1126
Definition bslstl_stringview.h:441
Definition bslstl_string.h:1281
basic_string & assign(const basic_string &replacement)
Definition bslstl_string.h:5716
allocator_type get_allocator() const BSLS_KEYWORD_NOEXCEPT
Return the allocator used by this string to supply memory.
Definition bslstl_string.h:6723
void clear() BSLS_KEYWORD_NOEXCEPT
Definition bslstl_string.h:5430
static void swap(T *a, T *b)
Definition bslalg_swaputil.h:194
Definition bslma_allocator.h:457
Definition bslmf_movableref.h:751
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
#define BSLS_KEYWORD_NOEXCEPT
Definition bsls_keyword.h:632
Definition baltzo_datafileloader.h:263
bool operator==(const LocalDatetime &lhs, const LocalDatetime &rhs)
void swap(LocalDatetime &a, LocalDatetime &b)
bool operator!=(const LocalDatetime &lhs, const LocalDatetime &rhs)
bsl::ostream & operator<<(bsl::ostream &stream, DstPolicy::Enum value)
basic_string< char > string
Definition bslstl_string.h:782
Definition bdlbb_blob.h:576
STREAM & bdexStreamIn(STREAM &stream, VALUE_TYPE &variable)
Definition bslx_instreamfunctions.h:1247
STREAM & bdexStreamOut(STREAM &stream, const TYPE &value)
Definition bslx_outstreamfunctions.h:992
Definition bslma_usesbslmaallocator.h:343
Definition bslmf_isbitwisemoveable.h:718
static MovableRef< t_TYPE > move(t_TYPE &reference) BSLS_KEYWORD_NOEXCEPT
Definition bslmf_movableref.h:1060
static t_TYPE & access(t_TYPE &ref) BSLS_KEYWORD_NOEXCEPT
Definition bslmf_movableref.h:1032