This simply constrained (value-semantic) attribute class represents a Zoneinfo binary-file header.
Declared in <baltzo_zoneinfobinaryheader.h>
class ZoneinfoBinaryHeader;
This class represents the header information found at the start of a Zoneinfo (binary) database file, which describes the contents of the file.
See the section for information on the class attributes. Note that the class invariants are identically the constraints on the individual attributes.
This class: * supports a complete set of value semantic operations
except for bdex serialization * is exception-neutral * is alias-safe * is const thread-safe For terminology see bsldoc_glossary.
| Name | Description |
|---|---|
ZoneinfoBinaryHeader [constructor] | Constructors |
~ZoneinfoBinaryHeader [destructor] | Destroy this object. |
operator= | Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object. |
abbrevDataSize | Return the value of the abbrevDataSize attribute of this object. |
numIsGmt | Return the value of the numIsGmt attribute of this object. |
numIsStd | Return the value of the numIsStd attribute of this object. |
numLeaps | Return the value of the numLeaps attribute of this object. |
numLocalTimeTypes | Return the value of the numLocalTimeTypes attribute of this object. |
numTransitions | Return the value of the numTransitions attribute of this object. |
print | Write the value of this object to the specified output stream. |
setAbbrevDataSize | Set the abbrevDataSize attribute of this object to the specified value. The behavior is undefined unless 1 <= value. |
setNumIsGmt | Set the numIsGmt attribute of this object to the specified value. The behavior is undefined unless 0 <= value. |
setNumIsStd | Set the numIsStd attribute of this object to the specified value. The behavior is undefined unless 0 <= value. |
setNumLeaps | Set the numLeaps attribute of this object to the specified value. |
setNumLocalTimeTypes | Set the numLocalTimeTypes attribute of this object to the specified value. The behavior is undefined unless 1 <= value. |
setNumTransitions | Set the numTransitions attribute of this object to the specified value. The behavior is undefined unless 0 <= value. |
setVersion | Set the version attribute of this object to the specified value. |
swap | Efficiently exchange the value of this object with the value of the specified other object. This method provides the no-throw exception-safety guarantee. |
version | Return the value of the version attribute of this object. |
| Name | Description |
|---|---|
isValidAbbrevDataSize | Return true if the specified value is greater than or equal to 1, and false otherwise'. |
isValidNumIsGmt | Return true if the specified value is greater than or equal to 0, and false otherwise'. |
isValidNumIsStd | Return true if the specified value is greater than or equal to 0, and false otherwise'. |
isValidNumLeaps | Return true if the specified value is greater than or equal to 0, and false otherwise'. |
isValidNumLocalTimeTypes | Return true if the specified value is greater than or equal to 1, and false otherwise'. |
isValidNumTransitions | Return true if the specified value is greater than or equal to 0, and false otherwise'. |
isValidVersion | Return true if the specified value equals '0', 2, 3 or 4, and false otherwise. |
| Name | Description |
|---|---|
operator!= | Return true if the specified lhs and rhs objects do not have the same value, and false otherwise. |
operator== | Return true if the specified lhs and rhs objects have the same value, and false otherwise. |
swap | Efficiently exchange the values of the specified a and b objects. This function provides the no-throw exception-safety guarantee. |