libopencad
Public Types | Public Member Functions | Protected Attributes | List of all members
CADFileIO Class Referenceabstract

The CADFileIO class provides in/out file operations as read, write, seek, etc. This is abstract class. More...

#include <cadfileio.h>

Inheritance diagram for CADFileIO:
CADFileStreamIO

Public Types

enum  SeekOrigin { SeekOrigin::BEG, SeekOrigin::CUR, SeekOrigin::END }
 
enum  OpenMode { binary = 1L << 2, read = 1L << 3, write = 1L << 4 }
 

Public Member Functions

 CADFileIO (const char *pszFileName)
 
virtual const char * ReadLine ()=0
 
virtual bool Eof ()=0
 
virtual bool Open (int mode)=0
 
virtual bool IsOpened () const
 
virtual bool Close ()
 
virtual int Seek (long int offset, SeekOrigin origin)=0
 
virtual long int Tell ()=0
 
virtual size_t Read (void *ptr, size_t size)=0
 
virtual size_t Write (void *ptr, size_t size)=0
 
virtual void Rewind ()=0
 
const char * GetFilePath () const
 

Protected Attributes

const char * m_pszFilePath
 
bool m_bIsOpened
 

Detailed Description

The CADFileIO class provides in/out file operations as read, write, seek, etc. This is abstract class.

Member Enumeration Documentation

enum CADFileIO::SeekOrigin
strong
Enumerator
BEG 

Begin of the file

CUR 

Current position of the pointer

END 

End of file


The documentation for this class was generated from the following files: