/src/bag/api/bag_attributeinfo.h
Line | Count | Source |
1 | | /*! |
2 | | \file bag_attributeinfo.h |
3 | | \brief internal attribute info struct and method. |
4 | | */ |
5 | | #ifndef BAG_ATTRIBUTEINFO_H |
6 | | #define BAG_ATTRIBUTEINFO_H |
7 | | |
8 | | #include "bag_types.h" |
9 | | |
10 | | |
11 | | namespace H5 { |
12 | | |
13 | | class PredType; |
14 | | |
15 | | } // namespace H5 |
16 | | |
17 | | namespace BAG { |
18 | | |
19 | | //! This structure contains simple layer attribute information. |
20 | | struct AttributeInfo |
21 | | { |
22 | | AttributeInfo(const char* inMinName, const char* inMaxName, |
23 | | const char* inPath, const ::H5::PredType& inH5type) |
24 | 179 | : minName(inMinName) |
25 | 179 | , maxName(inMaxName) |
26 | 179 | , path(inPath) |
27 | 179 | , h5type(inH5type) |
28 | 179 | {} |
29 | | |
30 | | //! The minimum value attribute name. |
31 | | const char* minName = nullptr; |
32 | | //! The maximum value attribute name. |
33 | | const char* maxName = nullptr; |
34 | | //! The HDF5 path to the attribute. |
35 | | const char* path = nullptr; |
36 | | //! The HDF5 type the attribute is. |
37 | | const ::H5::PredType& h5type; |
38 | | }; |
39 | | |
40 | | //! Retrieve the simple layer attribute information. |
41 | | AttributeInfo getAttributeInfo(LayerType layerType); |
42 | | |
43 | | } // namespace BAG |
44 | | |
45 | | #endif //BAG_ATTRIBUTEINFO_H |
46 | | |
47 | | |