intl/icu/source/i18n/dangical.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/intl/icu/source/i18n/dangical.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,119 @@
     1.4 +/*
     1.5 + *****************************************************************************
     1.6 + * Copyright (C) 2013, International Business Machines Corporation
     1.7 + * and others. All Rights Reserved.
     1.8 + *****************************************************************************
     1.9 + *
    1.10 + * File DANGICAL.H
    1.11 + *****************************************************************************
    1.12 + */
    1.13 +
    1.14 +#ifndef DANGICAL_H
    1.15 +#define DANGICAL_H
    1.16 +
    1.17 +#include "unicode/utypes.h"
    1.18 +
    1.19 +#if !UCONFIG_NO_FORMATTING
    1.20 +
    1.21 +#include "unicode/calendar.h"
    1.22 +#include "unicode/timezone.h"
    1.23 +#include "chnsecal.h"
    1.24 +
    1.25 +U_NAMESPACE_BEGIN
    1.26 +
    1.27 +/**
    1.28 + * <p><code>DangiCalendar</code> is a concrete subclass of {@link Calendar}
    1.29 + * that implements a traditional Korean lunisolar calendar.</p>
    1.30 + *
    1.31 + * <p>DangiCalendar usually should be instantiated using 
    1.32 + * {@link com.ibm.icu.util.Calendar#getInstance(ULocale)} passing in a <code>ULocale</code>
    1.33 + * with the tag <code>"@calendar=dangi"</code>.</p>
    1.34 + *
    1.35 + * @internal
    1.36 + */
    1.37 +class DangiCalendar : public ChineseCalendar {
    1.38 + public:
    1.39 +  //-------------------------------------------------------------------------
    1.40 +  // Constructors...
    1.41 +  //-------------------------------------------------------------------------
    1.42 +
    1.43 +  /**
    1.44 +   * Constructs a DangiCalendar based on the current time in the default time zone
    1.45 +   * with the given locale.
    1.46 +   *
    1.47 +   * @param aLocale  The given locale.
    1.48 +   * @param success  Indicates the status of DangiCalendar object construction.
    1.49 +   *                 Returns U_ZERO_ERROR if constructed successfully.
    1.50 +   * @internal
    1.51 +   */
    1.52 +  DangiCalendar(const Locale& aLocale, UErrorCode &success);
    1.53 +
    1.54 +  /**
    1.55 +   * Copy Constructor
    1.56 +   * @internal
    1.57 +   */
    1.58 +  DangiCalendar(const DangiCalendar& other);
    1.59 +
    1.60 +  /**
    1.61 +   * Destructor.
    1.62 +   * @internal
    1.63 +   */
    1.64 +  virtual ~DangiCalendar();
    1.65 +
    1.66 +  /**
    1.67 +   * Clone.
    1.68 +   * @internal
    1.69 +   */
    1.70 +  virtual Calendar* clone() const;
    1.71 +
    1.72 +  //----------------------------------------------------------------------
    1.73 +  // Internal methods & astronomical calculations
    1.74 +  //----------------------------------------------------------------------
    1.75 +
    1.76 + private:
    1.77 +
    1.78 +  const TimeZone* getDangiCalZoneAstroCalc(void) const;
    1.79 +
    1.80 +  // UObject stuff
    1.81 + public: 
    1.82 +  /**
    1.83 +   * @return   The class ID for this object. All objects of a given class have the
    1.84 +   *           same class ID. Objects of other classes have different class IDs.
    1.85 +   * @internal
    1.86 +   */
    1.87 +  virtual UClassID getDynamicClassID(void) const;
    1.88 +
    1.89 +  /**
    1.90 +   * Return the class ID for this class. This is useful only for comparing to a return
    1.91 +   * value from getDynamicClassID(). For example:
    1.92 +   *
    1.93 +   *      Base* polymorphic_pointer = createPolymorphicObject();
    1.94 +   *      if (polymorphic_pointer->getDynamicClassID() ==
    1.95 +   *          Derived::getStaticClassID()) ...
    1.96 +   *
    1.97 +   * @return   The class ID for all objects of this class.
    1.98 +   * @internal
    1.99 +   */
   1.100 +  U_I18N_API static UClassID U_EXPORT2 getStaticClassID(void);
   1.101 +
   1.102 +  /**
   1.103 +   * return the calendar type, "dangi".
   1.104 +   *
   1.105 +   * @return calendar type
   1.106 +   * @internal
   1.107 +   */
   1.108 +  const char * getType() const;
   1.109 +
   1.110 +
   1.111 + private:
   1.112 + 
   1.113 +  DangiCalendar(); // default constructor not implemented
   1.114 +};
   1.115 +
   1.116 +U_NAMESPACE_END
   1.117 +
   1.118 +#endif
   1.119 +#endif
   1.120 +
   1.121 +
   1.122 +

mercurial