8#ifndef INCLUDED_BALTZO_ZONEINFOBINARYHEADER
9#define INCLUDED_BALTZO_ZONEINFOBINARYHEADER
193#include <balscm_version.h>
198#include <bsl_algorithm.h>
199#include <bsl_iosfwd.h>
243 int d_numTransitions;
246 int d_numLocalTimeTypes;
248 int d_abbrevDataSize;
400 bsl::ostream&
print(bsl::ostream& stream,
402 int spacesPerLevel = 4)
const;
450 return '\0' == value ||
'2' == value ||
'3' == value;
497, d_numLocalTimeTypes(1)
505: d_version(original.d_version)
506, d_numIsGmt(original.d_numIsGmt)
507, d_numIsStd(original.d_numIsStd)
508, d_numLeaps(original.d_numLeaps)
509, d_numTransitions(original.d_numTransitions)
510, d_numLocalTimeTypes(original.d_numLocalTimeTypes)
511, d_abbrevDataSize(original.d_abbrevDataSize)
521 int numLocalTimeTypes,
524, d_numIsGmt(numIsGmt)
525, d_numIsStd(numIsStd)
526, d_numLeaps(numLeaps)
527, d_numTransitions(numTransitions)
528, d_numLocalTimeTypes(numLocalTimeTypes)
529, d_abbrevDataSize(abbrevDataSize)
557 d_version = rhs.d_version;
558 d_numIsGmt = rhs.d_numIsGmt;
559 d_numIsStd = rhs.d_numIsStd;
560 d_numLeaps = rhs.d_numLeaps;
561 d_numTransitions = rhs.d_numTransitions;
562 d_numLocalTimeTypes = rhs.d_numLocalTimeTypes;
563 d_abbrevDataSize = rhs.d_abbrevDataSize;
603 d_numTransitions = value;
611 d_numLocalTimeTypes = value;
619 d_abbrevDataSize = value;
625 bsl::swap(d_version, other.d_version);
626 bsl::swap(d_numIsGmt, other.d_numIsGmt);
627 bsl::swap(d_numIsStd, other.d_numIsStd);
628 bsl::swap(d_numLeaps, other.d_numLeaps);
629 bsl::swap(d_numTransitions, other.d_numTransitions);
630 bsl::swap(d_numLocalTimeTypes, other.d_numLocalTimeTypes);
631 bsl::swap(d_abbrevDataSize, other.d_abbrevDataSize);
662 return d_numTransitions;
668 return d_numLocalTimeTypes;
674 return d_abbrevDataSize;
682 const ZoneinfoBinaryHeader& rhs)
684 return lhs.version() == rhs.version()
685 && lhs.numIsGmt() == rhs.numIsGmt()
686 && lhs.numIsStd() == rhs.numIsStd()
687 && lhs.numLeaps() == rhs.numLeaps()
688 && lhs.numTransitions() == rhs.numTransitions()
689 && lhs.numLocalTimeTypes() == rhs.numLocalTimeTypes()
690 && lhs.abbrevDataSize() == rhs.abbrevDataSize();
695 const ZoneinfoBinaryHeader& rhs)
697 return !(lhs == rhs);
704 const ZoneinfoBinaryHeader&
object)
706 return object.print(stream, 0, -1);
711void baltzo::swap(ZoneinfoBinaryHeader& a, ZoneinfoBinaryHeader& b)
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
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)