mcx::parameter_server::DataContainer

mcx::parameter_server::DataContainer

Public Types

Name
enum class Type { NONE, PARAMETER_FIXED, PARAMETER_VARIABLE, INPUT_BUFFER, OUTPUT_BUFFER, EXTERNAL}

Public Functions

Name
DataContainer()
DataContainer(Type type, const void * data_ptr, size_t offset_bytes, size_t length_bytes)
virtual ~DataContainer()
bool allocate(Type type, size_t length_bytes)
void deallocate()
DataContainer(const DataContainer & orig) =delete
DataContainer & operator=(const DataContainer & orig)
void setDataPtr(Type type, const void * data_ptr, size_t offset_bytes, size_t length_bytes)
void readWithConversion(DataContainer * dst, const ConversionData & conversion)
size_t getMaxSize() const
size_t getSize() const
size_t getOffset() const
const uint8_t * getData() const
Type getType() const
void setSize(size_t size)
void setTime(const struct timespec & app_time)
const struct timespec & getTime() const

Public Attributes

Name
size_t offset
size_t size
size_t max_size
const void * v_ptr
uint8_t * ui_ptr

Public Types Documentation

enum Type

Enumerator Value Description
NONE
PARAMETER_FIXED
PARAMETER_VARIABLE
INPUT_BUFFER
OUTPUT_BUFFER
EXTERNAL

Public Functions Documentation

function DataContainer

DataContainer()

function DataContainer

DataContainer(
    Type type,
    const void * data_ptr,
    size_t offset_bytes,
    size_t length_bytes
)

function ~DataContainer

virtual ~DataContainer()

function allocate

bool allocate(
    Type type,
    size_t length_bytes
)

function deallocate

void deallocate()

function DataContainer

DataContainer(
    const DataContainer & orig
) =delete

function operator=

inline DataContainer & operator=(
    const DataContainer & orig
)

function setDataPtr

void setDataPtr(
    Type type,
    const void * data_ptr,
    size_t offset_bytes,
    size_t length_bytes
)

function readWithConversion

void readWithConversion(
    DataContainer * dst,
    const ConversionData & conversion
)

function getMaxSize

inline size_t getMaxSize() const

function getSize

inline size_t getSize() const

function getOffset

inline size_t getOffset() const

function getData

inline const uint8_t * getData() const

function getType

inline Type getType() const

function setSize

inline void setSize(
    size_t size
)

function setTime

inline void setTime(
    const struct timespec & app_time
)

function getTime

inline const struct timespec & getTime() const

Public Attributes Documentation

variable offset

size_t offset;

variable size

size_t size;

variable max_size

size_t max_size;

variable v_ptr

const void * v_ptr;

variable ui_ptr

uint8_t * ui_ptr;

Updated on 2022-04-05 at 16:21:27 +0200