File: ncShort.cpp

package info (click to toggle)
netcdf-cxx 4.3.1-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,456 kB
  • sloc: cpp: 8,506; sh: 4,548; ansic: 4,251; xml: 173; makefile: 145
file content (22 lines) | stat: -rw-r--r-- 386 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "ncShort.h"
#include "netcdf.h"
using namespace netCDF;

// create an instance of NcShort  called netCDF::ncShort
namespace netCDF {
  NcShort ncShort;
}

// constructor
NcShort::NcShort() : NcType(NC_SHORT){
}

NcShort::~NcShort() {
}


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