5 #ifndef NcCheckFunction     6 #define NcCheckFunction    16   void ncCheck(
int retCode, 
const char* file, 
int line);
 
void ncCheckDataMode(int ncid)
Function checks if the file (group) is in data mode. 
void ncCheck(int retCode, const char *file, int line)
Function checks error code and if necessary throws an exception. 
void ncCheckDefineMode(int ncid)
Function checks if the file (group) is in define mode.