14 CTimer::get(
"XIOS").resume();
20 CTimer::get(
"XIOS").suspend();
27 CTimer::get(
"XIOS").resume();
29 const std::shared_ptr<xios::CCalendar> cal = context->
getCalendar();
31 ERROR(
"void cxios_get_current_date(cxios_date* current_date_c)",
32 <<
"Impossible to get the current date: no calendar was defined.");
33 const CDate& currentDate = cal->getCurrentDate();
35 current_date_c->month = currentDate.
getMonth();
36 current_date_c->day = currentDate.
getDay();
37 current_date_c->hour = currentDate.
getHour();
38 current_date_c->minute = currentDate.
getMinute();
39 current_date_c->second = currentDate.
getSecond();
40 CTimer::get(
"XIOS").suspend();
47 CTimer::get(
"XIOS").resume();
48 const std::shared_ptr<xios::CCalendar> cal = CContext::getCurrent()->getCalendar();
50 ERROR(
"int cxios_get_year_length_in_seconds(int year)",
51 <<
"Impossible to get the year length: no calendar was defined.");
52 int length = cal->getYearTotalLength(
CDate(*cal, year, 01, 01));
53 CTimer::get(
"XIOS").suspend();
62 CTimer::get(
"XIOS").resume();
63 const std::shared_ptr<xios::CCalendar> cal = CContext::getCurrent()->getCalendar();
65 ERROR(
"int cxios_get_day_length_in_seconds()",
66 <<
"Impossible to get the day length: no calendar was defined.");
67 int length = cal->getDayLengthInSeconds();
68 CTimer::get(
"XIOS").suspend();
void cxios_update_calendar(int step) TRY
void updateCalendar(int step)
Update calendar in each time step.
int getSecond(void) const
Get the calendar associated to the date.
CATCH_DUMP_STACK int cxios_get_day_length_in_seconds() TRY
std::shared_ptr< CCalendar > getCalendar(void) const
Accesseurs ///.
bool isAttachedModeEnabled() const
Check if the attached mode is used.
CATCH_DUMP_STACK void cxios_get_current_date(cxios_date *current_date_c) TRY
int getMinute(void) const
int getYear(void) const
Divers accesseurs ///.
void sendUpdateCalendar(int step)
Client side: Send a message to update calendar in each time step.
bool checkBuffersAndListen(bool enableEventsProcessing=true)
Try to send the buffers and receive possible answers.
CContextClient * client
Concrete contex client.
CATCH_DUMP_STACK int cxios_get_year_length_in_seconds(int year) TRY