LuciadCPillar 2023.1.04
luciad::DataEntity Class Referencefinal

Represents a blob of data. More...

#include <luciad/containers/DataEntity.h>

Public Member Functions

 DataEntity (luciad::ByteBuffer data, std::string mimeType)
 Constructs the data entity. More...
 
const luciad::ByteBuffergetData () const
 Returns the data. More...
 
const std::string & getMimeType () const
 Returns the mime-type of the data. More...
 

Detailed Description

Represents a blob of data.

A binary large object is a collection of binary data stored as a single entity. Blobs are typically images, audio or other multimedia objects.

The mime-type indicates how to interpret the data 'blob'.

Since
2022.1

Constructor & Destructor Documentation

◆ DataEntity()

luciad::DataEntity::DataEntity ( luciad::ByteBuffer  data,
std::string  mimeType 
)

Constructs the data entity.

Parameters
datathe data.
mimeTypethe mime-type of the data.

Member Function Documentation

◆ getData()

const luciad::ByteBuffer & luciad::DataEntity::getData ( ) const

Returns the data.

Returns
the data.

◆ getMimeType()

const std::string & luciad::DataEntity::getMimeType ( ) const

Returns the mime-type of the data.

Returns
the mime-type of the data.