Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:erwinde
netcdf
netcdf-4.0.1-returnthis.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File netcdf-4.0.1-returnthis.patch of Package netcdf
--- cxx4/ncatt.cpp +++ cxx4/ncatt.cpp @@ -52,7 +52,7 @@ namespace netCDF if((ret = nc_rename_att (myNcId, myId,myName.c_str(), newname.c_str()))) throw NcException(nc_strerror(ret),__FILE__,__LINE__,__FUNCTION__); myName= newname; - + return true; } bool NcAtt::remove( void ) { --- cxx4/ncgroup.cpp +++ cxx4/ncgroup.cpp @@ -348,6 +348,8 @@ namespace netCDF return myId == rhs.myId; //hopefully this is all Ineed to check } + else + return false; } NcGroup& NcGroup::operator=(NcGroup & rhs) @@ -418,6 +420,7 @@ namespace netCDF NcGroup::grpIterator& NcGroup::grpIterator::operator=(const NcGroup::grpIterator & rhs) { groupIterator = rhs.groupIterator; + return *this; } bool NcGroup::grpIterator::operator!=(const NcGroup::grpIterator & rhs) @@ -496,6 +499,7 @@ namespace netCDF NcGroup::varIterator& NcGroup::varIterator::operator=(const NcGroup::varIterator & rhs) { variableIterator = rhs.variableIterator; + return *this; } bool NcGroup::varIterator::operator!=(const NcGroup::varIterator & rhs) @@ -570,6 +574,7 @@ namespace netCDF NcGroup::dimIterator& NcGroup::dimIterator::operator=(const NcGroup::dimIterator & rhs) { dimensionIterator = rhs.dimensionIterator; + return *this; } bool NcGroup::dimIterator::operator!=(const NcGroup::dimIterator & rhs) @@ -645,6 +650,7 @@ namespace netCDF NcGroup::attIterator& NcGroup::attIterator::operator=(const NcGroup::attIterator & rhs) { attributeIterator = rhs.attributeIterator; + return *this; } bool NcGroup::attIterator::operator!=(const NcGroup::attIterator & rhs) --- cxx4/ncvar.cpp +++ cxx4/ncvar.cpp @@ -200,7 +200,7 @@ namespace netCDF NcValues* NcVar::getRec(void) // get current record { - + return 0; // not implemented } NcValues* NcVar::getRec(size_t rec) // get specified record @@ -210,7 +210,7 @@ namespace netCDF NcValues * NcVar::getRec(NcDim* d) // get current dimension slice { - + return 0; // not implemented } NcValues* NcVar::getRec(NcDim* d, size_t slice) // get specified dimension slice @@ -363,6 +363,7 @@ namespace netCDF if(ret = nc_put_var(myGroup->getNcId(), myId,data)) throw NcException(nc_strerror(ret),__FILE__,__LINE__,__FUNCTION__); cout<<myName<<endl; + return true; } NcValues* NcVar::getValues( void ) @@ -414,6 +415,7 @@ namespace netCDF NcVar::attIterator& NcVar::attIterator::operator=(const NcVar::attIterator & rhs) { attributeIterator = rhs.attributeIterator; + return *this; } bool NcVar::attIterator::operator!=(const NcVar::attIterator & rhs) --- cxx4/ncvalues.cpp +++ cxx4/ncvalues.cpp @@ -53,7 +53,7 @@ namespace netCDF myData[i]= rhs.myData[i]; } - //return this; + return *this; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor