ldas-tools-ldasgen  2.7.3
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
InputFile Class Reference

#include <inputfile.hh>

Inheritance diagram for InputFile:
Inheritance graph
[legend]
Collaboration diagram for InputFile:
Collaboration graph
[legend]

Public Types

typedef LDASTools::AL::ifstream ifstream
 
typedef LDASTools::AL::ifstream ifstream
 
typedef LDASTools::AL::ifstream ifstream
 

Public Member Functions

 InputFile (const char *filename, std::ios::openmode m)
 exc: permission_denied - Permission to access the file or a More...
 
 InputFile (const char *filename, std::ios::openmode m, unsigned int buffer_size)
 exc: permission_denied - Permission to access the file or a More...
 
 InputFile (const char *filename, std::ios::openmode m, bool use_memory_mapped_io, unsigned int buffer_size, char *buffer=(char *) NULL)
 param: unsigned int buffer_size - The size of the buffer. Zero for More...
 
virtual ~InputFile ()
 
ifstreamgetifstream ()
 return: std::ifstream& More...
 
virtual bool is_open ()
 return: bool More...
 
 InputFile (const char *filename, std::ios::openmode m)
 
 InputFile (const char *filename, std::ios::openmode m, unsigned int buffer_size)
 
 InputFile (const char *filename, std::ios::openmode m, bool use_memory_mapped_io, unsigned int buffer_size, char *buffer=(char *) NULL)
 
virtual ~InputFile ()
 
ifstreamgetifstream ()
 
virtual bool is_open ()
 return: bool More...
 
 InputFile (const char *filename, std::ios::openmode m)
 
 InputFile (const char *filename, std::ios::openmode m, unsigned int buffer_size)
 
 InputFile (const char *filename, std::ios::openmode m, bool use_memory_mapped_io, unsigned int buffer_size, char *buffer=(char *) NULL)
 
virtual ~InputFile ()
 
ifstreamgetifstream ()
 
virtual bool is_open ()
 return: bool More...
 

Private Member Functions

void open_file (const char *filename, std::ios::openmode m)
 exc: permission_denied - Permission to access the file or a More...
 
void open_file (const char *filename, std::ios::openmode m)
 
void open_file (const char *filename, std::ios::openmode m)
 

Private Attributes

boost::shared_array< char > m_buffer
 
ifstream mStream
 

Member Typedef Documentation

◆ ifstream [1/3]

typedef LDASTools::AL::ifstream InputFile::ifstream

◆ ifstream [2/3]

typedef LDASTools::AL::ifstream InputFile::ifstream

◆ ifstream [3/3]

typedef LDASTools::AL::ifstream InputFile::ifstream

Constructor & Destructor Documentation

◆ InputFile() [1/9]

InputFile::InputFile ( const char *  filename,
std::ios::openmode  m 
)

exc: permission_denied - Permission to access the file or a

param: const char* filename - The file to open. param: std::ios::openmode m - The mode in which to open the file.exc: file_not_found - The file or a directory component was not exc: bad_alloc - Insufficient kernel memory to open the file. exc: io_error - An unknown I/O error occurred.

◆ InputFile() [2/9]

InputFile::InputFile ( const char *  filename,
std::ios::openmode  m,
unsigned int  buffer_size 
)

exc: permission_denied - Permission to access the file or a

param: const char* filename - The file to open. param: std::ios::openmode m - The mode in which to open the file. param: unsigned int buffer_size - The size of the buffer. Zero forexc: file_not_found - The file or a directory component was not exc: bad_alloc - Insufficient kernel memory to open the file. exc: io_error - An unknown I/O error occurred.

◆ InputFile() [3/9]

InputFile::InputFile ( const char *  filename,
std::ios::openmode  m,
bool  use_memory_mapped_io,
unsigned int  buffer_size,
char *  buffer = (char*)NULL 
)

param: unsigned int buffer_size - The size of the buffer. Zero for

param: const char* filename - The file to open. param: std::ios::openmode m - The mode in which to open the file. param: bool use_memory_mapped_io - True if the memory mapped io facilitiesparam: char* buffer - Optionally supplied buffer. exc: permission_denied - Permission to access the file or a exc: file_not_found - The file or a directory component was not exc: bad_alloc - Insufficient kernel memory to open the file. exc: io_error - An unknown I/O error occurred.

◆ ~InputFile() [1/3]

InputFile::~InputFile ( )
virtual

◆ InputFile() [4/9]

InputFile::InputFile ( const char *  filename,
std::ios::openmode  m 
)

◆ InputFile() [5/9]

InputFile::InputFile ( const char *  filename,
std::ios::openmode  m,
unsigned int  buffer_size 
)

◆ InputFile() [6/9]

InputFile::InputFile ( const char *  filename,
std::ios::openmode  m,
bool  use_memory_mapped_io,
unsigned int  buffer_size,
char *  buffer = (char *) NULL 
)

◆ ~InputFile() [2/3]

virtual InputFile::~InputFile ( )
virtual

◆ InputFile() [7/9]

InputFile::InputFile ( const char *  filename,
std::ios::openmode  m 
)

◆ InputFile() [8/9]

InputFile::InputFile ( const char *  filename,
std::ios::openmode  m,
unsigned int  buffer_size 
)

◆ InputFile() [9/9]

InputFile::InputFile ( const char *  filename,
std::ios::openmode  m,
bool  use_memory_mapped_io,
unsigned int  buffer_size,
char *  buffer = (char *) NULL 
)

◆ ~InputFile() [3/3]

virtual InputFile::~InputFile ( )
virtual

Member Function Documentation

◆ getifstream() [1/3]

InputFile::ifstream & InputFile::getifstream ( )
inline

return: std::ifstream&

◆ getifstream() [2/3]

ifstream& InputFile::getifstream ( )

◆ getifstream() [3/3]

ifstream& InputFile::getifstream ( )

◆ is_open() [1/3]

bool InputFile::is_open ( )
virtual

return: bool

Implements File.

◆ is_open() [2/3]

virtual bool InputFile::is_open ( )
virtual

return: bool

Implements File.

◆ is_open() [3/3]

virtual bool InputFile::is_open ( )
virtual

return: bool

Implements File.

◆ open_file() [1/3]

void InputFile::open_file ( const char *  filename,
std::ios::openmode  m 
)
private

exc: permission_denied - Permission to access the file or a

param: const char* filename - The file to open. param: std::ios::openmode m - The mode in which to open the file.exc: file_not_found - The file or a directory component was not exc: bad_alloc - Insufficient kernel memory to open the file. exc: io_error - An unknown I/O error occurred.

◆ open_file() [2/3]

void InputFile::open_file ( const char *  filename,
std::ios::openmode  m 
)
private

◆ open_file() [3/3]

void InputFile::open_file ( const char *  filename,
std::ios::openmode  m 
)
private

Member Data Documentation

◆ m_buffer

boost::shared_array< char > InputFile::m_buffer
private

◆ mStream

ifstream InputFile::mStream
private

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