BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlt_serialdateimputil.h
Go to the documentation of this file.
1/// @file bdlt_serialdateimputil.h
2///
3/// The content of this file has been pre-processed for Doxygen.
4///
5
6
7// bdlt_serialdateimputil.h -*-C++-*-
8#ifndef INCLUDED_BDLT_SERIALDATEIMPUTIL
9#define INCLUDED_BDLT_SERIALDATEIMPUTIL
10
11#include <bsls_ident.h>
12BSLS_IDENT("$Id: $")
13
14/// @defgroup bdlt_serialdateimputil bdlt_serialdateimputil
15/// @brief Provide low-level support functions for date-value manipulation.
16/// @addtogroup bdl
17/// @{
18/// @addtogroup bdlt
19/// @{
20/// @addtogroup bdlt_serialdateimputil
21/// @{
22///
23/// <h1> Outline </h1>
24/// * <a href="#bdlt_serialdateimputil-purpose"> Purpose</a>
25/// * <a href="#bdlt_serialdateimputil-classes"> Classes </a>
26/// * <a href="#bdlt_serialdateimputil-description"> Description </a>
27///
28/// # Purpose {#bdlt_serialdateimputil-purpose}
29/// Provide low-level support functions for date-value manipulation.
30///
31/// # Classes {#bdlt_serialdateimputil-classes}
32///
33/// - bdlt::SerialDateImpUtil: suite of low-level date-related stateless functions
34///
35/// @see bdlt_posixdateimputil, bdlt_prolepticdateimputil
36///
37/// # Description {#bdlt_serialdateimputil-description}
38/// This component defines a `typedef` to a class that implements
39/// the (documentation-only) protocol for serial date implementation utilities
40/// -- each class implements a common set of methods, each having the same
41/// signature, and each having the same contract. Currently, two
42/// implementations are allowed: @ref bdlt_posixdateimputil (required in Bloomberg
43/// code) and @ref bdlt_prolepticdateimputil (an option for open source code).
44/// @}
45/** @} */
46/** @} */
47
48/** @addtogroup bdl
49 * @{
50 */
51/** @addtogroup bdlt
52 * @{
53 */
54/** @addtogroup bdlt_serialdateimputil
55 * @{
56 */
57
58#include <bdlscm_version.h>
59
60#ifndef BDE_OPENSOURCE_PUBLICATION
61 #ifdef BDE_USE_PROLEPTIC_DATES
62 #error 'BDE_USE_PROLEPTIC_DATES' option disallowed for Bloomberg code.
63 #endif
64#endif
65
66#ifdef BDE_USE_PROLEPTIC_DATES
68#else
70#endif
71
72
73namespace bdlt {
74
75 // ========================
76 // struct SerialDateImpUtil
77 // ========================
78
79#ifdef BDE_USE_PROLEPTIC_DATES
80 typedef ProlepticDateImpUtil SerialDateImpUtil;
81#else
83
84 /// @deprecated typedef to temporarily support residual uses of
85 /// `DelegatingDateImpUtil`.
87#endif
88
89// ============================================================================
90// INLINE DEFINITIONS
91// ============================================================================
92
93
94} // close package namespace
95
96
97#endif
98
99// ----------------------------------------------------------------------------
100// Copyright 2014 Bloomberg Finance L.P.
101//
102// Licensed under the Apache License, Version 2.0 (the "License");
103// you may not use this file except in compliance with the License.
104// You may obtain a copy of the License at
105//
106// http://www.apache.org/licenses/LICENSE-2.0
107//
108// Unless required by applicable law or agreed to in writing, software
109// distributed under the License is distributed on an "AS IS" BASIS,
110// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
111// See the License for the specific language governing permissions and
112// limitations under the License.
113// ----------------------------- END-OF-FILE ----------------------------------
114
115/** @} */
116/** @} */
117/** @} */
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition bbldc_basicisma30360.h:112
PosixDateImpUtil SerialDateImpUtil
Definition bdlt_serialdateimputil.h:82
PosixDateImpUtil DelegatingDateImpUtil
Definition bdlt_serialdateimputil.h:86
Definition bdlt_posixdateimputil.h:525