public static Hdf5Dataset CreateDatasetAddToDatasets( ReadonlyNamedItemList <Hdf5Dataset> _datasets, Hdf5Identifier _fileId, Hdf5Path _parentPath, string _name, Hdf5DataTypes _datatype, int _numberOfDimensions, List <Hdf5DimensionProperty> _properties, Hdf5CompressionProperty _compressionProperty = null) { Hdf5Dataset dataset = CreateDataset( _fileId, _parentPath, _name, _datatype, _numberOfDimensions, _properties, _compressionProperty); if (dataset != null) { _datasets.Add(dataset); } return(dataset); }
public static Hdf5Group CreateGroupAddToList( ReadonlyNamedItemList <Hdf5Group> _groups, Hdf5Identifier _fileId, Hdf5Path _parentPath, string _name) { Hdf5Group group = CreateGroup(_fileId, _parentPath, _name); if (group != null) { _groups.Add(group); } return(group); }
/// <summary> /// Creates the attribute then adds to the supplied attribute list. /// </summary> /// <typeparam name="T"></typeparam> /// <param name="_objectId"></param> /// <param name="_attributes"></param> /// <param name="_title"></param> /// <param name="_value"></param> /// <returns></returns> public static Hdf5Attribute CreateAttributeAddToList <T>( Hdf5Identifier _objectId, ReadonlyNamedItemList <Hdf5Attribute> _attributes, string _title, T _value) { Hdf5Attribute attribute = CreateAttribute(_objectId, _title, _value); if (attribute != null) { _attributes.Add(attribute); } return(attribute); }