packages/Utils/utils/Serial_HDF5_Writer.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Write a field of chars to the output file.
 *
 * \param name name of the vector data
 * \param value data to write
 * \param size number of elements
 */
\brief Write a field of chars to the output file.
\param name name of the vector data
\param value data to write
\param size number of elements
\ brief Write a field of chars to the output file . \ param name name of the vector data \ param value data to write \ param size number of elements
void Serial_HDF5_Writer::write(const std_string &name,
                               const char       *value,
                               std::size_t       size)
{
    REQUIRE(!is_readonly());
    if (b_node != b_master)
        return;
    hsize_t dims[1] = {size};
    H5LTmake_dataset_char(current_loc(), name.c_str(), 1, dims, value);
}
void Serial_HDF5_Writer :: write ( const std_string & name , const char * value , std :: size_t size ) { REQUIRE ( ! is_readonly ( ) ) ; if ( b_node != b_master ) return ; hsize_t dims [ 1 ] = { size } ; H5LTmake_dataset_char ( current_loc ( ) , name . c_str ( ) , 1 , dims , value ) ; }
\brief Write a field of chars to the output file.
\ brief Write a field of chars to the output file .
// scalar dimensions // write the data