CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
east_asian_lunisolar_calendar.h
1
2#pragma once
3
4#include <system/globalization/calendar.h>
5
6namespace System { namespace Globalization {
7
8class EastAsianLunisolarCalendar;
11
16class ASPOSECPP_SHARED_CLASS EastAsianLunisolarCalendar : public Calendar
17{
19 RTTI_INFO(System::Globalization::EastAsianLunisolarCalendar, ::System::BaseTypesInfo<System::Globalization::Calendar>)
20
21public:
22 ASPOSECPP_SHARED_API CalendarAlgorithmType get_AlgorithmType() const override;
23
27 ASPOSECPP_SHARED_API int GetCelestialStem(int sexagenary_year) const;
31 ASPOSECPP_SHARED_API int GetTerrestrialBranch(int sexagenary_year) const;
32
36 virtual ASPOSECPP_SHARED_API int GetSexagenaryYear(DateTime time) const;
37
38protected:
39 ASPOSECPP_SHARED_API EastAsianLunisolarCalendar() = default;
40 EastAsianLunisolarCalendar(std::unique_ptr<codeporting_icu::Calendar>&& calendar);
41};
42
43}} // 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
Calendar which defines how the dates are handled, calculated, formatted, etc. Setter operations are o...
Definition: calendar.h:38
East-asian lunisolar calendar. Objects of this class should only be allocated using System::MakeObjec...
Definition: east_asian_lunisolar_calendar.h:17
CalendarAlgorithmType get_AlgorithmType() const override
RTTI information.
virtual int GetSexagenaryYear(DateTime time) const
Gets the year in the sexagenary cycle.
int GetTerrestrialBranch(int sexagenary_year) const
Gets terrestrial branch.
EastAsianLunisolarCalendar(std::unique_ptr< codeporting_icu::Calendar > &&calendar)
int GetCelestialStem(int sexagenary_year) const
Gets celestial stem.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
CalendarAlgorithmType
Calendar type.
Definition: calendar_algorithm_type.h:10
SharedPtr< EastAsianLunisolarCalendar > EastAsianLunisolarCalendarPtr
EastAsianLunisolarCalendar pointer type.
Definition: east_asian_lunisolar_calendar.h:10
Definition: db_command.h:9