OROCHI
 
Loading...
Searching...
No Matches
GxDateBase Class Referenceabstract

暦ベース抽象クラス More...

#include <GxSysEnvironment.h>

Inheritance diagram for GxDateBase:
Collaboration diagram for GxDateBase:

Public Member Functions

初期化
 GxDateBase (void)
 デフォルトコンストラクタ
 
 GxDateBase (s32 year, s32 month, s32 day)
 コンストラクタ
 
 GxDateBase (s32 julianDay)
 コンストラクタ
 
- Public Member Functions inherited from GxClassBase
constexpr GxClassBase (void)
 コンストラクタ
 
constexpr GxClassBase (const GxClassBase &base)
 コピーコンストラクタ
 
 ~GxClassBase (void) override
 デストラクタ
 
- Public Member Functions inherited from GxClassBaseRoot
constexpr GxClassBaseRoot (void)
 コンストラクタ
 
constexpr GxClassBaseRoot (const GxClassBaseRoot &)
 コピーコンストラクタ
 
virtual ~GxClassBaseRoot (void)
 デストラクタ
 
constexpr GxClassBaseRootoperator= (const GxClassBaseRoot &)
 代入演算子
 
virtual GxRttigetRtti (void) const =0
 Rttiの取得
 
virtual GX_FORCE_INLINE const GxTypedObjectgetDefaultObject (void)
 デフォルトオブジェクトを取得
 
GX_FORCE_INLINE b32 isDefaultObject (void)
 デフォルトオブジェクト判定
 

Static Public Member Functions

操作
static constexpr s32 divedeFloor (s32 a, s32 b)
 除算(切り捨て)
 
- Static Public Member Functions inherited from GxClassBaseRoot
static GX_FORCE_INLINE GxRtti__getStaticRtti (void)
 Rttiの取得
 

メンバ変数

static s16 _totalDays [12]
 
s16 _year
 合計日数
 
s8 _month
 
 
s8 _day
 
 

アクセサ

constexpr s32 getYear (void) const
 年を取得
 
constexpr void setYear (s32 year)
 年を設定
 
constexpr s32 getMonth (void) const
 月を取得
 
constexpr void setMonth (s32 month)
 月を設定
 
constexpr s32 getDay (void) const
 日を取得
 
constexpr void setDay (s32 day)
 日を設定
 
virtual s32 getJulianDay (void) const =0
 修正ユリウス日を返す
 
GxString getDateString (void) const
 日付文字列を返す
 
WEEKDAY getWeekday (void) const
 曜日を返す
 
static f64 GetGreenwichSiderealTime (f64 Tu)
 
static s32 getMonth (s32 julianDay)
 月を取得
 
static s32 getDate (s32 julianDay, s32 month)
 日を取得
 

Detailed Description

暦ベース抽象クラス

Constructor & Destructor Documentation

◆ GxDateBase() [1/2]

GxDateBase::GxDateBase ( s32 year,
s32 month,
s32 day )

コンストラクタ

Parameters
year[in] 年
month[in] 月
day[in] 日

◆ GxDateBase() [2/2]

GxDateBase::GxDateBase ( s32 julianDay)

コンストラクタ

Parameters
julianDay[in] ユリウス日(未使用)

Member Function Documentation

◆ getDate()

s32 GxDateBase::getDate ( s32 julianDay,
s32 month )
staticprotected

日を取得

Parameters
julianDay[in] ユリウス日
month[in] 月
Returns

◆ getDateString()

GxString GxDateBase::getDateString ( void ) const

日付文字列を返す

Returns
文字列
Here is the call graph for this function:

◆ GetGreenwichSiderealTime()

f64 GxDateBase::GetGreenwichSiderealTime ( f64 Tu)
static

グリニッジ恒星時を求める 返り値:恒星時。単位は24時間、360度を1とする角度。

Parameters
Tu[in] パラメータTu
Returns
恒星時
Here is the call graph for this function:

◆ getJulianDay()

virtual s32 GxDateBase::getJulianDay ( void ) const
pure virtual

修正ユリウス日を返す

Implemented in GxDate, and GxJulianDate.

Here is the caller graph for this function:

◆ getMonth()

s32 GxDateBase::getMonth ( s32 julianDay)
staticprotected

月を取得

Parameters
julianDay[in] ユリウス日
Returns

◆ getWeekday()

WEEKDAY GxDateBase::getWeekday ( void ) const

曜日を返す

Returns
曜日
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ _totalDays

s16 GxDateBase::_totalDays
static
Initial value:
= {
0,
31,
31 + 30,
31 + 30 + 31,
31 + 30 + 31 + 30,
31 + 30 + 31 + 30 + 31,
31 + 30 + 31 + 30 + 31 + 31,
31 + 30 + 31 + 30 + 31 + 31 + 30,
31 + 30 + 31 + 30 + 31 + 31 + 30 + 31,
31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30,
31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31,
31 + 30 + 31 + 30 + 31 + 31 + 30 + 31 + 30 + 31 + 31,
}

◆ _year

s16 GxDateBase::_year
protected

合計日数


The documentation for this class was generated from the following files: