Sha256: 1c971a719771d04a6f0e2b8027885d0318fb05a46d8d6306fab5b03851ec784f
Contents?: true
Size: 636 Bytes
Versions: 9
Compression:
Stored size: 636 Bytes
Contents
#ifndef __FGDB_SHAPE_BUFFER_BASE_HPP__ #define __FGDB_SHAPE_BUFFER_BASE_HPP__ #include "filegdb.hpp" #include "base.hpp" namespace filegdb { template <typename T, typename S> class shape_buffer_base : public base<T> { public: shape_buffer_base() : _shape_buffer(0) {}; virtual ~shape_buffer_base() { if (_shape_buffer) { delete _shape_buffer; _shape_buffer = NULL; } } virtual VALUE initialize(int argc, VALUE *argv) { _shape_buffer = new S; return base<T>::wrapped(); } S &value() { return *_shape_buffer; } protected: S *_shape_buffer; }; } #endif
Version data entries
9 entries across 9 versions & 1 rubygems