Skip to content

Commit 7251d6c

Browse files
committed
Refactor classes for atomic types
- make ctors all inline - use intermediate class `NcAtomic` to reduce duplication of equality operator - now classes are only a few lines each, move them all into `ncType.h` header
1 parent ec6394c commit 7251d6c

34 files changed

+122
-594
lines changed

cxx4/ncByte.cpp

Lines changed: 0 additions & 20 deletions
This file was deleted.

cxx4/ncByte.h

Lines changed: 0 additions & 28 deletions
This file was deleted.

cxx4/ncChar.cpp

Lines changed: 0 additions & 18 deletions
This file was deleted.

cxx4/ncChar.h

Lines changed: 0 additions & 24 deletions
This file was deleted.

cxx4/ncCompoundType.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
#include "ncGroup.h"
22
#include "ncCheck.h"
33
#include "ncCompoundType.h"
4-
#include "ncByte.h"
5-
#include "ncUbyte.h"
6-
#include "ncChar.h"
7-
#include "ncShort.h"
8-
#include "ncUshort.h"
9-
#include "ncInt.h"
10-
#include "ncUint.h"
11-
#include "ncInt64.h"
12-
#include "ncUint64.h"
13-
#include "ncFloat.h"
14-
#include "ncDouble.h"
15-
#include "ncString.h"
164
#include "ncException.h"
175

186
using namespace std;

cxx4/ncDouble.cpp

Lines changed: 0 additions & 18 deletions
This file was deleted.

cxx4/ncDouble.h

Lines changed: 0 additions & 25 deletions
This file was deleted.

cxx4/ncEnumType.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
#include "ncEnumType.h"
22
#include "ncGroup.h"
33
#include "ncCheck.h"
4-
#include "ncByte.h"
5-
#include "ncUbyte.h"
6-
#include "ncChar.h"
7-
#include "ncShort.h"
8-
#include "ncUshort.h"
9-
#include "ncInt.h"
10-
#include "ncUint.h"
11-
#include "ncInt64.h"
12-
#include "ncUint64.h"
13-
#include "ncFloat.h"
14-
#include "ncDouble.h"
15-
#include "ncString.h"
164
#include "ncException.h"
175
using namespace std;
186
using namespace netCDF;

cxx4/ncFile.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "ncFile.h"
22
#include "ncCheck.h"
33
#include "ncException.h"
4-
#include "ncByte.h"
54
#include<iostream>
65
#include<string>
76
#include<sstream>

cxx4/ncFloat.cpp

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)