/*
 * HnBlockFile.cc
 *
 * DO NOT EDIT THIS FILE!
 *
 * This file is automatically generated by obj2ptr.
 * 2006/08/03 17:37:29
 */

#include "HnSRTree/HnBlockFile.hh"
#include "HnSRTree/HnBlockFileObj.hh"

/*
 * HnBlockFile
 */

const HnBlockFile HnBlockFile::null;

HnBlockFile
new_HnBlockFile(const char *fileName, int blockSize)
{
    HnBlockFileObj *_obj;

    _obj = new HnBlockFileObj(fileName, blockSize);

    if ( _obj->hasConstructorFailed() ) {
        delete _obj;
        return (HnBlockFileObj *)NULL;
    }

    return _obj;
}

HnBlockFile
new_HnBlockFile(const char *fileName, const char *mode)
{
    HnBlockFileObj *_obj;

    _obj = new HnBlockFileObj(fileName, mode);

    if ( _obj->hasConstructorFailed() ) {
        delete _obj;
        return (HnBlockFileObj *)NULL;
    }

    return _obj;
}

HnBlockFile
new_HnBlockFile(int blockSize)
{
    HnBlockFileObj *_obj;

    _obj = new HnBlockFileObj(blockSize);

    if ( _obj->hasConstructorFailed() ) {
        delete _obj;
        return (HnBlockFileObj *)NULL;
    }

    return _obj;
}

#define HnClass HnBlockFile
#include "HnSRTree/HnClassArray.cc"

