ADTF_DEVICE_TOOLBOX  3.12.1 (ADTF 3.18.3)
stream_meta_type_someip_properties.h
Go to the documentation of this file.
1 
17 #pragma once
18 
22 namespace adtf
23 {
27 namespace devicetb
28 {
32 namespace sdk
33 {
37 namespace someip
38 {
42 namespace brake
43 {
44 
45 constexpr char ADTF_MEDIA_DESC_SOMEIP_DDL[] =
46 R"(<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
47 <adtf:ddl xmlns:adtf="adtf">
48  <structs>
49  <struct name="tSomeIpSampleHeader" version="1" ddlversion="4.0">
50  <element name="nVLANId" type="tUInt16" arraysize="1">
51  <deserialized alignment="1"/>
52  <serialized bytepos="0" byteorder="LE"/>
53  </element>
54  <element name="bIsTCP" type="bool" arraysize="1">
55  <deserialized alignment="1"/>
56  <serialized bytepos="2" byteorder="LE"/>
57  </element>
58  <element name="bIsIPv6" type="bool" arraysize="1">
59  <deserialized alignment="1"/>
60  <serialized bytepos="3" byteorder="LE"/>
61  </element>
62  <element name="nMessageCount" type="tUInt16" arraysize="1">
63  <deserialized alignment="1"/>
64  <serialized bytepos="4" byteorder="LE"/>
65  </element>
66  <element name="aSrcIP" type="tUInt8" arraysize="16">
67  <deserialized alignment="1"/>
68  <serialized bytepos="6" byteorder="LE"/>
69  </element>
70  <element name="aDstIP" type="tUInt8" arraysize="16">
71  <deserialized alignment="1"/>
72  <serialized bytepos="22" byteorder="LE"/>
73  </element>
74  <element name="nSrcPort" type="tUInt16" arraysize="1">
75  <deserialized alignment="1"/>
76  <serialized bytepos="38" byteorder="LE"/>
77  </element>
78  <element name="nDstPort" type="tUInt16" arraysize="1">
79  <deserialized alignment="1"/>
80  <serialized bytepos="40" byteorder="LE"/>
81  </element>
82  <element name="nMessageDataSize" type="tUInt32" arraysize="1">
83  <deserialized alignment="1"/>
84  <serialized bytepos="42" byteorder="LE"/>
85  </element>
86  <element name="aMessageData" type="tUInt8" arraysize="nMessageDataSize">
87  <deserialized alignment="1"/>
88  <serialized bytepos="46" byteorder="LE"/>
89  </element>
90  </struct>
91  </structs>
92 </adtf:ddl>)";
93 
100 {
102 
103 
104  static constexpr const char* const MetaTypeName = "adtf/devicetb/someip";
105 
109  static constexpr const char* const SomeIpDatabaseName = "database";
110 
111  /*
112  * The name of the structure that is contained within the samples.
113  */
114  static constexpr const char* const DDLStructureName = "tSomeIpSampleHeader";
115 
116  /*
117  * Wether the samples contain the serialized or deserialized representation.
118  */
119  static constexpr const bool DDLSerialized = true;
120 
121  /*
122  * The DDL defintion of the structure that is contained within the samples.
123  */
124  static constexpr const char* const DDLDefinitions = ADTF_MEDIA_DESC_SOMEIP_DDL;
125 };
126 }
127 
130 
131 }
132 }
133 }
134 }
brake::stream_meta_type_someip_properties stream_meta_type_someip_properties
Definition of Stream Meta Type for SOME/IP.
ADTF - Namespace.
static constexpr const char *const SomeIpDatabaseName
SOME/IP database name.