[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #FPN-289469]: [netcdfgroup] C++4 and Sync

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.


  • Subject: [netCDF #FPN-289469]: [netcdfgroup] C++4 and Sync
  • Date: Wed, 28 Dec 2011 16:17:59 -0700

Hi Ross,

> I was wondering where the Sync and Close member functions of NcFile
> have gone in the version4 of the C++ API - I would like to flush a
> netcdf file every so often so that other users can look at the data
> whilst it is still being collected.

From getting no relevant results by searching the cxx4 sources for
"sync", it looks like the answer to your question is that the API
doesn't support the nc_sync() functionality directly.  The destructor  
for NcFile calls nc_close(), so it may be the only way to do what
you want currently is to use that, which is clumsy.

I forwarded your question to the author of the version4 C++ API, since
I don't think he is a subscriber to the netcdfgroup mailing list.  He
may be able to provide a better answer.  He provides updates from time 
to time for incorporation into the distribution.

--Russ

Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu



Ticket Details
===================
Ticket ID: FPN-289469
Department: Support netCDF
Priority: Normal
Status: Closed