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

#include <serialize.hh>

Public Member Functions

 CheckpointIn (const std::string &cpt_dir)
 ~CheckpointIn ()=default
const std::string getCptDir ()
bool find (const std::string &section, const std::string &entry, std::string &value)
bool entryExists (const std::string &section, const std::string &entry)
bool sectionExists (const std::string &section)
void visitSection (const std::string &section, IniFile::VisitSectionCallback cb)

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

IniFile db
const std::string _cptDir

Static Private Attributes

static std::string currentDirectory

Detailed Description

Definition at line 68 of file serialize.hh.

Constructor & Destructor Documentation

◆ CheckpointIn()

gem5::CheckpointIn::CheckpointIn ( const std::string &  cpt_dir)

Definition at line 159 of file

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

◆ ~CheckpointIn()

gem5::CheckpointIn::~CheckpointIn ( )

Member Data Documentation

◆ _cptDir

const std::string gem5::CheckpointIn::_cptDir

Definition at line 73 of file serialize.hh.

Referenced by getCptDir().

◆ baseFilename

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

◆ currentDirectory

std::string gem5::CheckpointIn::currentDirectory

Definition at line 105 of file serialize.hh.

◆ db

IniFile gem5::CheckpointIn::db

Definition at line 71 of file serialize.hh.

Referenced by CheckpointIn(), entryExists(), find(), sectionExists(), and visitSection().

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

Generated on Wed Dec 21 2022 10:23:30 for gem5 by doxygen 1.9.1