MOAB: Mesh Oriented datABase
(version 5.2.1)
|
00001 /** 00002 * MOAB, a Mesh-Oriented datABase, is a software component for creating, 00003 * storing and accessing finite element mesh data. 00004 * 00005 * Copyright 2004 Sandia Corporation. Under the terms of Contract 00006 * DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government 00007 * retains certain rights in this software. 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU Lesser General Public 00011 * License as published by the Free Software Foundation; either 00012 * version 2.1 of the License, or (at your option) any later version. 00013 * 00014 */ 00015 00016 #ifndef MHDF_FILE_HANDLE_H 00017 #define MHDF_FILE_HANDLE_H 00018 00019 #ifdef _WIN32 /* windows */ 00020 # include <BaseTsd.h> 00021 typedef ULONG32 uint32_t; 00022 #endif 00023 #include "mhdf.h" 00024 00025 #ifdef __cplusplus 00026 extern "C" { 00027 #endif 00028 00029 typedef struct struct_FileHandle { 00030 uint32_t magic; 00031 hid_t hdf_handle; 00032 int open_handle_count; 00033 hid_t id_type; /* data type to use when creating tables of IDs */ 00034 long max_id; 00035 } FileHandle; 00036 00037 FileHandle* mhdf_alloc_FileHandle( hid_t hdf_handle, hid_t id_type, mhdf_Status* status ); 00038 00039 int mhdf_check_valid_file( FileHandle* handle, mhdf_Status* status ); 00040 00041 #ifdef __cplusplus 00042 } /* extern "C" */ 00043 #endif 00044 00045 #endif