adtf_file_library  0.13.1
Public Member Functions | List of all members
adtf_file::DefaultStreamType Class Reference

Default stream type implementation. More...

#include <stream_type.h>

Inheritance diagram for adtf_file::DefaultStreamType:
[legend]
Collaboration diagram for adtf_file::DefaultStreamType:
[legend]

Public Member Functions

 DefaultStreamType ()=default
 CTOR.
 
 DefaultStreamType (const std::string &meta_type)
 CTOR. More...
 
void setMetaType (const std::string &meta_type) override
 Set the Meta Type. More...
 
PropertyStreamTypesetProperty (const std::string &name, const std::string &type, const std::string &value) override
 Set a Property. More...
 
std::string getMetaType () const override
 Get the Meta Type. More...
 
std::pair< std::string, std::string > getProperty (const std::string &name) const override
 Get a Property. More...
 
void iterateProperties (std::function< void(const char *, const char *, const char *)> functor) const override
 iterates the properties More...
 
- Public Member Functions inherited from adtf_file::StreamType
virtual ~StreamType ()=default
 DTOR.
 
- Public Member Functions inherited from adtf_file::StreamItem
virtual ~StreamItem ()=default
 DTOR.
 

Detailed Description

Default stream type implementation.

Constructor & Destructor Documentation

◆ DefaultStreamType()

adtf_file::DefaultStreamType::DefaultStreamType ( const std::string &  meta_type)

CTOR.

Parameters
meta_typethe meta type to set

Member Function Documentation

◆ getMetaType()

std::string adtf_file::DefaultStreamType::getMetaType ( ) const
overridevirtual

Get the Meta Type.

Returns
std::string

Implements adtf_file::PropertyStreamType.

◆ getProperty()

std::pair<std::string, std::string> adtf_file::DefaultStreamType::getProperty ( const std::string &  name) const
overridevirtual

Get a Property.

Parameters
namethe name of the property
Returns
std::pair<std::string, std::string> the type, value pair

Implements adtf_file::PropertyStreamType.

◆ iterateProperties()

void adtf_file::DefaultStreamType::iterateProperties ( std::function< void(const char *, const char *, const char *)>  functor) const
overridevirtual

iterates the properties

Parameters
functorthe function to call for each property

Implements adtf_file::PropertyStreamType.

◆ setMetaType()

void adtf_file::DefaultStreamType::setMetaType ( const std::string &  meta_type)
overridevirtual

Set the Meta Type.

Parameters
meta_typethe meta type of the stream type

Implements adtf_file::PropertyStreamType.

◆ setProperty()

PropertyStreamType& adtf_file::DefaultStreamType::setProperty ( const std::string &  name,
const std::string &  type,
const std::string &  value 
)
overridevirtual

Set a Property.

Parameters
namename of the property
typetype of the property
valuevalue f the property as string
Returns
*this

Implements adtf_file::PropertyStreamType.


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

Copyright © CARIAD SE.
Generated on Fri Apr 19 2024 by doxygen 1.9.1
GIT Commit Hash: 82d535f82776c20b12fc60740bdae991b62444a7