gdcmBasePDU.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef GDCMBASEPDU_H
#define GDCMBASEPDU_H
#include "gdcmTypes.h"
namespace gdcm
{
namespace network
{
class BasePDU
{
public:
virtual ~BasePDU() = default;
virtual std::istream &Read(std::istream &is) = 0;
virtual const std::ostream &Write(std::ostream &os) const = 0;
virtual size_t Size() const = 0;
virtual void Print(std::ostream &os) const = 0;
virtual bool IsLastFragment() const = 0;
};
} // end namespace network
} // end namespace gdcm
#endif // GDCMBASEPDU_H
gdcm::network::BasePDU
BasePDU.
Definition gdcmBasePDU.h:51
gdcm::network::BasePDU::~BasePDU
virtual ~BasePDU()=default
gdcm::network::BasePDU::Print
virtual void Print(std::ostream &os) const =0
gdcm::network::BasePDU::Read
virtual std::istream & Read(std::istream &is)=0
gdcm::network::BasePDU::IsLastFragment
virtual bool IsLastFragment() const =0
gdcm::network::BasePDU::Size
virtual size_t Size() const =0
gdcm::network::BasePDU::Write
virtual const std::ostream & Write(std::ostream &os) const =0
gdcmTypes.h
gdcm::network
Definition gdcmAAbortPDU.h:24
gdcm
Definition gdcmASN1.h:21