MRPT  1.9.9
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 474 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 484 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.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020