Developer documentation
Version 3.0.3-105-gd3941f44
MR::File Namespace Reference

Namespaces

namespace  Dicom
 
namespace  JSON
 
namespace  KeyValue
 
namespace  NIfTI
 

Classes

class  Config
 
class  Entry
 
class  GZ
 
class  MMap
 
class  NameParser
 a class to interpret numbered filenames More...
 
class  OFStream
 open output files for writing, checking for pre-existing file if necessary More...
 
class  ParsedName
 a class to hold a parsed image filename More...
 
class  TIFF
 

Functions

void copy (const std::string &source, const std::string &destination)
 
std::ostream & operator<< (std::ostream &stream, const Entry &e)
 
void remove (const std::string &file)
 
void create (const std::string &filename, int64_t size=0)
 
void resize (const std::string &filename, int64_t size)
 
bool is_tempfile (const std::string &name, const char *suffix=NULL)
 
std::string create_tempfile (int64_t size=0, const char *suffix=NULL)
 
void mkdir (const std::string &folder)
 
void rmdir (const std::string &folder, bool recursive=false)
 

Function Documentation

◆ copy()

void MR::File::copy ( const std::string &  source,
const std::string &  destination 
)
inline

Definition at line 31 of file copy.h.

◆ create()

void MR::File::create ( const std::string &  filename,
int64_t  size = 0 
)
inline

Definition at line 157 of file utils.h.

◆ create_tempfile()

std::string MR::File::create_tempfile ( int64_t  size = 0,
const char *  suffix = NULL 
)
inline

Definition at line 216 of file utils.h.

◆ is_tempfile()

bool MR::File::is_tempfile ( const std::string &  name,
const char *  suffix = NULL 
)
inline

Definition at line 203 of file utils.h.

◆ mkdir()

void MR::File::mkdir ( const std::string &  folder)
inline

Definition at line 242 of file utils.h.

◆ operator<<()

std::ostream & MR::File::operator<< ( std::ostream &  stream,
const Entry e 
)
inline

Definition at line 47 of file entry.h.

◆ remove()

void MR::File::remove ( const std::string &  file)
inline

Definition at line 150 of file utils.h.

◆ resize()

void MR::File::resize ( const std::string &  filename,
int64_t  size 
)
inline

Definition at line 187 of file utils.h.

◆ rmdir()

void MR::File::rmdir ( const std::string &  folder,
bool  recursive = false 
)
inline

Definition at line 252 of file utils.h.