adtf_file_library  0.13.1
Namespaces | Macros | Typedefs | Functions
ddl_helpers.h File Reference
#include <adtf_file/adtf_file_reader.h>
#include <adtf_file/stream_type.h>
#include <ddl/ddl.h>
#include <ddl/codec/codec_factory.h>
Include dependency graph for ddl_helpers.h:

Go to the source code of this file.

Namespaces

 adtfdat_processing
 namespace for ADTF DAT Processing library.
 

Macros

#define A_UTIL_THROW_IF_FAILED(__exp, __msg)
 helper macro to throw an exception on failed a_util::result::Result More...
 

Typedefs

template<typename ElementsType >
using adtfdat_processing::element_callback = std::function< void(std::conditional_t< std::is_const< ElementsType >::value, const typename ElementsType::element_type, typename ElementsType::element_type > &)>
 Callback type for member elements.
 

Functions

std::tuple< std::string, std::string, bool > adtfdat_processing::getMediaDescriptionFromStreamType (const std::shared_ptr< const adtf_file::StreamType > &stream_type)
 
std::shared_ptr< adtf_file::StreamTypeadtfdat_processing::createAdtfDefaultStreamType (const std::string &struct_name, const std::string &struct_definition, bool is_serialized=false)
 
std::tuple< ddl::codec::CodecFactory, bool > adtfdat_processing::createDDLCodecFactoryFromStreamType (const std::shared_ptr< const adtf_file::StreamType > &stream_type)
 
template<typename ElementsType >
void adtfdat_processing::for_each_leaf_element (ElementsType &elements, const element_callback< ElementsType > &callback)
 Iterates ALL leaf elements within ALL array elements. More...
 

Detailed Description

Copyright 2024 CARIAD SE.

This Source Code Form is subject to the terms of the Mozilla
Public License, v. 2.0. If a copy of the MPL was not distributed
with this file, You can obtain one at https://mozilla.org/MPL/2.0/.

If it is not possible or desirable to put the notice in a particular file, then You may include the notice in a location (such as a LICENSE file in a relevant directory) where a recipient would be likely to look for such a notice.

You may add additional accurate notices of copyright ownership.

Macro Definition Documentation

◆ A_UTIL_THROW_IF_FAILED

#define A_UTIL_THROW_IF_FAILED (   __exp,
  __msg 
)
Value:
{\
auto __result = (__exp);\
if (a_util::result::isFailed(__result))\
{\
throw std::runtime_error(std::string(__msg) + ": " +\
a_util::result::toString(__result));\
}\
}

helper macro to throw an exception on failed a_util::result::Result


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