summaryrefslogtreecommitdiff
path: root/enhanced-position-service/franca/src/gen/org/genivi/EnhancedPositionService/EnhancedPositionServiceTypes.h
blob: 4a05726075f794e93cf7769786d8710924ee50ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
/*
* This file was generated by the CommonAPI Generators.
* Used org.genivi.commonapi.core 2.1.6.v20140519.
* Used org.franca.core 0.8.11.201401091023.
*
* 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
* http://mozilla.org/MPL/2.0/.
*/
#ifndef ORG_GENIVI_ENHANCEDPOSITIONSERVICE_Enhanced_Position_Service_Types_H_
#define ORG_GENIVI_ENHANCEDPOSITIONSERVICE_Enhanced_Position_Service_Types_H_



#if !defined (COMMONAPI_INTERNAL_COMPILATION)
#define COMMONAPI_INTERNAL_COMPILATION
#endif

#include <CommonAPI/InputStream.h>
#include <CommonAPI/OutputStream.h>
#include <CommonAPI/SerializableStruct.h>
#include <CommonAPI/SerializableVariant.h>
#include <CommonAPI/types.h>
#include <cstdint>
#include <memory>
#include <string>
#include <unordered_map>

#undef COMMONAPI_INTERNAL_COMPILATION

namespace org {
namespace genivi {
namespace EnhancedPositionService {

namespace EnhancedPositionServiceTypes {
    typedef uint64_t Timestamp;
    /**
     * bitmask obtained as a result of an OR operation on enum values of type
     *  PositionInfoKey
     */
    /**
     * bitmask obtained as a result of an OR operation on enum values of type
     *  PositionInfoKey
     */
    typedef uint64_t Bitmask;
    /**
     * version
     */
    /**
     * version
     */
    struct Version: CommonAPI::SerializableStruct {
        /**
         * when the major changes, then backward compatibility with previous releases is
         *  not granted
         */
         uint16_t maj;
        /**
         * when the minor changes, then backward compatibility with previous releases is
         *  granted, but something changed in the implementation of the API (e.g. new
         *  methods may have been added)
         */
         uint16_t min;
        /**
         * when the micro changes, then backward compatibility with previous releases is
         *  granted (bug fixes or documentation modifications)
         */
         uint16_t mic;
        /**
         * release date (e.g. 21-06-2011)
         */
         std::string date;
    
        Version() = default;
        Version(const uint16_t& maj, const uint16_t& min, const uint16_t& mic, const std::string& date);
    
    
        virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
        virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
    
        static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
            typeOutputStream.writeUInt16Type();
            typeOutputStream.writeUInt16Type();
            typeOutputStream.writeUInt16Type();
            typeOutputStream.writeStringType();
        }
    };
    /**
     * Value = generic value (mapped to a dbus variant ('v') data type)
     */
    /**
     * Value = generic value (mapped to a dbus variant ('v') data type)
     */
    typedef CommonAPI::Variant<uint64_t, double, float, std::string>  Value;
    enum class PositionInfoKey: int32_t {
        LATITUDE = 0x1,
        LONGITUDE = 0x2,
        ALTITUDE = 0x4,
        HEADING = 0x8,
        SPEED = 0x10,
        CLIMB = 0x20,
        ROLL_RATE = 0x40,
        PITCH_RATE = 0x80,
        YAW_RATE = 0x100,
        PDOP = 0x200,
        HDOP = 0x400,
        VDOP = 0x800,
        USED_SATELLITES = 0x1000,
        TRACKED_SATELLITES = 0x2000,
        VISIBLE_SATELLITES = 0x4000,
        SIGMA_HPOSITION = 0x8000,
        SIGMA_ALTITUDE = 0x10000,
        SIGMA_HEADING = 0x20000,
        SIGMA_SPEED = 0x40000,
        SIGMA_CLIMB = 0x80000,
        GNSS_FIX_STATUS = 0x100000,
        DR_STATUS = 0x200000,
        RELIABILTY_INDEX = 0x400000
    };
    
    // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
    struct PositionInfoKeyComparator;
    /**
     * PositionInfo = array of tuples (key,value)
            key = enumeration
     *  PositionInfoKey
            key = LATITUDE, value = value of type 'Double', that
     *  expresses the latitude of the current position. Range [-90:+90]. Example:
     *  48.053250
            key = LONGITUDE, value = value of type 'Double', that
     *  expresses the longitude of the current position. Range [-180:+180]. Example:
     *  8.324500
            key = ALTITUDE, value = value of type 'Double', that
     *  expresses the altitude above the sea level of the current position in meters
    
     *         key = HEADING, value = value of type 'Double', that expresses the
     *  course angle in degree. Range [0:360]. 0 = north, 90 = east, 180 = south, 270
     *  = west
            key = SPEED, value = value of type 'Double', that expresses
     *  speed measured in m/s. A negative value indicates that the vehicle is moving
     *  backwards
            key = CLIMB, value = value of type 'Double', that expresses
     *  the road gradient in degrees
            key = ROLL_RATE, value = value of type
     *  'Double', rotation rate around the X-axis in degrees/s. Range [-100:+100]
       
     *      key = PITCH_RATE, value = value of type 'Double', rotation rate around the
     *  Y-axis in degrees/s. Range [-100:+100]
            key = YAW_RATE, value = value
     *  of type 'Double', rotation rate around the Z-axis in degrees/s. Range
     *  [-100:+100]
            key = PDOP, value = value of type 'Double', that
     *  represents the positional (3D) dilution of precision
            key = HDOP,
     *  value = value of type 'Double', that represents the horizontal (2D) dilution
     *  of precision
            key = VDOP, value = value of type 'Double', that
     *  represents vertical (altitude) dilution of precision
            key =
     *  USED_SATELLITES, value = value of type 'UInt8', that represents the number of
     *  used satellites
            key = TRACKED_SATELLITES, value = value of type
     *  'UInt8', that represents the number of tracked satellites 
            key =
     *  VISIBLE_SATELLITES, value = value of type 'UInt8', that represents the number
     *  of visible satellites
            key = SIGMA_HPOSITION, value = value of type
     *  'Double', that represents the standard deviation for the horizontal position
     *  in m
            key = SIGMA_ALTITUDE, value = value of type 'Double', that
     *  represents the standard deviation for altitude in m
            key =
     *  SIGMA_HEADING, value = value of type 'Double', that represents the standard
     *  deviation for altitude in degrees
            key = SIGMA_SPEED, value = value of
     *  type 'Double', that represents the standard error estimate of the speed in
     *  m/s</line>
            key = SIGMA_CLIMB, value = value of type 'Double', that
     *  represents the standard error estimate of the climb in degrees</line>
           
     *  key = GNSS_FIX_STATUS, value = value of type 'UInt16', that represents an
     *  enum(NO_FIX(0x01),TIME_FIX(0x01),2D_FIX(0x02),3D_FIX(0x03), ... )
            key
     *  = DR_STATUS, value = value of type 'Boolean', where TRUE means that a
     *  dead-reckoning algorithm has been used to calculate the current position
     */
    /**
     * PositionInfo = array of tuples (key,value)
            key = enumeration
     *  PositionInfoKey
            key = LATITUDE, value = value of type 'Double', that
     *  expresses the latitude of the current position. Range [-90:+90]. Example:
     *  48.053250
            key = LONGITUDE, value = value of type 'Double', that
     *  expresses the longitude of the current position. Range [-180:+180]. Example:
     *  8.324500
            key = ALTITUDE, value = value of type 'Double', that
     *  expresses the altitude above the sea level of the current position in meters
    
     *         key = HEADING, value = value of type 'Double', that expresses the
     *  course angle in degree. Range [0:360]. 0 = north, 90 = east, 180 = south, 270
     *  = west
            key = SPEED, value = value of type 'Double', that expresses
     *  speed measured in m/s. A negative value indicates that the vehicle is moving
     *  backwards
            key = CLIMB, value = value of type 'Double', that expresses
     *  the road gradient in degrees
            key = ROLL_RATE, value = value of type
     *  'Double', rotation rate around the X-axis in degrees/s. Range [-100:+100]
       
     *      key = PITCH_RATE, value = value of type 'Double', rotation rate around the
     *  Y-axis in degrees/s. Range [-100:+100]
            key = YAW_RATE, value = value
     *  of type 'Double', rotation rate around the Z-axis in degrees/s. Range
     *  [-100:+100]
            key = PDOP, value = value of type 'Double', that
     *  represents the positional (3D) dilution of precision
            key = HDOP,
     *  value = value of type 'Double', that represents the horizontal (2D) dilution
     *  of precision
            key = VDOP, value = value of type 'Double', that
     *  represents vertical (altitude) dilution of precision
            key =
     *  USED_SATELLITES, value = value of type 'UInt8', that represents the number of
     *  used satellites
            key = TRACKED_SATELLITES, value = value of type
     *  'UInt8', that represents the number of tracked satellites 
            key =
     *  VISIBLE_SATELLITES, value = value of type 'UInt8', that represents the number
     *  of visible satellites
            key = SIGMA_HPOSITION, value = value of type
     *  'Double', that represents the standard deviation for the horizontal position
     *  in m
            key = SIGMA_ALTITUDE, value = value of type 'Double', that
     *  represents the standard deviation for altitude in m
            key =
     *  SIGMA_HEADING, value = value of type 'Double', that represents the standard
     *  deviation for altitude in degrees
            key = SIGMA_SPEED, value = value of
     *  type 'Double', that represents the standard error estimate of the speed in
     *  m/s</line>
            key = SIGMA_CLIMB, value = value of type 'Double', that
     *  represents the standard error estimate of the climb in degrees</line>
           
     *  key = GNSS_FIX_STATUS, value = value of type 'UInt16', that represents an
     *  enum(NO_FIX(0x01),TIME_FIX(0x01),2D_FIX(0x02),3D_FIX(0x03), ... )
            key
     *  = DR_STATUS, value = value of type 'Boolean', where TRUE means that a
     *  dead-reckoning algorithm has been used to calculate the current position
     */
    typedef std::unordered_map<PositionInfoKey, Value, CommonAPI::EnumHasher<PositionInfoKey>> PositionInfo;
    enum class SatelliteSystem: int32_t {
        GPS = 0x1,
        GLONASS = 0x2,
        GALILEO = 0x3,
        COMPASS = 0x4
    };
    
    // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
    struct SatelliteSystemComparator;
    /**
     * SatelliteInfo = array(struct(system,satelliteId,azimuth,elevation,snr,inUse))
    
     *             system = enum(GPS, GLONASS, GALILEO, COMPASS, ... )
               
     *  satelliteId = satellite ID. This ID is unique within one satellite system
       
     *          azimuth = satellite azimuth in degrees. Value range 0..359
              
     *   elevation = satellite elevation in degrees. Value range 0..90
               
     *  snr = SNR (C/No) in dBHz. Range 0 to 99, null when not tracking
               
     *  inUse = flag indicating if the satellite is used for the fix (inUse=true)
     */
    /**
     * SatelliteInfo = array(struct(system,satelliteId,azimuth,elevation,snr,inUse))
    
     *             system = enum(GPS, GLONASS, GALILEO, COMPASS, ... )
               
     *  satelliteId = satellite ID. This ID is unique within one satellite system
       
     *          azimuth = satellite azimuth in degrees. Value range 0..359
              
     *   elevation = satellite elevation in degrees. Value range 0..90
               
     *  snr = SNR (C/No) in dBHz. Range 0 to 99, null when not tracking
               
     *  inUse = flag indicating if the satellite is used for the fix (inUse=true)
     */
    struct SatelliteInfo: CommonAPI::SerializableStruct {
         SatelliteSystem system;
         uint32_t satellitId;
         uint32_t azimuth;
         uint32_t elevation;
         uint32_t snr;
         bool inUse;
    
