File: ncChar.cpp

package info (click to toggle)
netcdf-cxx 4.3.0%2Bds-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,028 kB
  • sloc: sh: 11,553; cpp: 8,167; xml: 173; ansic: 134; makefile: 109
file content (22 lines) | stat: -rw-r--r-- 374 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "ncChar.h"
#include "netcdf.h"
using namespace netCDF;

// create an instance of NcChar  called netCDF::ncChar
namespace netCDF {
  NcChar ncChar;
}

// constructor
NcChar::NcChar() : NcType(NC_CHAR){
}

NcChar::~NcChar() {
}


// equivalence operator
bool NcChar::operator==(const NcChar & rhs)    {
  // simply check the netCDF id.
  return myId == rhs.myId;
}