2 ******************************************************************************
3 * Copyright (C) 2014, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 ******************************************************************************
9 #ifndef __SHARED_CALENDAR_H__
10 #define __SHARED_CALENDAR_H__
12 #include "unicode/utypes.h"
13 #include "sharedobject.h"
19 class U_I18N_API SharedCalendar
: public SharedObject
{
21 SharedCalendar(Calendar
*calToAdopt
) : ptr(calToAdopt
) { }
22 virtual ~SharedCalendar();
23 const Calendar
*get() const { return ptr
; }
24 const Calendar
*operator->() const { return ptr
; }
25 const Calendar
&operator*() const { return *ptr
; }
28 SharedCalendar(const SharedCalendar
&);
29 SharedCalendar
&operator=(const SharedCalendar
&);