gdcmByteSwapFilter.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMBYTESWAPFILTER_H
#define GDCMBYTESWAPFILTER_H
#include "gdcmDataSet.h"
namespace gdcm
{
class GDCM_EXPORT ByteSwapFilter
{
public:
ByteSwapFilter(DataSet& ds):DS(ds),ByteSwapTag(false) {}
~ByteSwapFilter() = default;
ByteSwapFilter(const ByteSwapFilter &) = delete;
ByteSwapFilter& operator=(const ByteSwapFilter &) = delete;
bool ByteSwap();
void SetByteSwapTag(bool b) { ByteSwapTag = b; }
private:
DataSet &DS;
bool ByteSwapTag;
};
} // end namespace gdcm
#endif //GDCMBYTESWAPFILTER_H
gdcm::ByteSwapFilter::operator=
ByteSwapFilter & operator=(const ByteSwapFilter &)=delete
gdcm::ByteSwapFilter::~ByteSwapFilter
~ByteSwapFilter()=default
gdcm::ByteSwapFilter::ByteSwapFilter
ByteSwapFilter(const ByteSwapFilter &)=delete
gdcm::ByteSwapFilter::ByteSwapFilter
ByteSwapFilter(DataSet &ds)
Definition gdcmByteSwapFilter.h:30
gdcm::ByteSwapFilter::SetByteSwapTag
void SetByteSwapTag(bool b)
Definition gdcmByteSwapFilter.h:36
gdcm::ByteSwapFilter::ByteSwap
bool ByteSwap()
gdcm::DataSet
Class to represent a Data Set (which contains Data Elements).
Definition gdcmDataSet.h:56
gdcmDataSet.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21