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
HighFive::AnnotateTraits
Definition: H5Annotate_traits.hpp:23
HighFive::AnnotateTraits::derivate_type
Derivate derivate_type
Definition: H5Annotate_traits.hpp:82
HighFive::DataType
HDF5 Data Type.
Definition: H5DataType.hpp:21
HighFive::AnnotateTraits::getNumberAttributes
size_t getNumberAttributes() const
return the number of attributes of the node / group
Definition: H5Annotate_traits_misc.hpp:77
HighFive::AnnotateTraits::createAttribute
Attribute createAttribute(const std::string &attribute_name, const DataSpace &space, const DataType &type)
create a new attribute with the name attribute_name
Definition: H5Annotate_traits_misc.hpp:29
HighFive::AnnotateTraits::hasAttribute
bool hasAttribute(const std::string &attr_name) const
checks an attribute exists
Definition: H5Annotate_traits_misc.hpp:109
HighFive::Group
Definition: H5Group.hpp:20
H5Annotate_traits_misc.hpp
HighFive::Attribute
Definition: H5Attribute.hpp:23
HighFive::AnnotateTraits::listAttributeNames
std::vector< std::string > listAttributeNames() const
list all attribute name of the node / group
Definition: H5Annotate_traits_misc.hpp:88
HighFive::AnnotateTraits::getAttribute
Attribute getAttribute(const std::string &attribute_name) const
open an existing attribute with the name attribute_name
Definition: H5Annotate_traits_misc.hpp:64
HighFive::DataSpace
Definition: H5DataSpace.hpp:30
HighFive::DataSet
Definition: H5DataSet.hpp:27
HighFive
Definition: H5Annotate_traits.hpp:14


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 Wed Mar 2 2022 00:37:23