BDE 4.39.x 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#endif
84
85// ============================================================================
86// INLINE DEFINITIONS
87// ============================================================================
88
89} // close package namespace
90
91
92#endif
93
94// ----------------------------------------------------------------------------
95// Copyright 2014 Bloomberg Finance L.P.
96//
97// Licensed under the Apache License, Version 2.0 (the "License");
98// you may not use this file except in compliance with the License.
99// You may obtain a copy of the License at
100//
101// http://www.apache.org/licenses/LICENSE-2.0
102//
103// Unless required by applicable law or agreed to in writing, software
104// distributed under the License is distributed on an "AS IS" BASIS,
105// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
106// See the License for the specific language governing permissions and
107// limitations under the License.
108// ----------------------------- END-OF-FILE ----------------------------------
109
110/** @} */
111/** @} */
112/** @} */
#define BSLS_IDENT(str)
BSLS_IDENT() - insert string into .comment binary segment (if supported)
Definition bsls_ident.h:238
Definition bbldc_basicisma30360.h:112
PosixDateImpUtil SerialDateImpUtil
Definition bdlt_serialdateimputil.h:82
Definition bdlt_posixdateimputil.h:528