本文整理汇总了C++中Converter::read_hdf5方法的典型用法代码示例。如果您正苦于以下问题:C++ Converter::read_hdf5方法的具体用法?C++ Converter::read_hdf5怎么用?C++ Converter::read_hdf5使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Converter
的用法示例。
在下文中一共展示了Converter::read_hdf5方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
//--------------------------------------------------------------------
void
HDF5Table::read_hdf5_property( )
{
// Won't need H5IO to be passed, instead get it in the constructor at the file level
H5IO propIO = fileIO_->open_group( tablePropName_ );
//
// Read the data describing this property configuration
//
propIO.read_attribute( "Name", name_ );
propIO.read_attribute( "Dimension", dimension_ );
propIO.read_attribute( "InputNames", inputNames_ );
// Read the Converters (if any)
//
unsigned int nConverters = 0;
propIO.read_attribute( "NConverters", nConverters );
for ( unsigned int i = 0; i < nConverters; ++i ) {
std::ostringstream label;
label << "Converter_" << i;
H5IO converterIO = propIO.open_group( label.str() );
std::string converterType;
converterIO.read_attribute( "ConverterType", converterType );
ConverterFactory converterFactory;
Converter * converter = converterFactory.create( converterType );
converter->read_hdf5( converterIO );
converters_.push_back( converter );
}
// Read the central Table for the dependent variable
H5IO tableIO = propIO.open_group( "Table" );
read_hdf5_table( tableIO );
//
// Wire up all of the inputs and outputs between the Table and Converters
//
update_input_mapping();
}