Find Jobs
Hire Freelancers

C++ Assignment

$30-250 USD

Completed
Posted over 9 years ago

$30-250 USD

Paid on delivery
This project builds directly off of an older project that is provided. The older assignment parses the element names in an XML file. This assignment creates Element objects for each of them, and detects where XML elements begin and end, you are to extend your Element class so that it includes a vector of its own that holds all of that element’s children. The structure will “sort of” be recursive. I say “sort of” because it does not necessarily have to be recursive in the true sense of the word, but Element objects will contain structures that consist of other Element objects, or at least pointers to them. Note that this type of structure is what allows menus to have submenus in graphical user interfaces. The second part of this assignment *requires* you to document your code using Javadoc and to process it with Doxygen. We will cover the issues and procedures required to accomplish this in class. WHAT TO DO FOR THIS ASSIGNMENT: 1) Expand your Element class to include a data structure that can hold a list of pointers to other Element objects. This list will be used to hold the element’s children. 2) Further expand your Element class to include a data structure that will hold attribute names and their corresponding values. The best way to do this is to create a Attribute class, and then treat attributes as children of the element on which they are found. 3) Modify the program you wrote for Assignment No. 3 to create a tree of Element objects and their attributes as it parses your XML file. The tree must accurately represent the structure of your XML file, with each element containing a list of pointers to its children. 4) Take a look at the partial, samply output result supplied for this assignment and make sure you understand what it shows. 5) Write a function to display the XML structure you found after you have finished building it. This function should do indenting or use some other technique to clearly show the hierarchal structure of your XML file. Explore the use of stream manipulators to do this. These are very useful for formatting output. Output stream manipulators are covered in sections 15.6 and 15.7 of C++ How To Program by Deitel & Deitel (8th edition), pages 606-620. They are also covered at [login to view URL] and [login to view URL] 6) As you develop your program, write all your documentation using the Javadoc standard. In addition, go back and convert all the documentation you wrote for the parts of your program that you are reusing from previous assignments to the Javadoc standard. This is not difficult if you are skilled in using NetBeans’s built-in editor. Remember the trick of opening a blank line immediately above each function definition and then typing /** and pressing the Enter key to have NetBeans generate the Javadoc documentation block for you, including entries for all of your parameters and return type. For example: /** * * @param strLine * @param strElementName * @param strContent * @param nStartPos * @param nEndPos * @param currentState * @return */ ParserState GetXMLData( string strLine, string& strElementName, string& strContent, int nStartPos, int& nEndPos, ParserState currentState ) { ... Then all you have to do is to write the general documentation for the function just after the /**, complete each @param line by stating how each parameter is used, and complete the @return line by stating what the function returns. 7) Generate the documentation for your project using Doxygen and store that in a Doxygen subfolder of your main project folder. Important Note: *ALL* classes and class data and method members (class variables and functions) must be documented using Doxygen and show up on the HTML page generated by Doxygen. A partial sample of one possible output is also attached.
Project ID: 6680628

About the project

2 proposals
Remote project
Active 10 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
I am very proficient in c, c++. I have 15 years c++ developing experience now, and I have worked for 5 years. My work is online game developing, and mainly focus on server side, the language is c++ under linux. I used c++ to make many great projects, for example, I made the tools which can convert java files to c++ scripts which has the same effect, of course garbage collection included. I also made our own mobile game using c++, I even can show you the demo of client. Trust me, please let expert help you.
$147 USD in 2 days
4.7 (26 reviews)
5.2
5.2
2 freelancers are bidding on average $151 USD for this job
User Avatar
Hello! I am a computer science student and I can help you out with your work. I am skilled in C/C++ and if you want good work, you can contact me. I can also lower the bid.
$155 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Lowell, United States
5.0
2
Payment method verified
Member since Oct 22, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.