Changeset 699 for XIOS/trunk/src/interface/c_attr
- Timestamp:
- 09/22/15 10:09:53 (9 years ago)
- Location:
- XIOS/trunk/src/interface/c_attr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c_attr/icfile_attr.cpp
r608 r699 429 429 430 430 431 void cxios_set_file_time_counter(file_Ptr file_hdl, const char * time_counter, int time_counter_size) 432 { 433 std::string time_counter_str; 434 if (!cstr2string(time_counter, time_counter_size, time_counter_str)) return; 435 CTimer::get("XIOS").resume(); 436 file_hdl->time_counter.fromString(time_counter_str); 437 CTimer::get("XIOS").suspend(); 438 } 439 440 void cxios_get_file_time_counter(file_Ptr file_hdl, char * time_counter, int time_counter_size) 441 { 442 CTimer::get("XIOS").resume(); 443 if (!string_copy(file_hdl->time_counter.getInheritedStringValue(), time_counter, time_counter_size)) 444 ERROR("void cxios_get_file_time_counter(file_Ptr file_hdl, char * time_counter, int time_counter_size)", << "Input string is too short"); 445 CTimer::get("XIOS").suspend(); 446 } 447 448 bool cxios_is_defined_file_time_counter(file_Ptr file_hdl) 449 { 450 CTimer::get("XIOS").resume(); 451 bool isDefined = file_hdl->time_counter.hasInheritedValue(); 452 CTimer::get("XIOS").suspend(); 453 return isDefined; 454 } 455 456 431 457 void cxios_set_file_type(file_Ptr file_hdl, const char * type, int type_size) 432 458 { -
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.