Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Examples

Exiv2::DataBuf Class Reference

Utility class containing a character array. All it does is to take care of memory allocation and deletion. Its primary use is meant to be as a stack variable in functions that need a temporary data buffer. Todo: this should be some sort of smart pointer, essentially an std:auto_ptr for a character array. But it isn't. More...

#include <types.hpp>

List of all members.

Public Member Functions

 DataBuf ()
 Default constructor.
 DataBuf (long size)
 Constructor with an initial buffer size.
 ~DataBuf ()
 Destructor, deletes the allocated buffer.
void alloc (long size)
 Allocate a data buffer of the given size.

Public Attributes

long size_
 The current size of the buffer.
bytepData_
 Pointer to the buffer, 0 if none has been allocated.


Detailed Description

Utility class containing a character array. All it does is to take care of memory allocation and deletion. Its primary use is meant to be as a stack variable in functions that need a temporary data buffer. Todo: this should be some sort of smart pointer, essentially an std:auto_ptr for a character array. But it isn't.


The documentation for this class was generated from the following file:
Generated on Mon Sep 13 22:01:45 2004 for Exiv2 by doxygen 1.3.8