|
| void | copy_values (const Attribute &a) |
| | Copies the value and type metadata from another attribute.
|
| |
| template<typename T > |
| std::vector< T > | get () const |
| | Reads the attribute as a vector of values.
|
| |
| std::string | get_string () const |
| | Reads a classic NetCDF text attribute as a C++ string.
|
| |
| bool | is_group_attribute () const |
| | Returns true when this attribute is attached to a group rather than a variable.
|
| |
| Maybe< Group > | parent_group () const |
| | Returns the parent group for group attributes.
|
| |
| Maybe< Variable > | parent_variable () const |
| | Returns the parent variable for variable attributes.
|
| |
| void | rename (std::string name) |
| | Renames the attribute in place.
|
| |
| template<typename T > |
| void | set (const std::vector< T > &v) |
| | Writes a vector of atomic values to the attribute.
|
| |
| template<typename T > |
| void | set (const std::vector< T > &v, const UserType &type) |
| | Writes a vector of values using a user-defined NetCDF type.
|
| |
| template<typename T > |
| void | set (const T &v, const UserType &type) |
| | Writes one value using a user-defined NetCDF type.
|
| |
| template<typename T > |
| std::enable_if< std::is_same< std::string, T >::value, void >::type | set (T v) |
| | Writes a string attribute.
|
| |
| template<typename T > |
| std::enable_if< std::is_same< constchar *, T >::value||std::is_same< char *, T >::value, void >::type | set (T v) |
| | Writes a string attribute from a C string.
|
| |
| template<typename T > |
| std::enable_if<!std::is_same< std::string, T >::value &&!std::is_same< constchar *, T >::value &&!std::is_same< char *, T >::value, void >::type | set (T v) |
| | Writes one atomic value to the attribute.
|
| |
| std::size_t | size () const |
| | Returns the number of values stored in the attribute.
|
| |
| nc_type | type () const |
| | Returns the NetCDF type id of the attribute.
|
| |
| std::string | type_name () const |
| | Returns the NetCDF type name of the attribute.
|
| |
| Attribute | require_type (const std::string &name) const |
| | Returns this attribute or throws if its NetCDF type name differs.
|
| |
| Maybe< UserType > | user_type () const |
| | Returns the user-defined type for this attribute, if it has one.
|
| |
| template<> |
| std::vector< std::string > | get () const |
| |
| template<> |
| void | set (const std::vector< std::string > &v) |
| |
| template<> |
| void | set (const std::vector< const char * > &v) |
| |
| template<> |
| void | set (const std::vector< char * > &v) |
| |
| template<> |
| int | set_internal (int ncid_p, int othid_p, const char *name_p, std::size_t len, const char *v) |
| |
| const std::string & | name () const |
| |
| int | id () const |
| |
NetCDF attribute attached to a group or variable.