gem5  v20.1.0.0
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | Static Private Attributes | List of all members
CheckpointIn Class Reference

#include <serialize.hh>

Public Member Functions

 CheckpointIn (const std::string &cpt_dir, SimObjectResolver &resolver)
 
 ~CheckpointIn ()
 
const std::string getCptDir ()
 
bool find (const std::string &section, const std::string &entry, std::string &value)
 
bool findObj (const std::string &section, const std::string &entry, SimObject *&value)
 
bool entryExists (const std::string &section, const std::string &entry)
 
bool sectionExists (const std::string &section)
 

Static Public Member Functions

static std::string setDir (const std::string &base_name)
 Set the current directory. More...
 
static std::string dir ()
 Get the current checkout directory name. More...
 

Static Public Attributes

static const char * baseFilename = "m5.cpt"
 

Private Attributes

IniFiledb
 
SimObjectResolverobjNameResolver
 
const std::string _cptDir
 

Static Private Attributes

static std::string currentDirectory
 

Detailed Description

Definition at line 67 of file serialize.hh.

Constructor & Destructor Documentation

◆ CheckpointIn()

CheckpointIn::CheckpointIn ( const std::string &  cpt_dir,
SimObjectResolver resolver 
)

Definition at line 268 of file serialize.cc.

References baseFilename, db, fatal, getCptDir(), and IniFile::load().

◆ ~CheckpointIn()

CheckpointIn::~CheckpointIn ( )

Definition at line 277 of file serialize.cc.

References db.

Member Data Documentation

◆ _cptDir

const std::string CheckpointIn::_cptDir
private

Definition at line 75 of file serialize.hh.

Referenced by getCptDir().

◆ baseFilename

const char * CheckpointIn::baseFilename = "m5.cpt"
static

Definition at line 135 of file serialize.hh.

Referenced by CheckpointIn(), and Serializable::serializeAll().

◆ currentDirectory

string CheckpointIn::currentDirectory
staticprivate

Definition at line 108 of file serialize.hh.

◆ db

IniFile* CheckpointIn::db
private

Definition at line 71 of file serialize.hh.

Referenced by CheckpointIn(), entryExists(), find(), findObj(), sectionExists(), and ~CheckpointIn().

◆ objNameResolver

SimObjectResolver& CheckpointIn::objNameResolver
private

Definition at line 73 of file serialize.hh.

Referenced by findObj().


The documentation for this class was generated from the following files:

Generated on Wed Sep 30 2020 14:02:22 for gem5 by doxygen 1.8.17