Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hey i need help so i'm getting this error messages in my code and i don't know what to do....if you can help me recode

Hey i need help so i'm getting this error messages in my code and i don't know what to do....if you can help me recode it that will be graet. Below is an image of the error messages and the text code and the header file which will guide on what i was implementing on the code.....Thanks

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
bool isSupportedFormat (std: : string format) std: :vectorstd: :string isSupportedFormats={"GLL", "WPL", "RMC", "GGA"}; Ono member named 'vectorstd' in namespace 'std' return std: : find (isSupportedFormats. begin(), isSupportedFormats. end(), format) !=isSupportedFormats. end() ; 7 bool isValidSentenceFormat (std: : string sentence) if ( sentence. length() splitSentenceIntoFields (std: :string sentence) ; // Check if the sentence has the correct number of fields if ( !hasCorrectNumberOfFields (Fields) ) Ouse of undeclared identifier 'Fields' f // Return an empty SentenceData object if the sentence does not have the correct number of fields return SentenceData () ; // Extract the data from the fields and create a SentenceData object std: :string sentenceType = getSentenceType (fields[0]) ; Ouse of undeclared identifier 'fields' std: : vector parseValidSentences(std: : istream &stream) std: : vector positions; // Loop over all lines in the input stream std: :string line; while (std: : getline(stream, line)) // Attempt to parse the line as an NMEA sentence SentenceData sentenceData = parseSingleSentence(line) ; // Check if the sentence is valid if (sentenceData . isValid()) Ono member named 'isValid' in 'GPS: : NMEA: : SentenceData' // Interpret the sentence data and create a Position object Position position = interpretSentenceData(sentenceData) ; // Add the Position object to the vector of positions positions. push_back(position) ; 7 F return positions; O expected ' ]'. complete, but poor quality, implementations for QUESTION 'isSingleSentence()' and 'interpretSentence- Seven functions are declared in 'headersmea- Data()'; parser.h', named: . stub definitions for the remaining five functions. . isSupportedFormat() You are tasked with: . isSingleSentence() 1. refactoring the definitions of 'isSingleSen- . hasCorrectChecksum() tence()' and 'interpretSentenceData()'; parseSingleSentence() 2. developing high-quality implementations for the . hasCorrectNumberOfFields() five stub functions. . interpretSentenceData() . parseValidSentences() The required functionality of these functions is spec- ified by comments in the header file. Most of the functions are independent units that perform a sub-task in isolation, except for 'parse- ValidSentences()' which integrates all of the func- End of document tions together to perform the entire task of parsing and interpreting an entire log of NMEA data. The 'source codemea-parser.cpp' file currently contains

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Android 4 Application Development

Authors: Reto Meier

3rd Edition

1118223853, 9781118223857

More Books

Students also viewed these Programming questions