vega
Public Types | Public Member Functions | List of all members
vega::manipulators::PaddedStringManipulator< T > Class Template Reference

A manipulator class for VR that represent elements which are encoded in DICOM using strings. More...

#include <vega/manipulators/padded_string_manipulator.h>

Inheritance diagram for vega::manipulators::PaddedStringManipulator< T >:
Inheritance graph
[legend]
Collaboration diagram for vega::manipulators::PaddedStringManipulator< T >:
Collaboration graph
[legend]

Public Types

typedef base_vector::value_type value_type
 
typedef base_vector::size_type size_type
 
typedef base_vector::iterator iterator
 
typedef base_vector::const_iterator const_iterator
 
typedef base_vector::reference reference
 
typedef base_vector::const_reference const_reference
 

Public Member Functions

 PaddedStringManipulator ()
 
 PaddedStringManipulator (std::shared_ptr< dicom::RawValue > raw_value)
 
 PaddedStringManipulator (const std::string &s)
 
std::shared_ptr< dicom::RawValue > raw_value () override
 
std::string str () const override
 
bool read_from (dicom::RawReader *reader, size_t num_bytes) override
 
size_t write_to (dicom::RawWriter *writer) const override
 
virtual bool operator== (const ValueManipulator &other) const override
 
virtual bool operator!= (const ValueManipulator &other) const override
 
- Public Member Functions inherited from vega::manipulators::ValueManipulator
virtual ~ValueManipulator ()=0
 
virtual bool is_valid_for (const VR &vr) const
 

Detailed Description

template<typename T>
class vega::manipulators::PaddedStringManipulator< T >

A manipulator class for VR that represent elements which are encoded in DICOM using strings.

This manipulator inherits from std::vector<T> and therefore includes many helpful methods for handling vectors of the input type T. By only having to deal with a vector of generic elements T, there is no need to concern oneself with the conversion to the DICOM string.

Member Typedef Documentation

◆ const_iterator

template<typename T>
typedef base_vector::const_iterator vega::manipulators::PaddedStringManipulator< T >::const_iterator

◆ const_reference

template<typename T>
typedef base_vector::const_reference vega::manipulators::PaddedStringManipulator< T >::const_reference

◆ iterator

template<typename T>
typedef base_vector::iterator vega::manipulators::PaddedStringManipulator< T >::iterator

◆ reference

template<typename T>
typedef base_vector::reference vega::manipulators::PaddedStringManipulator< T >::reference

◆ size_type

template<typename T>
typedef base_vector::size_type vega::manipulators::PaddedStringManipulator< T >::size_type

◆ value_type

template<typename T>
typedef base_vector::value_type vega::manipulators::PaddedStringManipulator< T >::value_type

Constructor & Destructor Documentation

◆ PaddedStringManipulator() [1/3]

◆ PaddedStringManipulator() [2/3]

template<typename T >
vega::manipulators::PaddedStringManipulator< T >::PaddedStringManipulator ( std::shared_ptr< dicom::RawValue >  raw_value)
explicit

◆ PaddedStringManipulator() [3/3]

template<typename T >
vega::manipulators::PaddedStringManipulator< T >::PaddedStringManipulator ( const std::string &  s)
explicit

Member Function Documentation

◆ operator!=()

template<typename T >
bool vega::manipulators::PaddedStringManipulator< T >::operator!= ( const ValueManipulator other) const
overridevirtual

◆ operator==()

template<typename T >
bool vega::manipulators::PaddedStringManipulator< T >::operator== ( const ValueManipulator other) const
overridevirtual

◆ raw_value()

template<typename T >
std::shared_ptr< dicom::RawValue > vega::manipulators::PaddedStringManipulator< T >::raw_value ( )
overridevirtual

◆ read_from()

template<typename T >
bool vega::manipulators::PaddedStringManipulator< T >::read_from ( dicom::RawReader *  reader,
size_t  num_bytes 
)
overridevirtual

◆ str()

template<typename T >
std::string vega::manipulators::PaddedStringManipulator< T >::str ( ) const
overridevirtual

◆ write_to()

template<typename T >
size_t vega::manipulators::PaddedStringManipulator< T >::write_to ( dicom::RawWriter *  writer) const
overridevirtual

The documentation for this class was generated from the following files: