FARGOS/VISTA Object Management Environment Core  ..
FARGOS/VISTA Object Management Environment Core Table of Contents
OMEencodeBufferElement Class Reference

Holds data for a single encoded OMEtype element. Multiple OMEencodeBufferElement objects are linked together to represent sequences of data. More...

#include <OMEencode.h>

Public Member Functions

 OMEencodeBufferElement (OMEstring *d, bool own=true)
 
 ~OMEencodeBufferElement ()
 
size_t elementSize () const
 Return length of encoded element. More...
 
const OMEstringgetData () const
 Return the encoded data. More...
 

Protected Attributes

OMEencodeBufferElementnext
 
OMEstringdata
 
bool ownData
 

Friends

class OMEencodeBuffer
 

Detailed Description

Holds data for a single encoded OMEtype element. Multiple OMEencodeBufferElement objects are linked together to represent sequences of data.

Encoding element for OMEtype elements.

Constructor & Destructor Documentation

◆ OMEencodeBufferElement()

OMEencodeBufferElement::OMEencodeBufferElement ( OMEstring d,
bool  own = true 
)
inline
Parameters
dis a pointer to OMEstring data containing the encoded data.
ownis an optional Boolean that indicates if the ownership of the data pointed to by should be taken over by the OMEencodeBufferElement object.

◆ ~OMEencodeBufferElement()

OMEencodeBufferElement::~OMEencodeBufferElement ( )
inline

Member Function Documentation

◆ elementSize()

OMEencodeBufferElement::elementSize ( ) const
inline

Return length of encoded element.

Returns
The length of the data in bytes is returned.

References OMEstring::length().

Referenced by OMEencodeBuffer::addEncodedElement(), and OMEencodeBuffer::OMEencodeBuffer().

◆ getData()

OMEencodeBufferElement::getData ( ) const
inline

Return the encoded data.

Friends And Related Function Documentation

◆ OMEencodeBuffer

friend class OMEencodeBuffer
friend

Member Data Documentation

◆ data

OMEstring* OMEencodeBufferElement::data
protected

◆ next

◆ ownData

bool OMEencodeBufferElement::ownData
protected

The documentation for this class was generated from the following files:
Generated: Fri Jul 31 2020 18:19:16
Support Information