CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
korean_lunisolar_calendar.h
1
2#pragma once
3
4#include <system/globalization/east_asian_lunisolar_calendar.h>
5
6namespace System { namespace Globalization {
7
8class KoreanLunisolarCalendar;
11
16class ASPOSECPP_SHARED_CLASS KoreanLunisolarCalendar : public EastAsianLunisolarCalendar
17{
19 RTTI_INFO(System::Globalization::KoreanLunisolarCalendar, ::System::BaseTypesInfo<System::Globalization::EastAsianLunisolarCalendar>)
20
21public:
25
27 static constexpr int GregorianEra = 1;
28
30 ASPOSECPP_SHARED_API KoreanLunisolarCalendar();
31
32 ASPOSECPP_SHARED_API DateTime get_MinSupportedDateTime() const override;
33 ASPOSECPP_SHARED_API DateTime get_MaxSupportedDateTime() const override;
34 ASPOSECPP_SHARED_API ArrayPtr<int> get_Eras() const override;
35 ASPOSECPP_SHARED_API int GetLeapMonth(int year, int era) const override;
36 ASPOSECPP_SHARED_API bool IsLeapYear(int year, int era) const override;
37 ASPOSECPP_SHARED_API bool IsLeapDay(int year, int month, int day, int era) const override;
38
39 ASPOSECPP_SHARED_API SharedPtr<Object> Clone() override;
40
41protected:
42 Details::CalendarId get_ID() const override;
43
44private:
45 void VerifyYear(int year, int era) const override;
46 void VerifyMonth(int year, int month, int era) const override;
47 void VerifyDate(int year, int month, int day, int era) const override;
48
49 int EraToIcuEra(int era) const override;
50 int IcuEraToEra(int icu_era) const override;
51};
52
53}} // namespace System::Globalization
Represents a specific date and time value on the time continuum. This type should be allocated on sta...
Definition: date_time.h:50
virtual int GetLeapMonth(int year) const
Gets the leap month for the specified year.
virtual bool IsLeapDay(int year, int month, int day) const
Checks if the day is leap.
virtual bool IsLeapYear(int year) const
Checks if the year is leap.
East-asian lunisolar calendar. Objects of this class should only be allocated using System::MakeObjec...
Definition: east_asian_lunisolar_calendar.h:17
Korean lunisolar calendar. Not implemented. Objects of this class should only be allocated using Syst...
Definition: korean_lunisolar_calendar.h:17
bool IsLeapYear(int year, int era) const override
Checks if the year is leap.
int GetLeapMonth(int year, int era) const override
Gets the leap month for the specified year.
DateTime get_MaxSupportedDateTime() const override
Maximal point in time that is supported by the calendar.
SharedPtr< Object > Clone() override
Creates a copy of the current object and returns a shared pointer to it.
bool IsLeapDay(int year, int month, int day, int era) const override
Checks if the day is leap.
Details::CalendarId get_ID() const override
Gets calendar identifier.
DateTime get_MinSupportedDateTime() const override
Minimal point in time that is supported by the calendar.
ArrayPtr< int > get_Eras() const override
Gets list of eras existing in calendar.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
CalendarId
Identifiers of known calendars.
Definition: calendar_id.h:8
SharedPtr< KoreanLunisolarCalendar > KoreanLunisolarCalendarPtr
KoreanLunisolarCalendar pointer type.
Definition: korean_lunisolar_calendar.h:10
Definition: db_command.h:9