12 #ifndef __LIDAR_IO_H__
13 #define __LIDAR_IO_H__
18 LT_BEGIN_LIDAR_NAMESPACE
66 size_t nbytes)
const = 0;
79 size_t nbytes)
const = 0;
104 virtual void unlink(
void) = 0;
133 virtual void popen(
void) = 0;
139 virtual void pclose(
void) = 0;
146 LT_END_LIDAR_NAMESPACE
147 #endif // __LIDAR_IO_H__
Location(IO *io=NULL, offset_type offset=0, offset_type length=0)
Location & operator=(const Location &rhs)
virtual offset_type size(void) const =0
Get the size of the resource.
virtual size_t pread(offset_type offset, void *buffer, size_t nbytes) const =0
Read data.
void set(IO *io, offset_type offset, offset_type length)
Location is a helper structure for holding the location of data in a IO object.
virtual size_t pwrite(offset_type offset, const void *buffer, size_t nbytes) const =0
Write data.
Object is the base class for implementing reference counting.
virtual void pclose(void)=0
The Real Close.
Mutex is a cross platform wrapper for mutexes.
void close(void)
Close the IO object.
virtual void truncate(offset_type length)=0
Set the size of the resource.
virtual void unlink(void)=0
Delete the resource when the IO object is deleted.
IO is the base class for binary input and output.
virtual void popen(void)=0
The Real Open.
long long int lt_int64
signed 64-bit integer
void open(void)
Open the IO object.
lt_int64 offset_type
Integer data type for file offsets and sizes.