MOAB: Mesh Oriented datABase  (version 5.2.1)
status.h File Reference
#include "mhdf.h"
+ Include dependency graph for status.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void mhdf_setOkay (mhdf_Status *)
void mhdf_setFail (mhdf_Status *, const char *,...)

Function Documentation

void mhdf_setFail ( mhdf_Status ,
const char *  ,
  ... 
)

Definition at line 41 of file status.c.

References args, struct_mhdf_Status::message, and MHDF_MESSAGE_BUFFER_LEN.

Referenced by create_tag_common(), get_elem_type_enum(), get_file_id_size(), get_tag(), get_tag_desc(), get_tag_type(), make_hdf_group(), mhdf_addElement(), mhdf_alloc_FileHandle(), mhdf_check_valid_file(), mhdf_checkOpenHandles(), mhdf_closeData(), mhdf_closeFile(), mhdf_create_scalar_attrib(), mhdf_create_table_with_prop(), mhdf_createAdjacency(), mhdf_createConnectivity(), mhdf_createDenseTagData(), mhdf_createFile(), mhdf_createNodeCoords(), mhdf_createPolyConnectivity(), mhdf_createSetChildren(), mhdf_createSetData(), mhdf_createSetParents(), mhdf_createSparseTagData(), mhdf_createVarLenTagData(), mhdf_elem_group_from_handle(), mhdf_find_attribute(), mhdf_getElemHandles(), mhdf_getElemName(), mhdf_getElemTypeName(), mhdf_getNativeType(), mhdf_getNumberTags(), mhdf_getTagDataType(), mhdf_getTagInfo(), mhdf_getTagNames(), mhdf_getTagValues(), mhdf_haveAdjacency(), mhdf_haveDenseTag(), mhdf_haveNodes(), mhdf_haveSets(), mhdf_is_in_group(), mhdf_malloc(), mhdf_open_table(), mhdf_open_table2(), mhdf_open_table_simple(), mhdf_openAdjacency(), mhdf_openConnectivity(), mhdf_openDenseTagData(), mhdf_openFileWithOpt(), mhdf_openPolyConnectivity(), mhdf_openSetChildren(), mhdf_openSetData(), mhdf_openSetMeta(), mhdf_openSetParents(), mhdf_openSparseTagData(), mhdf_read_scalar_attrib(), mhdf_readHistory(), mhdf_readSetMetaColumn(), mhdf_readwrite(), mhdf_readwrite_column(), mhdf_readwriteSetMeta(), mhdf_realloc(), mhdf_write_max_id(), mhdf_writeHistory(), read_tag_attrib_data(), scan_for_max_id(), and store_tag_val_in_attrib().

{
    if( status )
    {
        va_list args;
        va_start( args, fmt );
        vsnprintf( status->message, MHDF_MESSAGE_BUFFER_LEN, fmt, args );
        va_end( args );
        if( !status->message[ 0 ] ) strncpy( status->message, "(Uknown error)", MHDF_MESSAGE_BUFFER_LEN );
    }
}
void mhdf_setOkay ( mhdf_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 Corporation, 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.

Definition at line 36 of file status.c.

References struct_mhdf_Status::message.

Referenced by create_tag_common(), get_tag(), mhdf_addElement(), mhdf_closeData(), mhdf_closeFile(), mhdf_create_table_with_prop(), mhdf_createConnectivity(), mhdf_createDenseTagData(), mhdf_createFile(), mhdf_createNodeCoords(), mhdf_createPolyConnectivity(), mhdf_createSetMeta(), mhdf_createSparseTagData(), mhdf_createVarLenTagData(), mhdf_getElemHandles(), mhdf_getElemName(), mhdf_getElemTypeName(), mhdf_getFileSummary(), mhdf_getNativeType(), mhdf_getNextStartId(), mhdf_getNumberTags(), mhdf_getTagInfo(), mhdf_getTagNames(), mhdf_getTagValues(), mhdf_haveAdjacency(), mhdf_haveDenseTag(), mhdf_haveNodes(), mhdf_haveSets(), mhdf_isPolyElement(), mhdf_open_table(), mhdf_open_table2(), mhdf_open_table_simple(), mhdf_openConnectivity(), mhdf_openConnectivitySimple(), mhdf_openDenseTagData(), mhdf_openFileWithOpt(), mhdf_openNodeCoords(), mhdf_openNodeCoordsSimple(), mhdf_openPolyConnectivity(), mhdf_openSetMeta(), mhdf_openSetMetaSimple(), mhdf_openSparseTagData(), mhdf_readHistory(), mhdf_readSetMetaColumn(), mhdf_readwrite(), mhdf_readwrite_column(), mhdf_readwriteSetMeta(), and mhdf_writeHistory().

{
    if( status ) status->message[ 0 ] = '\0';
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines