NetCDF-C++  4.3.1-developer
ncVarAtt.h
1 #include "ncAtt.h"
2 #include "netcdf.h"
3 
4 #ifndef NcVarAttClass
5 #define NcVarAttClass
6 
7 namespace 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  NcVarAtt(const NcVarAtt& rhs) ;
25 
32  NcVarAtt(const NcGroup& grp, const NcVar& ncVar, const int index);
33 
35  NcVar getParentVar() const;
36 
38  friend bool operator<(const NcVarAtt& lhs,const NcVarAtt& rhs);
39 
41  friend bool operator>(const NcVarAtt& lhs,const NcVarAtt& rhs);
42 
43  };
44 
45 }
46 
47 #endif
NcVar getParentVar() const
Returns the NcVar parent object.
Definition: ncVarAtt.cpp:61
C++ API for netCDF4.
Definition: ncAtt.h:9
friend bool operator<(const NcVarAtt &lhs, const NcVarAtt &rhs)
comparator operator
Definition: ncVarAtt.cpp:12
friend bool operator>(const NcVarAtt &lhs, const NcVarAtt &rhs)
comparator operator
Definition: ncVarAtt.cpp:18
Class represents a netCDF group.
Definition: ncGroup.h:27
NcVarAtt & operator=(const NcVarAtt &rhs)
assignment operator
Definition: ncVarAtt.cpp:29
NcVarAtt()
Constructor generates a null object.
Definition: ncVarAtt.cpp:42
Class represents a netCDF attribute local to a netCDF variable.
Definition: ncVarAtt.h:13
Abstract base class represents inherited by ncVarAtt and ncGroupAtt.
Definition: ncAtt.h:13
Class represents a netCDF variable.
Definition: ncVar.h:33

Return to the Main Unidata NetCDF page.
Generated on Fri Nov 11 2016 15:28:29 for NetCDF-C++. NetCDF is a Unidata library.