        SatelliteInfo() = default;
        SatelliteInfo(const SatelliteSystem& system, const uint32_t& satellitId, const uint32_t& azimuth, const uint32_t& elevation, const uint32_t& snr, const bool& inUse);
    
    
        virtual void readFromInputStream(CommonAPI::InputStream& inputStream);
        virtual void writeToOutputStream(CommonAPI::OutputStream& outputStream) const;
    
        static inline void writeToTypeOutputStream(CommonAPI::TypeOutputStream& typeOutputStream) {
            typeOutputStream.writeInt32Type();
            typeOutputStream.writeUInt32Type();
            typeOutputStream.writeUInt32Type();
            typeOutputStream.writeUInt32Type();
            typeOutputStream.writeUInt32Type();
            typeOutputStream.writeBoolType();
        }
    };
    enum class TimeInfoKey: int32_t {
        YEAR = 0x1000000,
        MONTH = 0x2000000,
        DAY = 0x4000000,
        HOUR = 0x8000000,
        MINUTE = 0x10000000,
        SECOND = 0x20000000,
        MS = 0x40000000
    };
    
    // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
    struct TimeInfoKeyComparator;
    /**
     * TimeInfo = array of tuples (key,value)
            key = enumeration TimeInfoKey
    
     *         key = YEAR, value = value of type 'UInt16', 4 digits number that
     *  indicates the year. Example: 2012
            key = MONTH, value = value of type
     *  'UInt8', 2 digits number that indicates the month. Example: 03 means March
      
     *       key = DAY, value = value of type 'UInt8', 2 digits number that indicates
     *  the day. Range [0:31]. Example: 07
            key = HOUR, value = value of type
     *  'UInt8', 2 digits number that indicates the hour. Range [0:23].  Example: 01
    
     *         key = MINUTE, value = value of type 'UInt8', 2 digits number that
     *  represents the minutes. Range [0:59]. Example: 01
            key = SECOND, value
     *  = value of type 'UInt8', 2 digits number that represents the seconds. Range
     *  [0:59]. Example: 01
            key = MS, value = value of type 'UInt16', 3
     *  digits number that represents the milliseconds. Range [0:999]. Example: 007
     */
    /**
     * TimeInfo = array of tuples (key,value)
            key = enumeration TimeInfoKey
    
     *         key = YEAR, value = value of type 'UInt16', 4 digits number that
     *  indicates the year. Example: 2012
            key = MONTH, value = value of type
     *  'UInt8', 2 digits number that indicates the month. Example: 03 means March
      
     *       key = DAY, value = value of type 'UInt8', 2 digits number that indicates
     *  the day. Range [0:31]. Example: 07
            key = HOUR, value = value of type
     *  'UInt8', 2 digits number that indicates the hour. Range [0:23].  Example: 01
    
     *         key = MINUTE, value = value of type 'UInt8', 2 digits number that
     *  represents the minutes. Range [0:59]. Example: 01
            key = SECOND, value
     *  = value of type 'UInt8', 2 digits number that represents the seconds. Range
     *  [0:59]. Example: 01
            key = MS, value = value of type 'UInt16', 3
     *  digits number that represents the milliseconds. Range [0:999]. Example: 007
     */
    typedef std::unordered_map<TimeInfoKey, Value, CommonAPI::EnumHasher<TimeInfoKey>> TimeInfo;
    enum class PositionFeedbackKey: int32_t {
        LATITUDE = 0x1,
        LONGITUDE = 0x2,
        ALTITUDE = 0x4,
        HEADING = 0x8,
        SPEED = 0x10,
        CLIMB = 0x20,
        RELIABILTY_INDEX = 0x400000
    };
    
    // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
    struct PositionFeedbackKeyComparator;
    enum class PositionFeedbackType: int32_t {
        MAP_MATCHED_FEEDBACK = 0x1,
        TEST_FEEDBACK = 0x2
    };
    
    // Definition of a comparator still is necessary for GCC 4.4.1, topic is fixed since 4.5.1
    struct PositionFeedbackTypeComparator;

bool operator==(const Version& lhs, const Version& rhs);
inline bool operator!=(const Version& lhs, const Version& rhs) {
    return !(lhs == rhs);
}
inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, PositionInfoKey& enumValue) {
    return inputStream.readEnumValue<int32_t>(enumValue);
}

inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const PositionInfoKey& enumValue) {
    return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
}

struct PositionInfoKeyComparator {
    inline bool operator()(const PositionInfoKey& lhs, const PositionInfoKey& rhs) const {
        return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
    }
};

inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, SatelliteSystem& enumValue) {
    return inputStream.readEnumValue<int32_t>(enumValue);
}

inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const SatelliteSystem& enumValue) {
    return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
}

struct SatelliteSystemComparator {
    inline bool operator()(const SatelliteSystem& lhs, const SatelliteSystem& rhs) const {
        return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
    }
};

bool operator==(const SatelliteInfo& lhs, const SatelliteInfo& rhs);
inline bool operator!=(const SatelliteInfo& lhs, const SatelliteInfo& rhs) {
    return !(lhs == rhs);
}
inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, TimeInfoKey& enumValue) {
    return inputStream.readEnumValue<int32_t>(enumValue);
}

inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const TimeInfoKey& enumValue) {
    return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
}

struct TimeInfoKeyComparator {
    inline bool operator()(const TimeInfoKey& lhs, const TimeInfoKey& rhs) const {
        return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
    }
};

inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, PositionFeedbackKey& enumValue) {
    return inputStream.readEnumValue<int32_t>(enumValue);
}

inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const PositionFeedbackKey& enumValue) {
    return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
}

struct PositionFeedbackKeyComparator {
    inline bool operator()(const PositionFeedbackKey& lhs, const PositionFeedbackKey& rhs) const {
        return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
    }
};

inline CommonAPI::InputStream& operator>>(CommonAPI::InputStream& inputStream, PositionFeedbackType& enumValue) {
    return inputStream.readEnumValue<int32_t>(enumValue);
}

inline CommonAPI::OutputStream& operator<<(CommonAPI::OutputStream& outputStream, const PositionFeedbackType& enumValue) {
    return outputStream.writeEnumValue(static_cast<int32_t>(enumValue));
}

struct PositionFeedbackTypeComparator {
    inline bool operator()(const PositionFeedbackType& lhs, const PositionFeedbackType& rhs) const {
        return static_cast<int32_t>(lhs) < static_cast<int32_t>(rhs);
    }
};



static inline const char* getTypeCollectionName() {
    static const char* typeCollectionName = "org.genivi.EnhancedPositionService.EnhancedPositionServiceTypes";
    return typeCollectionName;
}


} // namespace EnhancedPositionServiceTypes

} // namespace EnhancedPositionService
} // namespace genivi
} // namespace org

namespace CommonAPI {

    template<>
    struct BasicTypeWriter<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionInfoKey> {
        inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
            typeStream.writeInt32EnumType();
        }
    };
    
    template<>
    struct InputStreamVectorHelper<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionInfoKey> {
        static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionInfoKey>& vectorValue) {
            inputStream.beginReadInt32EnumVector();
        }
    };
    
    template <>
    struct OutputStreamVectorHelper<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionInfoKey> {
        static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionInfoKey>& vectorValue) {
            outputStream.beginWriteInt32EnumVector(vectorValue.size());
        }
    };
    template<>
    struct BasicTypeWriter<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::SatelliteSystem> {
        inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
            typeStream.writeInt32EnumType();
        }
    };
    
    template<>
    struct InputStreamVectorHelper<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::SatelliteSystem> {
        static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::SatelliteSystem>& vectorValue) {
            inputStream.beginReadInt32EnumVector();
        }
    };
    
    template <>
    struct OutputStreamVectorHelper<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::SatelliteSystem> {
        static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::SatelliteSystem>& vectorValue) {
            outputStream.beginWriteInt32EnumVector(vectorValue.size());
        }
    };
    template<>
    struct BasicTypeWriter<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::TimeInfoKey> {
        inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
            typeStream.writeInt32EnumType();
        }
    };
    
    template<>
    struct InputStreamVectorHelper<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::TimeInfoKey> {
        static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::TimeInfoKey>& vectorValue) {
            inputStream.beginReadInt32EnumVector();
        }
    };
    
    template <>
    struct OutputStreamVectorHelper<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::TimeInfoKey> {
        static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::TimeInfoKey>& vectorValue) {
            outputStream.beginWriteInt32EnumVector(vectorValue.size());
        }
    };
    template<>
    struct BasicTypeWriter<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackKey> {
        inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
            typeStream.writeInt32EnumType();
        }
    };
    
    template<>
    struct InputStreamVectorHelper<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackKey> {
        static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackKey>& vectorValue) {
            inputStream.beginReadInt32EnumVector();
        }
    };
    
    template <>
    struct OutputStreamVectorHelper<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackKey> {
        static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackKey>& vectorValue) {
            outputStream.beginWriteInt32EnumVector(vectorValue.size());
        }
    };
    template<>
    struct BasicTypeWriter<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackType> {
        inline static void writeType (CommonAPI::TypeOutputStream& typeStream) {
            typeStream.writeInt32EnumType();
        }
    };
    
    template<>
    struct InputStreamVectorHelper<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackType> {
        static void beginReadVector(InputStream& inputStream, const std::vector<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackType>& vectorValue) {
            inputStream.beginReadInt32EnumVector();
        }
    };
    
    template <>
    struct OutputStreamVectorHelper<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackType> {
        static void beginWriteVector(OutputStream& outputStream, const std::vector<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackType>& vectorValue) {
            outputStream.beginWriteInt32EnumVector(vectorValue.size());
        }
    };

}


namespace std {
    //Hash for PositionInfoKey
    template<>
    struct hash<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionInfoKey> {
        inline size_t operator()(const org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionInfoKey& positionInfoKey) const {
            return static_cast<int32_t>(positionInfoKey);
        }
    };
    //Hash for SatelliteSystem
    template<>
    struct hash<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::SatelliteSystem> {
        inline size_t operator()(const org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::SatelliteSystem& satelliteSystem) const {
            return static_cast<int32_t>(satelliteSystem);
        }
    };
    //Hash for TimeInfoKey
    template<>
    struct hash<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::TimeInfoKey> {
        inline size_t operator()(const org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::TimeInfoKey& timeInfoKey) const {
            return static_cast<int32_t>(timeInfoKey);
        }
    };
    //Hash for PositionFeedbackKey
    template<>
    struct hash<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackKey> {
        inline size_t operator()(const org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackKey& positionFeedbackKey) const {
            return static_cast<int32_t>(positionFeedbackKey);
        }
    };
    //Hash for PositionFeedbackType
    template<>
    struct hash<org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackType> {
        inline size_t operator()(const org::genivi::EnhancedPositionService::EnhancedPositionServiceTypes::PositionFeedbackType& positionFeedbackType) const {
            return static_cast<int32_t>(positionFeedbackType);
        }
    };
}

#endif // ORG_GENIVI_ENHANCEDPOSITIONSERVICE_Enhanced_Position_Service_Types_H_