Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
ON_BinaryFile Class Reference

#include <opennurbs_archive.h>

Inheritance diagram for ON_BinaryFile:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool AtEnd () const
size_t CurrentPosition () const
void EnableMemoryBuffer (int=16384)
 ON_BinaryFile (ON::archive_mode)
 ON_BinaryFile (ON::archive_mode, FILE *fp)
bool SeekFromCurrentPosition (int)
bool SeekFromEnd (int)
bool SeekFromStart (size_t)
virtual ~ON_BinaryFile ()

Protected Member Functions

bool Flush ()
size_t Read (size_t, void *)
size_t Write (size_t, const void *)

Private Member Functions

 ON_BinaryFile ()
 ON_BinaryFile (const ON_BinaryFile &)
ON_BinaryFileoperator= (const ON_BinaryFile &)

Private Attributes

FILE * m_fp
unsigned char * m_memory_buffer
size_t m_memory_buffer_capacity
size_t m_memory_buffer_ptr
size_t m_memory_buffer_size

Detailed Description

Definition at line 2751 of file opennurbs_archive.h.


Constructor & Destructor Documentation

ON_BinaryFile::ON_BinaryFile ( ON::archive_mode  mode)

Definition at line 13055 of file opennurbs_archive.cpp.

ON_BinaryFile::ON_BinaryFile ( ON::archive_mode  mode,
FILE *  fp 
)

Definition at line 13064 of file opennurbs_archive.cpp.

Definition at line 13073 of file opennurbs_archive.cpp.


Member Function Documentation

bool ON_BinaryFile::AtEnd ( ) const [virtual]

Implements ON_BinaryArchive.

Definition at line 13342 of file opennurbs_archive.cpp.

size_t ON_BinaryFile::CurrentPosition ( ) const [virtual]

Implements ON_BinaryArchive.

Definition at line 13307 of file opennurbs_archive.cpp.

void ON_BinaryFile::EnableMemoryBuffer ( int  buffer_capacity = 16384)

Definition at line 13221 of file opennurbs_archive.cpp.

bool ON_BinaryFile::Flush ( ) [protected, virtual]

Implements ON_BinaryArchive.

Definition at line 13281 of file opennurbs_archive.cpp.

ON_BinaryFile& ON_BinaryFile::operator= ( const ON_BinaryFile ) [private]
size_t ON_BinaryFile::Read ( size_t  count,
void *  p 
) [protected, virtual]

Implements ON_BinaryArchive.

Definition at line 13246 of file opennurbs_archive.cpp.

bool ON_BinaryFile::SeekFromCurrentPosition ( int  offset) [virtual]

Implements ON_BinaryArchive.

Definition at line 13370 of file opennurbs_archive.cpp.

bool ON_BinaryFile::SeekFromEnd ( int  offset)

Definition at line 13412 of file opennurbs_archive.cpp.

bool ON_BinaryFile::SeekFromStart ( size_t  offset) [virtual]

Implements ON_BinaryArchive.

Definition at line 13430 of file opennurbs_archive.cpp.

size_t ON_BinaryFile::Write ( size_t  count,
const void *  p 
) [protected, virtual]

Implements ON_BinaryArchive.

Definition at line 13251 of file opennurbs_archive.cpp.


Member Data Documentation

FILE* ON_BinaryFile::m_fp [private]

Definition at line 2799 of file opennurbs_archive.h.

unsigned char* ON_BinaryFile::m_memory_buffer [private]

Definition at line 2810 of file opennurbs_archive.h.

Definition at line 2807 of file opennurbs_archive.h.

Definition at line 2809 of file opennurbs_archive.h.

Definition at line 2808 of file opennurbs_archive.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:51