| Index: source/i18n/sharednumberformat.h
|
| diff --git a/source/i18n/sharednumberformat.h b/source/i18n/sharednumberformat.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b6f5a8c923f36a987c6a8e76e1e69cc34b87705a
|
| --- /dev/null
|
| +++ b/source/i18n/sharednumberformat.h
|
| @@ -0,0 +1,34 @@
|
| +/*
|
| +******************************************************************************
|
| +* Copyright (C) 2014, International Business Machines
|
| +* Corporation and others. All Rights Reserved.
|
| +******************************************************************************
|
| +* sharednumberformat.h
|
| +*/
|
| +
|
| +#ifndef __SHARED_NUMBERFORMAT_H__
|
| +#define __SHARED_NUMBERFORMAT_H__
|
| +
|
| +#include "unicode/utypes.h"
|
| +#include "sharedobject.h"
|
| +
|
| +U_NAMESPACE_BEGIN
|
| +
|
| +class NumberFormat;
|
| +
|
| +class U_I18N_API SharedNumberFormat : public SharedObject {
|
| +public:
|
| + SharedNumberFormat(NumberFormat *nfToAdopt) : ptr(nfToAdopt) { }
|
| + virtual ~SharedNumberFormat();
|
| + const NumberFormat *get() const { return ptr; }
|
| + const NumberFormat *operator->() const { return ptr; }
|
| + const NumberFormat &operator*() const { return *ptr; }
|
| +private:
|
| + NumberFormat *ptr;
|
| + SharedNumberFormat(const SharedNumberFormat &);
|
| + SharedNumberFormat &operator=(const SharedNumberFormat &);
|
| +};
|
| +
|
| +U_NAMESPACE_END
|
| +
|
| +#endif
|
|
|