H5Attribute.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c), 2017, Ali Can Demiralp <ali.demiralp@rwth-aachen.de>
3  *
4  * Distributed under the Boost Software License, Version 1.0.
5  * (See accompanying file LICENSE_1_0.txt or copy at
6  * http://www.boost.org/LICENSE_1_0.txt)
7  *
8  */
9 #ifndef H5ATTRIBUTE_HPP
10 #define H5ATTRIBUTE_HPP
11 
12 #include <vector>
13 
14 #include "H5Object.hpp"
15 
16 namespace HighFive {
17 
18 template <typename Derivate>
19 class AnnotateTraits;
20 class DataType;
21 class DataSpace;
22 
23 class Attribute : public Object {
24  public:
25  size_t getStorageSize() const;
26 
31  DataType getDataType() const;
32 
37  DataSpace getSpace() const;
38 
44  DataSpace getMemSpace() const;
45 
53  template <typename T>
54  void read(T& array) const;
55 
63  template <typename T>
64  void write(const T& buffer);
65 
66  private:
67  Attribute();
68  template <typename Derivate>
69  friend class ::HighFive::AnnotateTraits;
70 };
71 }
72 
74 
75 #endif // H5ATTRIBUTE_HPP
DataType getDataType() const
getDataType
void read(T &array) const
DataSpace getSpace() const
getSpace
DataSpace getMemSpace() const
getMemSpace
HDF5 Data Type.
Definition: H5DataType.hpp:21
void write(const T &buffer)
size_t getStorageSize() const


lvr2
Author(s): Thomas Wiemann , Sebastian Pütz , Alexander Mock , Lars Kiesow , Lukas Kalbertodt , Tristan Igelbrink , Johan M. von Behren , Dominik Feldschnieders , Alexander Löhr
autogenerated on Mon Feb 28 2022 22:46:06