/*
 * HnBlockFile.cc
 *
 * DO NOT EDIT THIS FILE!
 *
 * This file is automatically generated by obj2ptr.
 * 2002/09/13 12:41:10
 */

#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.cpp"

