H5Annotate_traits.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c), 2017, Adrien Devresse <adrien.devresse@epfl.ch>
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 H5ANNOTATE_TRAITS_HPP
10 #define H5ANNOTATE_TRAITS_HPP
11 
12 #include <string>
13 
14 namespace HighFive {
15 
16 class Attribute;
17 class DataSet;
18 class Group;
19 class DataSpace;
20 class DataType;
21 
22 template <typename Derivate>
24  public:
30  Attribute createAttribute(const std::string& attribute_name,
31  const DataSpace& space, const DataType& type);
32 
43  template <typename Type>
44  Attribute createAttribute(const std::string& attribute_name,
45  const DataSpace& space);
46 
55  template <typename T>
56  Attribute createAttribute(const std::string& attribute_name,
57  const T& data);
58 
64  Attribute getAttribute(const std::string& attribute_name) const;
65 
69  size_t getNumberAttributes() const;
70 
74  std::vector<std::string> listAttributeNames() const;
75 
79  bool hasAttribute(const std::string& attr_name) const;
80 
81  private:
82  typedef Derivate derivate_type;
83 };
84 }
85 
87 
88 #endif // H5ANNOTATE_TRAITS_HPP
size_t getNumberAttributes() const
return the number of attributes of the node / group
Attribute getAttribute(const std::string &attribute_name) const
open an existing attribute with the name attribute_name
bool hasAttribute(const std::string &attr_name) const
checks an attribute exists
std::vector< std::string > listAttributeNames() const
list all attribute name of the node / group
Attribute createAttribute(const std::string &attribute_name, const DataSpace &space, const DataType &type)
create a new attribute with the name attribute_name
HDF5 Data Type.
Definition: H5DataType.hpp:21


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