Main MRPT website > C++ reference for MRPT 1.5.6
Macros | Functions
serialinterface.cpp File Reference
#include "serialinterface.h"
#include <xsens/xsportinfo.h>
#include <xsens/xscontrolline.h>
#include <errno.h>
#include <winbase.h>
#include <io.h>
Include dependency graph for serialinterface.cpp:

Go to the source code of this file.

Macros

#define _CRT_SECURE_NO_DEPRECATE
 
#define FSEEK(x)   _fseeki64(m_handle, x, SEEK_SET)
 
#define FSEEK_R(x)   _fseeki64(m_handle, x, SEEK_END)
 
#define FTELL()   _ftelli64(m_handle)
 
#define XDA1LOG_OBSOLETE(...)   (void)0
 

Functions

bool doesFileExist (char *filename)
 Helper function for making filename of log file unique. More...
 
void makeFilenameUnique (char *filename)
 Helper function for making filename of log file unique. More...
 

Macro Definition Documentation

#define _CRT_SECURE_NO_DEPRECATE

Definition at line 28 of file serialinterface.cpp.

#define FSEEK (   x)    _fseeki64(m_handle, x, SEEK_SET)

Definition at line 37 of file serialinterface.cpp.

#define FSEEK_R (   x)    _fseeki64(m_handle, x, SEEK_END)

Definition at line 38 of file serialinterface.cpp.

#define FTELL ( )    _ftelli64(m_handle)

Definition at line 39 of file serialinterface.cpp.

#define XDA1LOG_OBSOLETE (   ...)    (void)0

Definition at line 51 of file serialinterface.cpp.

Function Documentation

bool doesFileExist ( char *  filename)

Helper function for making filename of log file unique.

Definition at line 443 of file serialinterface.cpp.

References mrpt::system::os::fclose(), and mrpt::system::os::fopen().

Referenced by makeFilenameUnique().

void makeFilenameUnique ( char *  filename)

Helper function for making filename of log file unique.

Definition at line 454 of file serialinterface.cpp.

References counter, doesFileExist(), mrpt::system::os::sprintf(), mrpt::system::os::strcpy(), and XS_MAX_FILENAME_LENGTH.

Referenced by SerialInterface::readData(), and SerialInterface::writeData().




Page generated by Doxygen 1.8.6 for MRPT 1.5.6 Git: 4c65e84 Tue Apr 24 08:18:17 2018 +0200 at mar abr 24 08:26:17 CEST 2018