moab
util.h File Reference
#include <sys/types.h>
#include <H5Ipublic.h>
#include "status.h"
#include "file-handle.h"

Go to the source code of this file.

Defines

#define API_BEGIN
#define API_END_H(n)
#define API_END   API_END_H(0)

Functions

void * mhdf_malloc (size_t size, mhdf_Status *status)
void * mhdf_realloc (void *ptr, size_t size, mhdf_Status *status)
size_t mhdf_name_to_path (const char *name, char *path, size_t path_len)
int mhdf_path_to_name (const char *path, char *name)
char * mhdf_name_to_path_copy (const char *name, mhdf_Status *status)
char * mhdf_name_to_path_cat (const char *prefix, const char *name, mhdf_Status *status)
hid_t mhdf_elem_group_from_handle (FileHandle *file_ptr, const char *elem_handle, mhdf_Status *status)
int mhdf_create_scalar_attrib (hid_t object, const char *name, hid_t type, const void *value, mhdf_Status *status)
int mhdf_read_scalar_attrib (hid_t object, const char *name, hid_t type, void *value, mhdf_Status *status)
int mhdf_find_attribute (hid_t object, const char *attrib_name, unsigned int *index_out, mhdf_Status *status)
int mhdf_is_in_group (hid_t group, const char *name, mhdf_Status *status)
int mhdf_read_data (hid_t data_table, long offset, long count, hid_t type, void *array, hid_t read_prop, mhdf_Status *status)
int mhdf_write_data (hid_t data_table, long offset, long count, hid_t type, const void *array, hid_t write_prop, mhdf_Status *status)
int mhdf_read_column (hid_t data_table, int column, long offset, long count, hid_t type, void *array, hid_t read_prop, mhdf_Status *status)
int mhdf_write_column (hid_t data_table, int column, long offset, long count, hid_t type, const void *array, hid_t write_prop, mhdf_Status *status)
hid_t mhdf_create_table (hid_t group, const char *path, hid_t type, int rank, hsize_t *dims, mhdf_Status *status)
hid_t mhdf_create_table_with_prop (hid_t group, const char *path, hid_t type, int rank, hsize_t *dims, hid_t dataset_creation_prop, mhdf_Status *status)
hid_t mhdf_open_table (hid_t group, const char *path, int columns, hsize_t *rows_out, mhdf_Status *status)
hid_t mhdf_open_table2 (hid_t group, const char *path, int rank, hsize_t *dims_out, long *start_id_out, mhdf_Status *status)
hid_t mhdf_open_table_simple (hid_t group, const char *path, mhdf_Status *status)
int mhdf_compact_to_ranges (int *length_in_out, int *ids_in, int ordered)
hid_t get_elem_type_enum (FileHandle *file_ptr, mhdf_Status *status)
void mhdf_api_begin_internal (void)
void mhdf_api_end_internal (int expected_diff, const char *filename, int linenumber)
int mhdf_write_max_id (FileHandle *file_ptr, mhdf_Status *status)

Define Documentation

#define API_BEGIN

Definition at line 161 of file util.h.

#define API_END   API_END_H(0)

Definition at line 167 of file util.h.

#define API_END_H (   n)

Definition at line 162 of file util.h.


Function Documentation

hid_t get_elem_type_enum ( FileHandle file_ptr,
mhdf_Status status 
)
void mhdf_api_begin_internal ( void  )
void mhdf_api_end_internal ( int  expected_diff,
const char *  filename,
int  linenumber 
)
int mhdf_compact_to_ranges ( int *  length_in_out,
int *  ids_in,
int  ordered 
)
int mhdf_create_scalar_attrib ( hid_t  object,
const char *  name,
hid_t  type,
const void *  value,
mhdf_Status status 
)
hid_t mhdf_create_table ( hid_t  group,
const char *  path,
hid_t  type,
int  rank,
hsize_t *  dims,
mhdf_Status status 
)
hid_t mhdf_create_table_with_prop ( hid_t  group,
const char *  path,
hid_t  type,
int  rank,
hsize_t *  dims,
hid_t  dataset_creation_prop,
mhdf_Status status 
)
hid_t mhdf_elem_group_from_handle ( FileHandle file_ptr,
const char *  elem_handle,
mhdf_Status status 
)
int mhdf_find_attribute ( hid_t  object,
const char *  attrib_name,
unsigned int *  index_out,
mhdf_Status status 
)
int mhdf_is_in_group ( hid_t  group,
const char *  name,
mhdf_Status status 
)
void* mhdf_malloc ( size_t  size,
mhdf_Status status 
)

MOAB, a Mesh-Oriented datABase, is a software component for creating, storing and accessing finite element mesh data.

Copyright 2004 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Coroporation, the U.S. Government retains certain rights in this software.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

size_t mhdf_name_to_path ( const char *  name,
char *  path,
size_t  path_len 
)
char* mhdf_name_to_path_cat ( const char *  prefix,
const char *  name,
mhdf_Status status 
)
char* mhdf_name_to_path_copy ( const char *  name,
mhdf_Status status 
)
hid_t mhdf_open_table ( hid_t  group,
const char *  path,
int  columns,
hsize_t *  rows_out,
mhdf_Status status 
)
hid_t mhdf_open_table2 ( hid_t  group,
const char *  path,
int  rank,
hsize_t *  dims_out,
long *  start_id_out,
mhdf_Status status 
)
hid_t mhdf_open_table_simple ( hid_t  group,
const char *  path,
mhdf_Status status 
)
int mhdf_path_to_name ( const char *  path,
char *  name 
)
int mhdf_read_column ( hid_t  data_table,
int  column,
long  offset,
long  count,
hid_t  type,
void *  array,
hid_t  read_prop,
mhdf_Status status 
)
int mhdf_read_data ( hid_t  data_table,
long  offset,
long  count,
hid_t  type,
void *  array,
hid_t  read_prop,
mhdf_Status status 
)
int mhdf_read_scalar_attrib ( hid_t  object,
const char *  name,
hid_t  type,
void *  value,
mhdf_Status status 
)
void* mhdf_realloc ( void *  ptr,
size_t  size,
mhdf_Status status 
)
int mhdf_write_column ( hid_t  data_table,
int  column,
long  offset,
long  count,
hid_t  type,
const void *  array,
hid_t  write_prop,
mhdf_Status status 
)
int mhdf_write_data ( hid_t  data_table,
long  offset,
long  count,
hid_t  type,
const void *  array,
hid_t  write_prop,
mhdf_Status status 
)
int mhdf_write_max_id ( FileHandle file_ptr,
mhdf_Status status 
)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines