Last change
on this file since 498 was
498,
checked in by mhnguyen, 10 years ago
|
Making a wrapper of NetCdf? C functions
+) Add a wrapper class for NetCdf? functions
+) Add a class to manage exception for NetCdf? functions
+) Replace direct call to netcdf functions by functions of the wrapper
Test
+) On Curie
+) In case of error, exception is thrown and more information is provided
|
File size:
810 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file netCdfInterface_impl.hpp |
---|
3 | \author Ha NGUYEN |
---|
4 | \date 06 Oct 2014 |
---|
5 | \since 06 Oct 2014 |
---|
6 | |
---|
7 | \brief Implemention of some templated functions in netCdfInterface |
---|
8 | */ |
---|
9 | |
---|
10 | #include "netCdfInterface_impl.hpp" |
---|
11 | |
---|
12 | namespace xios |
---|
13 | { |
---|
14 | #define macroPutAtt(type) \ |
---|
15 | template int CNetCdfInterface::putAttType(int ncid, int varid, const StdString& attrName, \ |
---|
16 | StdSize numVal, const type* op); |
---|
17 | |
---|
18 | macroPutAtt(double); |
---|
19 | macroPutAtt(float); |
---|
20 | macroPutAtt(int); |
---|
21 | macroPutAtt(long); |
---|
22 | macroPutAtt(short); |
---|
23 | |
---|
24 | #define macroPutVar(type) \ |
---|
25 | template int CNetCdfInterface::putVaraType(int ncid, int varId, const StdSize* start, \ |
---|
26 | const StdSize* count, const type* op); |
---|
27 | macroPutVar(double); |
---|
28 | macroPutVar(float); |
---|
29 | macroPutVar(int); |
---|
30 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.