📄 date_impl.cc
字号:
/* * Implementation for the date valuetype and its factory */#include "date.h"#include "date_impl.h"date_impl::date_impl (CORBA::UShort dd, CORBA::UShort mm, CORBA::UShort yyyy){ day (dd); month (mm); year (yyyy);}CORBA::Booleandate_impl::equal (date * other){ return (compare (other) == 0);}CORBA::Shortdate_impl::compare (date * other){ if (year() != other->year()) return year() - other->year(); if (month() != other->month()) return month() - other->month(); if (day() != other->day()) return day() - other->day(); return 0;}CORBA::ValueBase *date_factory::create_for_unmarshal (){ return new date_impl (0, 0, 0);}date *date_factory::create (CORBA::UShort dd, CORBA::UShort mm, CORBA::UShort yyyy){ return new date_impl (dd, mm, yyyy);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -