| 1 | // © 2016 and later: Unicode, Inc. and others. | 
|---|---|
| 2 | // License & terms of use: http://www.unicode.org/copyright.html | 
| 3 | /* | 
| 4 | ****************************************************************************** | 
| 5 | * Copyright (C) 2014, International Business Machines | 
| 6 | * Corporation and others. All Rights Reserved. | 
| 7 | ****************************************************************************** | 
| 8 | * shareddateformatsymbols.h | 
| 9 | */ | 
| 10 | |
| 11 | #ifndef __SHARED_DATEFORMATSYMBOLS_H__ | 
| 12 | #define __SHARED_DATEFORMATSYMBOLS_H__ | 
| 13 | |
| 14 | #include "unicode/utypes.h" | 
| 15 | |
| 16 | #if !UCONFIG_NO_FORMATTING | 
| 17 | |
| 18 | #include "sharedobject.h" | 
| 19 | #include "unicode/dtfmtsym.h" | 
| 20 | |
| 21 | U_NAMESPACE_BEGIN | 
| 22 | |
| 23 | |
| 24 | class U_I18N_API SharedDateFormatSymbols : public SharedObject { | 
| 25 | public: | 
| 26 | SharedDateFormatSymbols( | 
| 27 | const Locale &loc, const char *type, UErrorCode &status) | 
| 28 | : dfs(loc, type, status) { } | 
| 29 | virtual ~SharedDateFormatSymbols(); | 
| 30 | const DateFormatSymbols &get() const { return dfs; } | 
| 31 | private: | 
| 32 | DateFormatSymbols dfs; | 
| 33 | SharedDateFormatSymbols(const SharedDateFormatSymbols &); | 
| 34 | SharedDateFormatSymbols &operator=(const SharedDateFormatSymbols &); | 
| 35 | }; | 
| 36 | |
| 37 | U_NAMESPACE_END | 
| 38 | |
| 39 | #endif /* !UCONFIG_NO_FORMATTING */ | 
| 40 | |
| 41 | #endif | 
| 42 | 
