Go to the documentation of this file.
11 #include <mrpt/config.h>
57 char* buf,
size_t bufSize,
const char*
format, va_list args) noexcept;
63 char* buf,
size_t bufSize,
const char*
format, va_list args) noexcept;
68 FILE*
fopen(
const char* fileName,
const char*
mode) noexcept;
88 char*
strcat(
char* dest,
size_t destSize,
const char*
source) noexcept;
93 char*
strcpy(
char* dest,
size_t destSize,
const char*
source) noexcept;
98 int _strcmp(
const char* str1,
const char* str2) noexcept;
103 int _strcmpi(
const char* str1,
const char* str2) noexcept;
108 int _strncmp(
const char* str,
const char* subStr,
size_t count) noexcept;
113 int _strnicmp(
const char* str,
const char* subStr,
size_t count) noexcept;
125 time_t
timegm(
struct tm* tm);
130 void* dest,
size_t destSize,
const void*
src,
size_t copyCount) noexcept;
135 int getch() noexcept;
140 bool kbhit() noexcept;
153 std::string(
"Press any key to continue...")) noexcept;
bool kbhit() noexcept
An OS-independent version of kbhit, which returns true if a key has been pushed.
int64_t _strtoll(const char *nptr, char **endptr, int base)
An OS-independent version of strtoll.
GLenum GLsizei GLenum format
int void fclose(FILE *f)
An OS-independent version of fclose.
int int vsprintf(char *buf, size_t bufSize, const char *format, va_list args) noexcept
An OS-independent version of vsprintf (Notice the bufSize param, which may be ignored in some compile...
time_t timegm(struct tm *tm)
An OS-independent version of timegm (which is not present in all compilers): converts a time structur...
uint64_t _strtoull(const char *nptr, char **endptr, int base)
An OS-independent version of strtoull.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
GLsizei GLsizei GLchar * source
int sprintf(char *buf, size_t bufSize, const char *format,...) noexcept MRPT_printf_format_check(3
An OS-independent version of sprintf (Notice the bufSize param, which may be ignored in some compiler...
GLuint GLuint GLsizei count
int vsnprintf(char *buf, size_t bufSize, const char *format, va_list args) noexcept
An OS-independent version of vsnprintf (Notice the bufSize param, which may be ignored in some compil...
unsigned __int64 uint64_t
void clearConsole()
Clears the console window.
#define MRPT_printf_format_check(_FMT_, _VARARGS_)
char * strcpy(char *dest, size_t destSize, const char *source) noexcept
An OS-independent version of strcpy.
std::string MRPT_getCompilationDate()
Returns the MRPT source code timestamp, according to the Reproducible-Builds specifications: https://...
int _strcmp(const char *str1, const char *str2) noexcept
An OS-independent version of strcmp.
int executeCommand(const std::string &command, std::string *output=NULL, const std::string &mode="r")
Execute Generic Shell Command.
bool launchProcess(const std::string &command)
Executes the given command (which may contain a program + arguments), and waits until it finishes.
int fprintf(FILE *fil, const char *format,...) noexcept MRPT_printf_format_check(2
An OS-independent version of fprintf.
TConsoleColor
For use in setConsoleColor.
int getch() noexcept
An OS-independent version of getch, which waits until a key is pushed.
int _strnicmp(const char *str, const char *subStr, size_t count) noexcept
An OS-independent version of strnicmp.
FILE * fopen(const char *fileName, const char *mode) noexcept
An OS-independent version of fopen.
GLsizei const GLchar ** string
std::string find_mrpt_shared_dir()
Finds the "[MRPT]/share/mrpt/" directory, if available in the system.
int _strcmpi(const char *str1, const char *str2) noexcept
An OS-independent version of strcmpi.
char * strcat(char *dest, size_t destSize, const char *source) noexcept
An OS-independent version of strcat.
void setConsoleColor(TConsoleColor color, bool changeStdErr=false)
Changes the text color in the console for the text written from now on.
std::string MRPT_getVersion()
Returns a string describing the MRPT version.
int _strncmp(const char *str, const char *subStr, size_t count) noexcept
An OS-independent version of strncmp.
void pause(const std::string &msg=std::string("Press any key to continue...")) noexcept
Shows the message "Press any key to continue" (or other custom message) to the current standard outpu...
const std::string & getMRPTLicense()
Returns a const ref to a text with the same text that appears at the beginning of each MRPT file (use...
void memcpy(void *dest, size_t destSize, const void *src, size_t copyCount) noexcept
An OS and compiler independent version of "memcpy".
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |