libtgd 4.2
A library that makes working with multidimensional arrays in C++ easy
Classes | Namespaces | Enumerations | Functions | Variables
io.hpp File Reference

Import and export of arrays to/from files and streams. More...

Classes

class  TGD::Importer
 The importer class imports arrays from files or streams. More...
 
class  TGD::Exporter
 The exporter class exports arrays to files or streams. More...
 

Namespaces

namespace  TGD
 

Enumerations

enum  TGD::Error {
  TGD::ErrorNone = 0 , TGD::ErrorFormatUnsupported = 1 , TGD::ErrorFeaturesUnsupported = 2 , TGD::ErrorMissingHints = 3 ,
  TGD::ErrorInvalidData = 4 , TGD::ErrorSeekingNotSupported = 5 , TGD::ErrorAppendingNotSupported = 6 , TGD::ErrorLibrary = 7 ,
  TGD::ErrorSysErrno = 8
}
 Input/output errors. More...
 

Functions

const char * TGD::strerror (Error e)
 Convert an input/output error to human-readable string. More...
 
ArrayContainer TGD::load (const std::string &fileName, const TagList &hints=TagList(), Error *error=nullptr)
 Shortcut to read a single array from a file in a single line of code. More...
 
bool TGD::save (const ArrayContainer &A, const std::string &fileName, bool append=Overwrite, Error *error=nullptr, const TagList &hints=TagList())
 Shortcut to write a single array to a file in a single line of code. More...
 

Variables

const bool TGD::Append = true
 Flag to be used for the append parameter of TGD::save() More...
 
const bool TGD::Overwrite = false
 Flag to be used for the append parameter of TGD::save() More...
 

Detailed Description

Import and export of arrays to/from files and streams.