Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
model::DefectiveCrystalBaseIO Struct Reference

#include <DefectiveCrystalBaseIO.h>

Inheritance diagram for model::DefectiveCrystalBaseIO:
Collaboration diagram for model::DefectiveCrystalBaseIO:

Public Member Functions

 DefectiveCrystalBaseIO (const std::string &outFolderName_in, const std::string &fileNamePrefix_in, const std::string &outFolderSuffix_in="")
std::string getBinFilename (const size_t &runID)
std::string getTxtFilename (const size_t &runID)
std::string getTxtSegmentFilename (const size_t &runID)
bool isBinGood (const size_t &frameID)
bool isTxtGood (const size_t &frameID)

Static Public Member Functions

template<typename T>
static void binWrite (std::ofstream &of, const T &o)
template<typename T>
static void binRead (std::ifstream &file, T *&memblock, const size_t &arraySize)

Public Attributes

const std::string outFolderName
const std::string fileNamePrefix
const std::string outFolderSuffix

Detailed Description

Definition at line 19 of file DefectiveCrystalBaseIO.h.

Constructor & Destructor Documentation

◆ DefectiveCrystalBaseIO()

model::DefectiveCrystalBaseIO::DefectiveCrystalBaseIO ( const std::string & outFolderName_in,
const std::string & fileNamePrefix_in,
const std::string & outFolderSuffix_in = "" )

Definition at line 21 of file DefectiveCrystalBaseIO.cpp.

Member Function Documentation

◆ binRead()

template<typename T>
void model::DefectiveCrystalBaseIO::binRead ( std::ifstream & file,
T *& memblock,
const size_t & arraySize )
inlinestatic

Definition at line 43 of file DefectiveCrystalBaseIO.h.

◆ binWrite()

template<typename T>
void model::DefectiveCrystalBaseIO::binWrite ( std::ofstream & of,
const T & o )
inlinestatic

Definition at line 37 of file DefectiveCrystalBaseIO.h.

◆ getBinFilename()

std::string model::DefectiveCrystalBaseIO::getBinFilename ( const size_t & runID)

Definition at line 31 of file DefectiveCrystalBaseIO.cpp.

◆ getTxtFilename()

std::string model::DefectiveCrystalBaseIO::getTxtFilename ( const size_t & runID)

Definition at line 36 of file DefectiveCrystalBaseIO.cpp.

◆ getTxtSegmentFilename()

std::string model::DefectiveCrystalBaseIO::getTxtSegmentFilename ( const size_t & runID)

Definition at line 41 of file DefectiveCrystalBaseIO.cpp.

◆ isBinGood()

bool model::DefectiveCrystalBaseIO::isBinGood ( const size_t & frameID)

Definition at line 46 of file DefectiveCrystalBaseIO.cpp.

◆ isTxtGood()

bool model::DefectiveCrystalBaseIO::isTxtGood ( const size_t & frameID)

Definition at line 52 of file DefectiveCrystalBaseIO.cpp.

Member Data Documentation

◆ fileNamePrefix

const std::string model::DefectiveCrystalBaseIO::fileNamePrefix

Definition at line 23 of file DefectiveCrystalBaseIO.h.

◆ outFolderName

const std::string model::DefectiveCrystalBaseIO::outFolderName

Definition at line 22 of file DefectiveCrystalBaseIO.h.

◆ outFolderSuffix

const std::string model::DefectiveCrystalBaseIO::outFolderSuffix

Definition at line 24 of file DefectiveCrystalBaseIO.h.


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