| 
    MRPT
    2.0.0
    
   | 
 
Header: #include <mrpt/system/vector_loadsave.h>.
Library: [mrpt-system]
Functions | |
| bool | mrpt::io::vectorToBinaryFile (const std::vector< uint8_t > &vec, const std::string &fileName) | 
| Saves a vector directly as a binary dump to a file:  More... | |
| bool | mrpt::io::loadBinaryFile (std::vector< uint8_t > &out_data, const std::string &fileName) | 
| Loads a entire file as a vector of bytes.  More... | |
| bool | mrpt::io::loadTextFile (std::vector< std::string > &o, const std::string &fileName) | 
| Loads a text file as a vector of string lines.  More... | |
| std::string | mrpt::io::file_get_contents (const std::string &fileName) | 
| Loads an entire text file and return its contents as a single std::string.  More... | |
| bool | mrpt::system::vectorToTextFile (const std::vector< float > &vec, const std::string &fileName, bool append=false, bool byRows=false) | 
| A useful function for debugging, which saves a std::vector into a text file (compat.  More... | |
| bool | mrpt::system::vectorToTextFile (const std::vector< double > &vec, const std::string &fileName, bool append=false, bool byRows=false) | 
| bool | mrpt::system::vectorToTextFile (const std::vector< int > &vec, const std::string &fileName, bool append=false, bool byRows=false) | 
| bool | mrpt::system::vectorToTextFile (const std::vector< size_t > &vec, const std::string &fileName, bool append=false, bool byRows=false) | 
| template<class EIGEN_MATRIX > | |
| bool | mrpt::system::vectorToTextFile (const EIGEN_MATRIX &vec, const std::string &fileName) | 
| bool | mrpt::system::vectorFromTextFile (std::vector< double > &vec, const std::string &fileName, const bool byRows=false) | 
| Load a std::vector from a text file (compat.  More... | |
| std::string mrpt::io::file_get_contents | ( | const std::string & | fileName | ) | 
Loads an entire text file and return its contents as a single std::string.
| std::runtime_error | On any read error. | 
Definition at line 70 of file system/src/vector_loadsave.cpp.
Referenced by mrpt::apps::KFSLAMApp::initialize(), mrpt::apps::RawlogGrabberApp::initialize(), mrpt::apps::RBPF_SLAM_App_Base::initialize(), mrpt::apps::ICP_SLAM_App_Base::initialize(), mrpt::apps::MonteCarloLocalization_Base::initialize(), and TEST().
| bool mrpt::io::loadBinaryFile | ( | std::vector< uint8_t > & | out_data, | 
| const std::string & | fileName | ||
| ) | 
Loads a entire file as a vector of bytes.
Definition at line 21 of file system/src/vector_loadsave.cpp.
References mrpt::system::os::fclose(), mrpt::system::os::fopen(), and mrpt::system::os::fprintf().
| bool mrpt::io::loadTextFile | ( | std::vector< std::string > & | o, | 
| const std::string & | fileName | ||
| ) | 
Loads a text file as a vector of string lines.
Definition at line 59 of file system/src/vector_loadsave.cpp.
| bool mrpt::system::vectorFromTextFile | ( | std::vector< double > & | vec, | 
| const std::string & | fileName, | ||
| const bool | byRows = false  | 
        ||
| ) | 
Load a std::vector from a text file (compat.
with MATLAB)
Definition at line 76 of file system/src/vector_loadsave.cpp.
References mrpt::system::os::fopen().
| bool mrpt::io::vectorToBinaryFile | ( | const std::vector< uint8_t > & | vec, | 
| const std::string & | fileName | ||
| ) | 
Saves a vector directly as a binary dump to a file:
Definition at line 44 of file system/src/vector_loadsave.cpp.
Referenced by mrpt::io::zip::decompress_gz_data_block().
| bool mrpt::system::vectorToTextFile | ( | const std::vector< float > & | vec, | 
| const std::string & | fileName, | ||
| bool | append = false,  | 
        ||
| bool | byRows = false  | 
        ||
| ) | 
A useful function for debugging, which saves a std::vector into a text file (compat.
with MATLAB)
Definition at line 19 of file system/src/vector_loadsave.cpp.
Referenced by mrpt::apps::CGridMapAlignerApp::run(), and mrpt::bayes::CKalmanFilterCapable< 7, 3, 3, 7 >::runOneKalmanIteration().
| bool mrpt::system::vectorToTextFile | ( | const std::vector< double > & | vec, | 
| const std::string & | fileName, | ||
| bool | append = false,  | 
        ||
| bool | byRows = false  | 
        ||
| ) | 
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 33 of file system/src/vector_loadsave.cpp.
References mrpt::system::os::fclose(), mrpt::system::os::fopen(), and mrpt::system::os::fprintf().
| bool mrpt::system::vectorToTextFile | ( | const std::vector< int > & | vec, | 
| const std::string & | fileName, | ||
| bool | append = false,  | 
        ||
| bool | byRows = false  | 
        ||
| ) | 
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 47 of file system/src/vector_loadsave.cpp.
References mrpt::system::os::fclose(), mrpt::system::os::fopen(), and mrpt::system::os::fprintf().
| bool mrpt::system::vectorToTextFile | ( | const std::vector< size_t > & | vec, | 
| const std::string & | fileName, | ||
| bool | append = false,  | 
        ||
| bool | byRows = false  | 
        ||
| ) | 
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 61 of file system/src/vector_loadsave.cpp.
References mrpt::system::os::fopen(), and mrpt::system::os::fprintf().
| bool mrpt::system::vectorToTextFile | ( | const EIGEN_MATRIX & | vec, | 
| const std::string & | fileName | ||
| ) | 
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 43 of file system/include/mrpt/system/vector_loadsave.h.
| Page generated by Doxygen 1.8.14 for MRPT 2.0.0 Git: b38439d21 Tue Mar 31 19:58:06 2020 +0200 at miƩ abr 1 00:50:30 CEST 2020 |