trick/include/trick/CheckPointRestart_c_intf.hh
Jacqueline Deans f19ba7df78
Test and Document STL Checkpointing (#1355)
* Updates SIM_stl to include checkpoint writing and checkpoint restore, as well as adding more data structures to test
* Thoroughly tests supported STL types with MM_stl_checkpoint and MM_stl_restore
* Adds an option to enable or disable STL restore in accessible interfaces and changes default to true
* Updates documentation on STL checkpointing to clearly state limitations and known bugs
2022-10-07 08:37:09 -05:00

69 lines
1.5 KiB
C++

/*
PURPOSE:
(Memory Manager Wrapper C interface)
*/
#ifndef CHECKPOINTRESTART_C_INTF_HH
#define CHECKPOINTRESTART_C_INTF_HH
#ifdef __cplusplus
extern "C" {
#endif
/* set pre_init_checkpoint flag */
int checkpoint_pre_init(int yes_no) ;
/* set post_init_checkpoint flag */
int checkpoint_post_init(int yes_no) ;
/* set end_checkpoint flag */
int checkpoint_end(int yes_no) ;
/* set pre_init_checkpoint flag */
int get_checkpoint_pre_init() ;
/* set post_init_checkpoint flag */
int get_checkpoint_post_init() ;
/* set end_checkpoint flag */
int get_checkpoint_end() ;
/* set safestore_enabled flag */
int checkpoint_safestore(int yes_no) ;
/* set the cpu to use for checkpoints */
int checkpoint_cpu( int in_cpu_num ) ;
/* safestore checkpoint call accessible from C code */
int checkpoint_safestore_period( double in_period ) ;
/* get checkpoint dump file name */
const char * checkpoint_get_output_file() ;
/* get checkpoint load file name */
const char * checkpoint_get_load_file() ;
/* checkpoint call accessible from C code */
int checkpoint( const char * file_name );
/* checkpoint for specific sim objects call from C code */
int checkpoint_objects( const char * file_name, const char * objects ) ;
/* load_checkpoint call accessible from C code */
int load_checkpoint( const char * file_name ) ;
int load_checkpoint_stls( const char * file_name, int with_stls ) ;
int load_checkpoint_job() ;
void * get_address( const char * var_name ) ;
#ifdef __cplusplus
}
#include <string>
int next_attr_name( std::string & name ) ;
#endif
#endif