NetCDF-C++ 4.3.1
ncVarAtt.h
1#include "ncAtt.h"
2#include "netcdf.h"
3
4#ifndef NcVarAttClass
5#define NcVarAttClass
6
7namespace netCDF
8{
9 class NcGroup; // forward declaration.
10 class NcVar; // forward declaration.
11
13 class NcVarAtt : public NcAtt
14 {
15 public:
16
18 NcVarAtt& operator= (const NcVarAtt& rhs);
19
21 NcVarAtt ();
22
24 void inq_atttype(const char *name, nc_type *xtypep);
25
27 NcVarAtt(const NcVarAtt& rhs) ;
28
35 NcVarAtt(const NcGroup& grp, const NcVar& ncVar, const int index);
36
38 NcVar getParentVar() const;
39
41 friend bool operator<(const NcVarAtt& lhs,const NcVarAtt& rhs);
42
44 friend bool operator>(const NcVarAtt& lhs,const NcVarAtt& rhs);
45
46 };
47
48}
49
50#endif
Abstract base class represents inherited by ncVarAtt and ncGroupAtt.
Definition: ncAtt.h:14
Class represents a netCDF group.
Definition: ncGroup.h:28
Class represents a netCDF attribute local to a netCDF variable.
Definition: ncVarAtt.h:14
friend bool operator>(const NcVarAtt &lhs, const NcVarAtt &rhs)
comparator operator
Definition: ncVarAtt.cpp:18
NcVarAtt()
Constructor generates a null object.
Definition: ncVarAtt.cpp:42
friend bool operator<(const NcVarAtt &lhs, const NcVarAtt &rhs)
comparator operator
Definition: ncVarAtt.cpp:12
NcVarAtt & operator=(const NcVarAtt &rhs)
assignment operator
Definition: ncVarAtt.cpp:29
void inq_atttype(const char *name, nc_type *xtypep)
Query a variable attribute type.
Definition: ncVarAtt.cpp:61
NcVar getParentVar() const
Returns the NcVar parent object.
Definition: ncVarAtt.cpp:68
Class represents a netCDF variable.
Definition: ncVar.h:34
C++ API for netCDF4.
Definition: ncAtt.h:10

Return to the Main Unidata NetCDF page.
Generated on Wed Nov 10 2021 15:25:08 for NetCDF-C++. NetCDF is a Unidata library.