Main MRPT website > C++ reference
MRPT logo
Namespaces | Enumerations | Functions
mrpt::mrpt::system Namespace Reference

Detailed Description

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

Namespaces

namespace  os
 This namespace provides a OS-independent interface to low-level functions.
 

Enumerations

enum  TConsoleColor { CONCOL_NORMAL = 0, CONCOL_BLUE = 1, CONCOL_GREEN = 2, CONCOL_RED = 4 }
 For use in setConsoleColor. More...
 

Functions

std::string BASE_IMPEXP MRPT_getVersion ()
 Returns a string describing the MRPT version including the SVN number.
 
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.
 
void BASE_IMPEXP clearConsole ()
 Clears the console window.
 
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.
 
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.
 
bool BASE_IMPEXP vectorToBinaryFile (const vector_byte &vec, const std::string &fileName)
 Saves a vector directly as a binary dump to a file:
 
bool BASE_IMPEXP loadBinaryFile (vector_byte &out_data, const std::string &fileName)
 Loads a entire file as a vector of bytes.
 
std::string BASE_IMPEXP MRPT_getCompilationDate ()
 Returns the MRPT compilation date.
 
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.).
 
std::string BASE_IMPEXP stack_trace (bool calling_from_exception=false)
 Dumps the current program stack with detailed information of source files and lines.
 
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.
 
void BASE_IMPEXP setConsoleColor (TConsoleColor color, bool changeStdErr=false)
 Changes the text color in the console for the text written from now on.
 
std::string BASE_IMPEXP extractFileName (const std::string &filePath)
 

Function Documentation

std::string BASE_IMPEXP mrpt::mrpt::system::extractFileName ( const std::string &  filePath)



Page generated by Doxygen 1.8.3 for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013