Main MRPT website > C++ reference for MRPT 1.5.9
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

◆ _CRT_SECURE_NO_DEPRECATE

#define _CRT_SECURE_NO_DEPRECATE

Definition at line 28 of file serialinterface.cpp.

◆ FSEEK

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

Definition at line 37 of file serialinterface.cpp.

◆ FSEEK_R

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

Definition at line 38 of file serialinterface.cpp.

◆ FTELL

#define FTELL ( )    _ftelli64(m_handle)

Definition at line 39 of file serialinterface.cpp.

◆ XDA1LOG_OBSOLETE

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

Definition at line 51 of file serialinterface.cpp.

Function Documentation

◆ doesFileExist()

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().

◆ 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.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020