Creating functions for a pre made project and refactoring code (C++)

Job ID: 34927105

Budget: £20 – £250 GBP

Task 1: Test-first Development
A suite of Boost UTF unit tests is provided for each of the functions that you are required to implement. Following the practice of test-first development, you should regularly run the tests during development.

Reading the test output will be easier if you only run the test suite for the function that you are currently implementing. If you want to take a test-driven approach to development, you could even start with just a single simple test case, and then iteratively enable more tests.

You are expected to implement a set of C++ functions that, together, parse and interpret Global Positioning System (GPS) data from a text file. Specifically, the objective is to parse log files containing NMEA Sentences, which are structured according to a standard defined by the National Marine Electronics Association [1].

The NMEA standard defines numerous sentence formats. However, all NMEA sentence formats start with a ‘$’, followed by ‘GP’, followed by a three-character identifier for the sentence format. Then, depending on the sentence format, there are a varying number of comma-separated fields. Finally, each sentence terminates with a ‘*’ followed by a two-character hexadecimal checksum. While the official standard describing the individual sentence formats is not freely available, there are numerous sources of unofficial documentation available online (e.g. [2, 3]).

Implementation tips:

Five functions for parsing NMEA sentences are declared in a C++ header file named parse NMEA.h. The corresponding CPP file currently contains stub definitions for those functions. You are being asked to develop and implement the five function definitions described below. The required functionality of these functions is specified by comments in the header file, and, in an example-based form, by the suites of unit tests.

Restrictions/clarifications:

The parseNMEA.cpp file is intended to be a component in a larger project. Therefore it should not contain a main() function, nor perform any console input/output.
You may add auxiliary functions (or structs or classes) into parseNMEA.cpp.
You should not modify parseNMEA.h.
For your own personal testing purposes, you are free to create a main.cpp file containing a main() function, and to have it perform console input/output. However, any such additional files that you create should not be submitted, and parseNMEA.cpp should not depend on them.
You must make use of Doxygen to generate the reference manual from the commented source code.
You should make use of components from the C++ standard library but you are not permitted to use third-party libraries.

Task 3: Code Refactoring
The implementation of the public constructor for the Route class is extremely poor quality. The code is hard for a software engineer to understand or maintain because there is no separation into logically distinct tasks, or into different levels of abstraction. Furthermore, the use and naming of variables is poor, as is the code layout.

Guidelines:

Code refactoring is the act of modifying source code to improve its quality, without changing any existing (public) functionality. The group goal is to refactor the implementation of the public Route constructor. You are encouraged to introduce new functions that represent useful abstractions over existing code, and such functions should be introduced wherever in the code base that you think is most appropriate. Crucially, you should not change or remove any existing public functionality of the class: your changes must be backwards compatible.

I have attached the zip folder of the project

I hope you will be able to help me with this project, happy to meet whatever cost you want to complete the project. Message me if you have any questions. Thank you
Related categories: Linux C++ Programming