Project

General

Profile

Support Request #17332 » pkg_ddl.h

hidden, 2022-04-26 12:08

 
1
/**
2
 *
3
 * @file
4
 * Copyright © Audi Electronics Venture GmbH. All rights reserved
5
 *
6
 */
7
#ifndef _PACKAGE_DDL_HEADER_
8
#define _PACKAGE_DDL_HEADER_
9

    
10
#include <a_utils.h>
11
#include <stack>
12
// OO-DDL interfaces
13
#include "ddlrepresentation/pkg_ddlrepresentation.h"
14
#include "codec/pkg_codec.h"
15
#include "serialization/pkg_serialization.h"
16
#ifdef DDL_ENABLE_DEPRECATED_CODER
17
    #include "ddlcoder/pkg_ddlcoder.h"
18
#endif
19

    
20
#ifndef PKG_DDL_NO_GLOBAL_DDL_NAMESPACE
21
// this is to prevent name and linker collisions with the open source variant of the ddl package
22
namespace ddl
23
{
24
//we need to declare it this way: 
25
// Reason 1: using ddl = adtf_ddl; is NOT possible here because another namspace ddl exists (for using new and old package together)!
26
// Reason 2: using adtf_ddl; is not possible => sub namespaces are ambigous afterwards and can not be used with using namspace ddl; anymore!
27
// Solution: use the access_element namspace and using statements for all classes in adtf_ddl!
28
namespace access_element
29
{
30
using namespace adtf_ddl::access_element;
31
}
32
namespace serialization
33
{
34
//we can not use the transform_to_buffer, there is a name clash!
35
using adtf_ddl::serialization::transform_to_buffer;
36
}
37

    
38
using cDDLError = adtf_ddl::cDDLError;
39

    
40
using tDDLPropertyVec = adtf_ddl::tDDLPropertyVec;
41
using cDDLProperty = adtf_ddl::cDDLProperty;
42
using cDDLDescription = adtf_ddl::cDDLDescription;
43
using cDDLStreamMetaType = adtf_ddl::cDDLStreamMetaType;
44
using cDDLCompare = adtf_ddl::cDDLCompare;
45
using cDDLVersionHelper = adtf_ddl::cDDLVersionHelper;
46
using tDDLVersion = adtf_ddl::tDDLVersion;
47
using cDDLCloner = adtf_ddl::cDDLCloner;
48
using IDDLFactoryMethod = adtf_ddl::IDDLFactoryMethod;
49
using cDDLByteorder = adtf_ddl::cDDLByteorder;
50
using cDDL = adtf_ddl::cDDL;
51
using IDDL = adtf_ddl::IDDL;
52
using cDDLAlignment = adtf_ddl::cDDLAlignment;
53
using IDDLUnit = adtf_ddl::IDDLUnit;
54
using cDDLBaseunit = adtf_ddl::cDDLBaseunit;
55
using cDDLPrefix = adtf_ddl::cDDLPrefix;
56
using cDDLRefUnit = adtf_ddl::cDDLRefUnit;
57
using tDDLRefUnitVec = adtf_ddl::tDDLRefUnitVec;
58
using tDDLRefUnitIt = adtf_ddl::tDDLRefUnitIt;
59
using cDDLUnit = adtf_ddl::cDDLUnit;
60
using cDDLElement = adtf_ddl::cDDLElement;
61
using tDDLElementVec = adtf_ddl::tDDLElementVec;
62
using tDDLElementIt = adtf_ddl::tDDLElementIt;
63
using cDDLComplex = adtf_ddl::cDDLComplex;
64
using IDDLDataType = adtf_ddl::IDDLDataType;
65
using cDDLDataType = adtf_ddl::cDDLDataType;
66
using cDDLEnum = adtf_ddl::cDDLEnum;
67
using tEnumNameValueVec = adtf_ddl::tEnumNameValueVec;
68
using cDDLExtDeclaration = adtf_ddl::cDDLExtDeclaration;
69
using cDDLExtDeclaration = adtf_ddl::cDDLExtDeclaration;
70
using tDDLExtDeclarationVec = adtf_ddl::tDDLExtDeclarationVec;
71
using tDDLExtDeclarationIt = adtf_ddl::tDDLExtDeclarationIt;
72
using cDDLHeader = adtf_ddl::tDDLExtDeclarationIt;
73
using tImporterMsgSeverity = adtf_ddl::tImporterMsgSeverity;
74
using tImporterMsg = adtf_ddl::tImporterMsg;
75
using tImporterMsgList = adtf_ddl::tImporterMsgList;
76
using cDDLImporter = adtf_ddl::cDDLImporter;
77
using cDDLInspector = adtf_ddl::cDDLInspector;
78
using IDDLVisitor = adtf_ddl::IDDLVisitor;
79
using cDDLRepair = adtf_ddl::cDDLRepair;
80
using cDDLResolver = adtf_ddl::cDDLResolver;
81
using cDDLStreamStruct = adtf_ddl::cDDLStreamStruct;
82
using tDDLStreamStructVec = adtf_ddl::tDDLStreamStructVec;
83
using tDDLStreamStructIt = adtf_ddl::tDDLStreamStructIt;
84
using cDDLStream = adtf_ddl::cDDLStream;
85
using cDDLStreamMetaType = adtf_ddl::cDDLStreamMetaType;
86
using cDDLPrinter = adtf_ddl::cDDLPrinter;
87
using cElementAccessor = adtf_ddl::cElementAccessor;
88
using tStructLayoutElement = adtf_ddl::tStructLayoutElement;
89
using tStructElement = adtf_ddl::tStructElement;
90
using cCodec = adtf_ddl::cCodec;
91
using cDecoder = adtf_ddl::cDecoder;
92
using cStaticDecoder = adtf_ddl::cStaticDecoder;
93
using cStaticCodec = adtf_ddl::cStaticCodec;
94
using cCodecFactory = adtf_ddl::cCodecFactory;
95

    
96
} // namespace ddl
97
#endif
98

    
99
#endif // _ADTF_INTERFACE_PACKAGE_HEADER_
(3-3/3)