gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Macros | Functions
disk_image.hh File Reference

Disk Image Interfaces. More...

#include <fstream>
#include <unordered_map>
#include "params/CowDiskImage.hh"
#include "params/DiskImage.hh"
#include "params/RawDiskImage.hh"
#include "sim/sim_object.hh"

Go to the source code of this file.

Classes

class  DiskImage
 Basic interface for accessing a disk image. More...
 
class  RawDiskImage
 Specialization for accessing a raw disk image. More...
 
class  CowDiskImage
 Specialization for accessing a copy-on-write disk image layer. More...
 
struct  CowDiskImage::Sector
 

Macros

#define SectorSize   (512)
 

Functions

void SafeRead (std::ifstream &stream, void *data, int count)
 
template<class T >
void SafeRead (std::ifstream &stream, T &data)
 
template<class T >
void SafeReadSwap (std::ifstream &stream, T &data)
 
void SafeWrite (std::ofstream &stream, const void *data, int count)
 
template<class T >
void SafeWrite (std::ofstream &stream, const T &data)
 
template<class T >
void SafeWriteSwap (std::ofstream &stream, const T &data)
 

Detailed Description

Disk Image Interfaces.

Definition in file disk_image.hh.

Macro Definition Documentation

#define SectorSize   (512)

Function Documentation

void SafeRead ( std::ifstream &  stream,
void *  data,
int  count 
)
template<class T >
void SafeRead ( std::ifstream &  stream,
T &  data 
)
template<class T >
void SafeReadSwap ( std::ifstream &  stream,
T &  data 
)
void SafeWrite ( std::ofstream &  stream,
const void *  data,
int  count 
)
template<class T >
void SafeWrite ( std::ofstream &  stream,
const T &  data 
)
template<class T >
void SafeWriteSwap ( std::ofstream &  stream,
const T &  data 
)

Generated on Fri Jun 9 2017 13:03:57 for gem5 by doxygen 1.8.6