WXP C++ Library
Version 6.74.9
Loading...
Searching...
No Matches
include
DateVal.h
1
#ifndef _WINC_DATEVAL
2
#define _WINC_DATEVAL
3
4
namespace
WXP
{
5
struct
DateVal
{
6
int
year
;
7
int
month
;
8
int
day
;
9
int
hour
;
10
int
min
;
11
float
sec
;
13
static
int
num_day
[13];
14
static
int
num_day_leap
[13];
16
int
init
();
17
DateVal
();
18
int
validate
();
19
long
computeSecs
();
20
int
set
(
int
ryear,
int
rmonth,
int
rday,
int
rhour,
int
rmin,
float
rsec );
22
inline
int
setYear
(
int
val ){
year
= val;
return
1; };
24
inline
int
getYear
(){
return
year
; };
26
inline
int
setMonth
(
int
val ){
month
= val;
return
1; };
28
inline
int
getMonth
(){
return
month
; };
30
inline
int
setDay
(
int
val ){
day
= val;
return
1; };
32
inline
int
getDay
(){
return
day
; };
34
inline
int
setHour
(
int
val ){
hour
= val;
return
1; };
36
inline
int
getHour
(){
return
hour
; };
38
inline
int
setMinute
(
int
val ){
min
= val;
return
1; };
40
inline
int
getMinute
(){
return
min
; };
42
inline
int
setSecond
(
float
val ){
sec
= val;
return
1; };
44
inline
float
getSecond
(){
return
sec
; };
45
int
print
();
46
};
47
}
48
#endif
49
WXP
All WXP classes fall under the WXP namespace.
Definition
Angle.h:4
WXP::DateVal
This struct defines basic date values.
Definition
DateVal.h:5
WXP::DateVal::init
int init()
Definition
DateVal.cc:25
WXP::DateVal::getHour
int getHour()
Definition
DateVal.h:36
WXP::DateVal::setHour
int setHour(int val)
Definition
DateVal.h:34
WXP::DateVal::DateVal
DateVal()
Definition
DateVal.cc:38
WXP::DateVal::year
int year
Definition
DateVal.h:6
WXP::DateVal::set
int set(int ryear, int rmonth, int rday, int rhour, int rmin, float rsec)
Definition
DateVal.cc:51
WXP::DateVal::print
int print()
Definition
DateVal.cc:157
WXP::DateVal::sec
float sec
Definition
DateVal.h:11
WXP::DateVal::month
int month
Definition
DateVal.h:7
WXP::DateVal::setYear
int setYear(int val)
Definition
DateVal.h:22
WXP::DateVal::setSecond
int setSecond(float val)
Definition
DateVal.h:42
WXP::DateVal::getMonth
int getMonth()
Definition
DateVal.h:28
WXP::DateVal::getDay
int getDay()
Definition
DateVal.h:32
WXP::DateVal::min
int min
Definition
DateVal.h:10
WXP::DateVal::validate
int validate()
Definition
DateVal.cc:65
WXP::DateVal::computeSecs
long computeSecs()
Definition
DateVal.cc:97
WXP::DateVal::getSecond
float getSecond()
Definition
DateVal.h:44
WXP::DateVal::num_day
static int num_day[13]
Definition
DateVal.h:13
WXP::DateVal::num_day_leap
static int num_day_leap[13]
Definition
DateVal.h:14
WXP::DateVal::day
int day
Definition
DateVal.h:8
WXP::DateVal::getMinute
int getMinute()
Definition
DateVal.h:40
WXP::DateVal::hour
int hour
Definition
DateVal.h:9
WXP::DateVal::setMinute
int setMinute(int val)
Definition
DateVal.h:38
WXP::DateVal::getYear
int getYear()
Definition
DateVal.h:24
WXP::DateVal::setMonth
int setMonth(int val)
Definition
DateVal.h:26
WXP::DateVal::setDay
int setDay(int val)
Definition
DateVal.h:30
Generated on Sun Jul 28 2024 18:05:35 for WXP C++ Library by
1.9.7