MrSID Decode SDK for LiDAR Reference Manual 1.1.5.5244
FileIO.h
Go to the documentation of this file.
1//
2// This code is property of Celartem, Inc dba Extensis.
3// Copyright (c) 1995-2023. All rights reserved.
4// Use permitted only under license from Extensis.
5//
6/* PUBLIC */
7
8#ifndef __LIDAR_FILE_IO_H__
9#define __LIDAR_FILE_IO_H__
10
11#include "lidar/IO.h"
12#include "lidar/Mutex.h"
13
14LT_BEGIN_LIDAR_NAMESPACE
15
26class FileIO : public IO
27{
29public:
30
47 void init(const char *path, const char *mode);
48#ifdef _WIN32
65#ifdef SWIG
66 void init(const wchar_t *path, const char *mode);
67#else
68 void init(const unsigned short *path, const char *mode);
69 void init(const __wchar_t *path, const char *mode);
70#endif
71#endif
72
82 void init(const char *tempdir);
83#ifdef _WIN32
93#ifdef SWIG
94 void init(const wchar_t *tempdir);
95#else
96 void init(const unsigned short *tempdir);
97 void init(const __wchar_t *tempdir);
98#endif
99#endif
100
101 void unlink(void);
102
110 static void deleteFile(const char *path);
118 static bool fileExists(const char *path);
119
120protected:
121 class Imp;
125};
126
127LT_END_LIDAR_NAMESPACE
128#endif // __LIDAR_FILE_IO_H__
#define CONCRETE_OBJECT(classname)
CONCRETE_OBJECT(): should be used when deriving classes that are concrete.
Definition: Object.h:51
FileIO implements file-based IO.
Definition: FileIO.h:27
static bool fileExists(const char *path)
Test if the file exists.
void init(const char *path, const char *mode)
Initialize with the file path and access mode.
void unlink(void)
Delete the resource when the IO object is deleted.
static void deleteFile(const char *path)
Delete a file.
bool m_unlinkFile
Definition: FileIO.h:124
void init(const char *tempdir)
Create a temporary file for readeing and writing.
int m_openCount
Definition: FileIO.h:123
Mutex m_openLock
Definition: FileIO.h:122
IO is the base class for binary input and output.
Definition: IO.h:26
Mutex is a cross platform wrapper for mutexes.
Definition: Mutex.h:26

Extensis