Garmin Fleet Management Controller  2.19.0
AobrdEventLogConverter.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * MODULE NAME:
4 * AobrdEventLogConverter.cpp
5 *
6 * Copyright 2012 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef AOBRDEVENTLOGCONVERTER_H
11 #define AOBRDEVENTLOGCONVERTER_H
12 
13 #include "stdafx.h"
14 #include "garmin_types.h"
15 #include "fmi.h"
16 #include <vector>
17 #include <string>
18 
19 #if( FMI_SUPPORT_A610 )
20 
27 {
28 public:
29 
39 
41  };
42 
44 
45  void convertToCsv( const char * source, const char * destFormat );
46  uint32 convertToRaw( const char * source, const char * dest );
47 
48  uint16 countRecords( const char * source, evt_log_reason type );
49  bool findRecordAt( const char* source, evt_log_reason type, uint16 index, bool ( *visitor ) ( AobrdEventLogConverter * converter, std::vector<std::string> & record, void * data ), void * data );
50 
51  bool convertAnnotation( std::vector<std::string> & record, fmi_driver_annotation_data_type * annotation );
52 
53 };
54 #endif // FMI_SUPPORT_A610
55 
56 #endif // include guard
bool convertAnnotation(std::vector< std::string > &record, fmi_driver_annotation_data_type *annotation)
Convert an Annotation record to structure sent to FMI device.
uint16 countRecords(const char *source, evt_log_reason type)
Count records by type.
Utility for converting between raw AOBRD data to human- readable CSV file. Used to attempt to auto-co...
Data type for the Annotation Download Response Packet ID (0X110D) from server to client.
Definition: fmi.h:1850
void convertToCsv(const char *source, const char *destFormat)
Convert raw file to CSV.
unsigned short int uint16
16-bit unsigned integer
Definition: garmin_types.h:64
bool findRecordAt(const char *source, evt_log_reason type, uint16 index, bool(*visitor)(AobrdEventLogConverter *converter, std::vector< std::string > &record, void *data), void *data)
Visit records by type and index.
unsigned long int uint32
32-bit unsigned integer
Definition: garmin_types.h:66
uint32 convertToRaw(const char *source, const char *dest)
Convert CSV file to raw.