MRPT  1.9.9
Namespaces | Classes | Typedefs | Enumerations | Functions
mrpt::io Namespace Reference

Namespaces

 internal
 
 zip
 Compression using the "zip" algorithm and from/to gzip (gz) files.
 

Classes

class  CFileGZInputStream
 Transparently opens a compressed "gz" file and reads uncompressed data from it. More...
 
class  CFileGZOutputStream
 Saves data to a file and transparently compress the data using the given compression level. More...
 
class  CFileInputStream
 This CStream derived class allow using a file as a read-only, binary stream. More...
 
class  CFileOutputStream
 This CStream derived class allow using a file as a write-only, binary stream. More...
 
class  CFileStream
 This CStream derived class allow using a file as a read/write binary stream, creating it if the file didn't exist. More...
 
class  CMemoryStream
 This CStream derived class allow using a memory buffer as a CStream. More...
 
class  CPipe
 A pipe, portable across different OS. More...
 
class  CPipeBaseEndPoint
 Common interface of read & write pipe end-points. More...
 
class  CPipeReadEndPoint
 The read end-point in a pipe created with mrpt::synch::CPipe. More...
 
class  CPipeWriteEndPoint
 The write end-point in a pipe created with mrpt::synch::CPipe. More...
 
class  CStream
 This base class is used to provide a unified interface to files,memory buffers,..Please see the derived classes. More...
 
class  CTextFileLinesParser
 A class for parsing text files, returning each non-empty and non-comment line, along its line number. More...
 

Typedefs

using TFileOpenModes = int
 File open modes are used in CFileStream Posible values are: More...
 

Enumerations

enum  { fomRead = 1, fomWrite = 2, fomAppend = 4 }
 

Functions

template<typename MATRIX >
void load_csv (const std::string &path, MATRIX &M)
 Loads a matrix from a CSV text file. More...
 
bool vectorToBinaryFile (const std::vector< uint8_t > &vec, const std::string &fileName)
 Saves a vector directly as a binary dump to a file: More...
 
bool loadBinaryFile (std::vector< uint8_t > &out_data, const std::string &fileName)
 Loads a entire file as a vector of bytes. More...
 
bool loadTextFile (std::vector< std::string > &o, const std::string &fileName)
 Loads a text file as a vector of string lines. More...
 
std::string file_get_contents (const std::string &fileName)
 Loads an entire text file and return its contents as a single std::string. More...
 

Typedef Documentation

◆ TFileOpenModes

using mrpt::io::TFileOpenModes = typedef int

File open modes are used in CFileStream Posible values are:

  • fomRead
  • fomWrite (creates the file if it didn't exist, otherwise truncates it).
  • fomAppend (creates the file if it didn't exist)

Definition at line 22 of file CFileStream.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
fomRead 
fomWrite 
fomAppend 

Definition at line 23 of file CFileStream.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020