Mesh Oriented datABase  (version 5.4.1)
Array-based unstructured mesh datastructure
file-handle.h
Go to the documentation of this file.
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 {
00031     uint32_t magic;
00032     hid_t hdf_handle;
00033     int open_handle_count;
00034     hid_t id_type; /* data type to use when creating tables of IDs */
00035     long max_id;
00036 } FileHandle;
00037 
00038 FileHandle* mhdf_alloc_FileHandle( hid_t hdf_handle, hid_t id_type, mhdf_Status* status );
00039 
00040 int mhdf_check_valid_file( FileHandle* handle, mhdf_Status* status );
00041 
00042 #ifdef __cplusplus
00043 } /* extern "C" */
00044 #endif
00045 
00046 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines