NetCDF4 C++ API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MetadataCFGlobal.h
Go to the documentation of this file.
1 
15 #ifndef INC_netCDF_MetadataCFGlobal_h
16 #define INC_netCDF_MetadataCFGlobal_h
17 
18 #include <string>
19 
20 namespace netcdf {
21 
22 
24 {
25  public:
26 
27  std::string
29  institution,
30  contact,
31  copyright,
32  conventions,
33  references,
34  source,
35  comment,
36  history;
37 
38  static char const defaultSeparator;
39 
41  {
42  }
43 
45  {
46  Copy(rhs);
47  }
48 
50  {
51  Copy(rhs);
52  return *this;
53  }
54 
55  bool operator== (MetadataCFGlobal const & rhs) const;
56  bool operator!= (MetadataCFGlobal const & rhs) const
57  { return !operator==(rhs); }
58 
59  void Clear ();
60 
61  private:
62 
63  void Copy (MetadataCFGlobal const & rhs);
64 
65 };
66 
67 
68 } // namespace netcdf
69 
70 #endif // INC_netCDF_MetadataCFGlobal_h
std::string institution
institution name: string
Definition: MetadataCFGlobal.h:28
std::string source
source of data: string
Definition: MetadataCFGlobal.h:28
std::string title
title of dataset: string
Definition: MetadataCFGlobal.h:28
std::string comment
misc. comments about this file: string
Definition: MetadataCFGlobal.h:28
MetadataCFGlobal()
Definition: MetadataCFGlobal.h:40
bool operator!=(MetadataCFGlobal const &rhs) const
Definition: MetadataCFGlobal.h:56
MetadataCFGlobal(MetadataCFGlobal const &rhs)
Definition: MetadataCFGlobal.h:44
void Clear()
Definition: MetadataCFGlobal.cpp:48
MetadataCFGlobal & operator=(MetadataCFGlobal const &rhs)
Definition: MetadataCFGlobal.h:49
Class managing global metadata that conform to netCDF CF conventions. A typical set of attributes are...
Definition: MetadataCFGlobal.h:23
std::string conventions
conventions for netCDF file structure: string
Definition: MetadataCFGlobal.h:28
std::string contact
contact info of data maintainer: string
Definition: MetadataCFGlobal.h:28
std::string copyright
copyright: string
Definition: MetadataCFGlobal.h:28
bool operator==(MetadataCFGlobal const &rhs) const
Definition: MetadataCFGlobal.cpp:21
std::string references
URL or published information about this data: string.
Definition: MetadataCFGlobal.h:28
std::string history
history of this data and file: string array
Definition: MetadataCFGlobal.h:28
static char const defaultSeparator
default separatory for history items is a vertical bar
Definition: MetadataCFGlobal.h:38