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