This namespace provides a OS-independent interface to many useful functions: filenames manipulation, time and date, string parsing, file I/O, threading, memory allocation, etc.
- See Also
- mrpt::system::os
|
| std::string BASE_IMPEXP | MRPT_getVersion () |
| | Returns a string describing the MRPT version including the SVN number. More...
|
| |
| void BASE_IMPEXP | pause (const std::string &msg=std::string("Press any key to continue...")) MRPT_NO_THROWS |
| | Shows the message "Press any key to continue" (or other custom message) to the current standard output and returns when a key is pressed. More...
|
| |
| void BASE_IMPEXP | clearConsole () |
| | Clears the console window. More...
|
| |
| bool BASE_IMPEXP | vectorToTextFile (const std::vector< float > &vec, const std::string &fileName, bool append=false, bool byRows=false) |
| | A useful function for debuging, which saves a std::vector into a text file (compat. More...
|
| |
| bool BASE_IMPEXP | vectorToTextFile (const std::vector< double > &vec, const std::string &fileName, bool append=false, bool byRows=false) |
| |
| bool BASE_IMPEXP | vectorToTextFile (const std::vector< int > &vec, const std::string &fileName, bool append=false, bool byRows=false) |
| |
| bool BASE_IMPEXP | vectorToTextFile (const std::vector< size_t > &vec, const std::string &fileName, bool append=false, bool byRows=false) |
| |
| template<class Derived > |
| bool | vectorToTextFile (const Eigen::MatrixBase< Derived > &vec, const std::string &fileName) |
| |
| bool BASE_IMPEXP | vectorFromTextFile (std::vector< double > &vec, const std::string &fileName, const bool byRows=false) |
| | Load a std::vector from a text file (compat. More...
|
| |
| bool BASE_IMPEXP | vectorToBinaryFile (const vector_byte &vec, const std::string &fileName) |
| | Saves a vector directly as a binary dump to a file: More...
|
| |
| bool BASE_IMPEXP | loadBinaryFile (vector_byte &out_data, const std::string &fileName) |
| | Loads a entire file as a vector of bytes. More...
|
| |
| std::string BASE_IMPEXP | MRPT_getCompilationDate () |
| | Returns the MRPT compilation date. More...
|
| |
| void BASE_IMPEXP | registerFatalExceptionHandlers () |
| | Call this to register handlers for fatal erros (memory access,etc) that show useful debug information (It is called automatically normally, no need for the user to explicitly call this method.). More...
|
| |
| std::string BASE_IMPEXP | stack_trace (bool calling_from_exception=false) |
| | Dumps the current program stack with detailed information of source files and lines. More...
|
| |
| void BASE_IMPEXP | breakpoint (const std::string &exception_msg) |
| | Only when built in debug (with _DEBUG), this function will be called just before raising any MRPT exception, so the user can conveniently put a breakpoint here to explore the call stack, etc. More...
|
| |
| void BASE_IMPEXP | setConsoleColor (TConsoleColor color, bool changeStdErr=false) |
| | Changes the text color in the console for the text written from now on. More...
|
| |
| std::string BASE_IMPEXP | extractFileName (const std::string &filePath) |
| |