NetCDF4 C++ API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
NcTypeV4.h
Go to the documentation of this file.
1 
13 #ifndef INC_netcdf_NcTypeV4_h
14 #define INC_netcdf_NcTypeV4_h
15 
16 #include <string>
17 
18 namespace netcdf {
19 
20 
21 class NcTypeV4
22 {
23  protected:
24 
26  std::string const useTypeClassName)
27  : typeClassName (useTypeClassName)
28  {
29  }
30 
31  NcTypeV4 (NcTypeV4 const & rhs)
32  : typeClassName( rhs.typeClassName )
33  {
34  }
35 
36  public:
37 
38  virtual ~NcTypeV4 () = 0;
39 
40  void VerifyVersion4 (int const fileID); // throws if not a version4 type
41 
42  private:
43 
44  std::string const typeClassName;
45 
46 };
47 
48 inline NcTypeV4::~NcTypeV4 () {}
49 
50 
51 } // namespace netcdf
52 
53 #endif // INC_netcdf_NcTypeV4_h
NcTypeV4(std::string const useTypeClassName)
Definition: NcTypeV4.h:25
virtual ~NcTypeV4()=0
Definition: NcTypeV4.h:48
Class associated with netCDF version 4 data types.
Definition: NcTypeV4.h:21
void VerifyVersion4(int const fileID)
Definition: NcTypeV4.cpp:22
NcTypeV4(NcTypeV4 const &rhs)
Definition: NcTypeV4.h:31