6#ifndef NcCompoundTypeClass
7#define NcCompoundTypeClass
66 void addMember(
const std::string& memName,
const NcType& newMemberType,
size_t offset);
76 void addMember(
const std::string& memName,
const NcType& newMemberType,
size_t offset,
const std::vector<int>& shape);
Class represents a netCDF compound type.
bool operator==(const NcCompoundType &rhs)
equivalence operator
void addMember(const std::string &memName, const NcType &newMemberType, size_t offset)
int getMemberDimCount(int memberIndex) const
Returns the number of dimensions of a member with the given index.
std::vector< int > getMemberShape(int memberIndex) const
Returns the shape of a given member.
int getMemberIndex(const std::string &memberName) const
Returns index of named member field.
NcCompoundType()
Constructor generates a null object.
size_t getMemberCount() const
Returns number of members in this NcCompoundType object.
size_t getMemberOffset(const int index) const
Returns the offset of the member with given index.
std::string getMemberName(int memberIndex) const
Returns name of member field.
NcCompoundType(const NcGroup &grp, const std::string &name)
Constructor.
NcType getMember(int memberIndex) const
Returns a NcType object for a single member.
~NcCompoundType()
destructor
NcCompoundType & operator=(const NcCompoundType &rhs)
assignment operator
void addMember(const std::string &memName, const NcType &newMemberType, size_t offset, const std::vector< int > &shape)
Adds a named array field.
Class represents a netCDF group.
Base class inherited by NcOpaque, NcVlen, NcCompound and NcEnum classes.
ncType
List of netCDF types that can be represented.