Changeset 699 for XIOS/trunk/src/interface/c_attr/icfilegroup_attr.cpp
- Timestamp:
- 09/22/15 10:09:53 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c_attr/icfilegroup_attr.cpp
r608 r699 455 455 456 456 457 void cxios_set_filegroup_time_counter(filegroup_Ptr filegroup_hdl, const char * time_counter, int time_counter_size) 458 { 459 std::string time_counter_str; 460 if (!cstr2string(time_counter, time_counter_size, time_counter_str)) return; 461 CTimer::get("XIOS").resume(); 462 filegroup_hdl->time_counter.fromString(time_counter_str); 463 CTimer::get("XIOS").suspend(); 464 } 465 466 void cxios_get_filegroup_time_counter(filegroup_Ptr filegroup_hdl, char * time_counter, int time_counter_size) 467 { 468 CTimer::get("XIOS").resume(); 469 if (!string_copy(filegroup_hdl->time_counter.getInheritedStringValue(), time_counter, time_counter_size)) 470 ERROR("void cxios_get_filegroup_time_counter(filegroup_Ptr filegroup_hdl, char * time_counter, int time_counter_size)", << "Input string is too short"); 471 CTimer::get("XIOS").suspend(); 472 } 473 474 bool cxios_is_defined_filegroup_time_counter(filegroup_Ptr filegroup_hdl) 475 { 476 CTimer::get("XIOS").resume(); 477 bool isDefined = filegroup_hdl->time_counter.hasInheritedValue(); 478 CTimer::get("XIOS").suspend(); 479 return isDefined; 480 } 481 482 457 483 void cxios_set_filegroup_type(filegroup_Ptr filegroup_hdl, const char * type, int type_size) 458 484 {
Note: See TracChangeset
for help on using the changeset viewer.