- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

# tmutamt.h

Go to the documentation of this file.

    00001 /*
    00002  *******************************************************************************
    00003  * Copyright (C) 2009-2010, Google, International Business Machines Corporation and *
    00004  * others. All Rights Reserved.                                                *
    00005  *******************************************************************************
    00006  */
    00007
    00008 #ifndef __TMUTAMT_H__
    00009 #define __TMUTAMT_H__
    00010
    00011
    00017 #include "unicode/measure.h"
    00018 #include "unicode/tmunit.h"
    00019
    00020 #if !UCONFIG_NO_FORMATTING
    00021
    00022 U_NAMESPACE_BEGIN
    00023
    00024
    00031 class U_I18N_API TimeUnitAmount: public Measure {
    00032 public:
    00045     TimeUnitAmount(const Formattable& number,
    00046                    TimeUnit::UTimeUnitFields timeUnitField,
    00047                    UErrorCode& status);
    00048
    00061     TimeUnitAmount(double amount, TimeUnit::UTimeUnitFields timeUnitField,
    00062                    UErrorCode& status);
    00063
    00064
    00069     TimeUnitAmount(const TimeUnitAmount& other);
    00070
    00071
    00076     TimeUnitAmount& operator=(const TimeUnitAmount& other);
    00077
    00078
    00084     virtual UObject* clone() const;
    00085
    00086
    00091     virtual ~TimeUnitAmount();
    00092
    00093
    00100     virtual UBool operator==(const UObject& other) const;
    00101
    00102
    00109     UBool operator!=(const UObject& other) const;
    00110
    00111
    00123     static UClassID U_EXPORT2 getStaticClassID(void);
    00124
    00125
    00137     virtual UClassID getDynamicClassID(void) const;
    00138
    00139
    00145     const TimeUnit& getTimeUnit() const;
    00146
    00152     TimeUnit::UTimeUnitFields getTimeUnitField() const;
    00153 };
    00154
    00155
    00156
    00157 inline UBool
    00158 TimeUnitAmount::operator!=(const UObject& other) const {
    00159     return !operator==(other);
    00160 }
    00161
    00162 U_NAMESPACE_END
    00163
    00164 #endif /* #if !UCONFIG_NO_FORMATTING */
    00165
    00166 #endif // __TMUTAMT_H__
    00167 //eof
    00168 //

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines