Skip to content
Snippets Groups Projects
Commit 70949d40 authored by Thomas Jürges's avatar Thomas Jürges
Browse files

SW-610: Change namespace casa:: to casacore::

parent 5736b6cc
No related branches found
No related tags found
No related merge requests found
...@@ -159,28 +159,28 @@ BlobIStream& operator>> (BlobIStream& bs, blitz::Array<T,NDIM>& arr) ...@@ -159,28 +159,28 @@ BlobIStream& operator>> (BlobIStream& bs, blitz::Array<T,NDIM>& arr)
#if defined(HAVE_AIPSPP) #if defined(HAVE_AIPSPP)
template<typename T> template<typename T>
BlobOStream& operator<< (BlobOStream& bs, const casa::Array<T>& arr) BlobOStream& operator<< (BlobOStream& bs, const casacore::Array<T>& arr)
{ {
bool deleteIt; bool deleteIt;
const T* data = arr.getStorage(deleteIt); const T* data = arr.getStorage(deleteIt);
const casa::IPosition& shape = arr.shape(); const casacore::IPosition& shape = arr.shape();
vector<uint64> shp(shape.begin(), shape.end()); std::vector<uint64> shp(shape.begin(), shape.end());
putBlobArray (bs, data, shp.empty() ? 0 : &shp[0], arr.ndim(), true); putBlobArray (bs, data, shp.empty() ? 0 : &shp[0], arr.ndim(), true);
arr.freeStorage (data, deleteIt); arr.freeStorage (data, deleteIt);
return bs; return bs;
} }
template<typename T> template<typename T>
BlobIStream& operator>> (BlobIStream& bs, casa::Array<T>& arr) BlobIStream& operator>> (BlobIStream& bs, casacore::Array<T>& arr)
{ {
bs.getStart (LOFAR::typeName((const T**)0)); bs.getStart (LOFAR::typeName((const T**)0));
bool fortranOrder; bool fortranOrder;
uint16 ndim; uint16 ndim;
uint nalign = getBlobArrayStart (bs, fortranOrder, ndim); uint nalign = getBlobArrayStart (bs, fortranOrder, ndim);
vector<uint64> shp(ndim); std::vector<uint64> shp(ndim);
getBlobArrayShape (bs, ndim==0 ? 0 : &shp[0], ndim, getBlobArrayShape (bs, ndim==0 ? 0 : &shp[0], ndim,
!fortranOrder, nalign); !fortranOrder, nalign);
casa::IPosition shape(ndim); casacore::IPosition shape(ndim);
for (uint i=0; i<ndim; i++) { for (uint i=0; i<ndim; i++) {
shape[i] = shp[i]; shape[i] = shp[i];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment