Week 5 Class 9 Tue Feb 13 Posted: Feb 13
After Class
Exercise 29: TRACE
Enabling the TRACE may cause code to be compiled that breaks the build.
One problem may be that std::setw
in TRACE in xml_parser.cpp is not declared. This is due to a missing include file,
iomanip
in xml_parser. So include it and see if that fixes the problem.
The other potential problem is the lack of qName
or prefix
or localName
where the TRACE is called. This is mostly
due to not making that data available, e.g., in the main program.
If you cannot get this working, for now you can build and run the code from before tag v1d. For now:
git checkout v1c
cmake . -DTRACE=ON
git checkout main
cmake . -DTRACE=OFF
v1b
Announcements
Agenda
Notes: Method Naming Standards
We will follow these naming standards in this course.
Demonstrate the running of your program with TRACE on for:
You will have to create the srcML for each of these. Use the srcML Playground. Keep the examples as short as possible (i.e., only include a comment). Download these files and have them ready before you start the screencast. Also before the screencast, build with the TRACE option on.
The form to submit the asciinema link is in the title of this exercise.
To make the output cleaner, redirect the generate table to a file ./srcfacts < FILENAME > report.md
Unless otherwise noted, exercises are due by 4:30 pm on Wed Feb 14