Question: 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

Hey i need help so i'm getting this error messages in mycode and i don't know what to do....if you can help merecode it that will be graet. Below is an image of theerror messages and the text code and the header file which will

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!