• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2 ******************************************************************************
3 * Copyright (C) 2014, International Business Machines
4 * Corporation and others.  All Rights Reserved.
5 ******************************************************************************
6 * shareddateformat.h
7 */
8 
9 #ifndef __SHARED_DATETIMEPATTERNGENERATOR_H__
10 #define __SHARED_DATETIMEPATTERNGENERATOR_H__
11 
12 #include "unicode/utypes.h"
13 #include "sharedobject.h"
14 
15 U_NAMESPACE_BEGIN
16 
17 class DateTimePatternGenerator;
18 
19 class U_I18N_API SharedDateTimePatternGenerator : public SharedObject {
20 public:
SharedDateTimePatternGenerator(DateTimePatternGenerator * dtpgToAdopt)21     SharedDateTimePatternGenerator(DateTimePatternGenerator *dtpgToAdopt) : ptr(dtpgToAdopt) { }
22     virtual ~SharedDateTimePatternGenerator();
get()23     const DateTimePatternGenerator *get() const { return ptr; }
24     const DateTimePatternGenerator *operator->() const { return ptr; }
25     const DateTimePatternGenerator &operator*() const { return *ptr; }
26 private:
27     DateTimePatternGenerator *ptr;
28     SharedDateTimePatternGenerator(const SharedDateTimePatternGenerator &);
29     SharedDateTimePatternGenerator &operator=(const SharedDateTimePatternGenerator &);
30 };
31 
32 U_NAMESPACE_END
33 
34 #endif
35