CS282.  Doxygen is a documentation generator for ◦ C++, C, C#, Java, Objective-C, Python, PHP, …  Doxygen will document your code according to the “tags”

Slides:



Advertisements
Similar presentations
 Please sit next to your partner.  If you don’t have a partner, please find one now.
Advertisements

Downloading, Installing, and Working with Dropbox.
1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
XP Information Technology Center - KFUPM1 Microsoft Office FrontPage 2003 Creating a Web Site.
George Blank University Lecturer. Creating A Web Site at NJIT Professor Blank.
Object-Oriented Enterprise Application Development Javadoc Last Updated: 06/30/2001.
CIS101 Introduction to Computing Week 05. Agenda Your questions CIS101 Survey Introduction to the Internet & HTML Online HTML Resources Using the HTML.
CIS101 Introduction to Computing
Creating and Publishing Your own website
Agenda – Week 5, Day 2 Complete RoboHelp Tutorial Transition to HTML Tutorial –Warm-up – Explore HTML –Page Design – Create a page –Publishing – Make your.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 21: Publishing Your Pages on the Web.
Doxygen: Source Code Documentation Generator John Tully.
So – You want to learn how to put an advanced article submission (cut and paste) onto the state website. (Note: If you have not done so, you will need.
The basics of the Online Portal
INTRODUCTION TO DREAMWEAVER 8. What we already know…  Design basics  Contrast  Repetition  Alignment  Repetition  HTML.
Website Development & Management Getting to Know HTML Better CIT Fall Instructor: John Seydel, Ph.D.
Let’s Make An Form! Bonney Armstrong GD 444 Westwood College February 9, 2005.
Tutorial 1 Getting Started with Adobe Dreamweaver CS3
So – You want to learn how to put an article onto the state website. (Note: If you have not done so, you will need to review the web training provided.
XP New Perspectives on Browser and Basics Tutorial 1 1 Browser and Basics Tutorial 1.
Javadoc. The Plan ● What is Javadoc? ● Writing Javadoc comments ● Using the Javadoc tool ● Demo ● Practice.
1 Doxygen National University of Kaohsiung Department of Applied Mathematics Yu-Kai Hong, Chien-Hsiang Liu, Wei-Ren Chang February, 2008.
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
Text. DO NOW Login to your computer. Go to your Google Docs document for DONOW, put todays date below where you finished last time. Make a list in order.
So – You want to learn how to put a BLOG article onto the state website. (Note: If you have not done so, you will need to review the web training provided.
The Basics of Javadoc Presented By: Wes Toland. Outline  Overview  Background  Environment  Features Javadoc Comment Format Javadoc Program HTML API.
Instructor: Mike Panitz HTML, Continued.
A brief introduction to javadoc and doxygen Cont’d.
Go to your school’s web locker site school name.schoolweblockers.com) Your user name is the first letter of your first name, the first 4.
Forms and Server Side Includes. What are Forms? Forms are used to get user input We’ve all used them before. For example, ever had to sign up for courses.
HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.
Javadoc: Advanced Features & Limitations Presented By: Wes Toland.
Creating a Web Site Using 000webhost.com The 000webhost.com Site You will be required to create an account in order to use their host computer 000webhost.com.
Publishing Your Web Pages Ann Emmanuel SIUE Web Administrator
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
What is a port The Ports Collection is essentially a set of Makefiles, patches, and description files placed in /usr/ports. The port includes instructions.
Setting Up your Hosting Account and Installing WordPress and Omeka CCC America Advanced Omeka Training.
Evaluating & Maintaining a Site Domain 6. Conduct Technical Tests Dreamweaver provides many tools to assist in finalizing and testing your website for.
Javadoc. Purpose of javadoc javadoc is a program that reads your Java program and produces great-looking documentation in HTML format Without any help,
CSE IntroductiontoDoxygen. Contents Introduction Main Steps for creating documentation Examples.
July Doxygen A Code Documentation System Doxygen generates documentation directly from the structure and comments in the code –Browsable HTML documentation.
Doxygen Documentation
So – You want to learn how to put an article onto the state website. (Note: If you have not done so, you will need to review the web training provided.
Practical Kinetics Exercise 0: Getting Started Objectives: 1.Install Python and IPython Notebook 2.print “Hello World!”
+ Publishing Your First Post USING WORDPRESS. + A CMS (content management system) is an application that allows you to publish, edit, modify, organize,
PHP Form Processing * referenced from
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
Here are some things you can do while you wait 1.Open your omeka.net site in your browser (e.g. 2.Open.
Today Javadoc. Packages and static import. Viewing API source code. Upcoming Topics: –protected access modifier –Using the debugger in Eclipse –JUnit testing.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
Installing a Moodle Test Site The painless and easy way.
Instructional Design Center Editing Files Using Google Docs.
How to use Drupal Awdhesh Kumar (Team Leader) Presentation Topic.
1 Doxygen. 2 Doxygen: What is it ? ● A documentation generator – for C++, C, Java, Objective-C, Python, IDL (Corba and Microsoft flavors), Fortran, VHDL,
Problem Solving With C++ Doxygen Oct/Nov Introduction Doxygen is a documentation generator, a tool for writing software reference documentation.
Automatic Documentation Systems
CSE 103 Day 20 Jo is out today; I’m Carl
Doxygen.
Documentation Generators
You’ve created an e-Learning resource...
Doxygen Documentation
Introduction to javadoc
Configuring Internet-related services
Class Commenting Doxygen for Classes.
Comments, Prototypes, Headers & Multiple Source Files
Introduction to javadoc
CSCE 206 Lab Structured Programming in C
Lab 1: D3 Setup John Fallon
File Transfer Protocol
Presentation transcript:

CS282

 Doxygen is a documentation generator for ◦ C++, C, C#, Java, Objective-C, Python, PHP, …  Doxygen will document your code according to the “tags” you specify  It can also document things that you haven’t really documented yet!

 You specify options in a configuration file ◦ This file is generated by running doxygen, and is fairly well commented.  Then, inside your source code, you specify “tags” (keywords) which tells Doxygen what kind of documentation you are doing  Finally, you run doxygen, and your html files are automatically generated!

 Creating a Doxygen configuration file ◦ Editing options in a Doxygen configuration file  Uploading files to your CSE account  Understanding the structure of Doxygen  Documenting your very own class using ◦ Accessing your documentation online ◦ Utilizing common and important tags

 Doxygen is already installed on the CSE servers, so we do not have to worry about it ◦ If you want to install on your home computers, there are instructions online (aptitude-get, port, etc.)  First of all, let’s download this week’s framework (available on the class site) ◦ It is basically last week’s completed version, with an additional class.

 Since the ECC does not have Doxygen, we will need to work on the CSE servers.  Log onto your CSE account ◦ cd ~/public_html ◦ Create a directory called “CS282_Doxygen”  This time we have provided you a configuration file inside the framework called “doxyfile” ◦ This configuration file allows you to specify options and tell Doxygen how you want it to format things

 Let’s move our framework over to the CSE server ◦ On the ECC side(all one line):  scp –r YourLabFolder /Lab_4  Now on the CSE side… ◦ Go into ~/CS282_Doxygen/Lab_4 ◦ run the command “doxygen doxyfile” ◦ This creates a folder called “doxygen” inside ◦ In order to give Doxygen access to all the packages it needs, you may need to log into in order to run the above  Congratulations! You’ve created the base directory for your first Doxygen project

 Open up a web browser ◦ Navigate to your Doxygen documentation ◦ CS282_Doxygen/Lab_4/doxygen/html/ CS282_Doxygen/Lab_4/doxygen/html/  Take a look around ◦ In particular, navigate to the clock class and examine it. (under the classes tab) ◦ Also, look at rigid_body.h (under files tab)  Notice the dependency graph  Notice the difference in its documentation compared to the other classes.

 Finally, let’s take a look at a major project that uses Doxygen documentation  Navigate to ◦ penSceneGraphReferenceDocs/a00026.html penSceneGraphReferenceDocs/a00026.html  Your project will be using Doxygen documentation. Although it will probably have not nearly as many things as OSG does.

 At the beginning of every file, you must have a comment code block like @author, are all tags

 Tags allow your way of telling Doxygen how you want it to document your text specifies that name of your file specifies a brief description of your file specifies the author of the file specifies the date of the file specifies what the function is returning specifies the parameters of a function  can be chained (i.e. line after line) for multiple param.  There are many others, but these are most of the ones we will focus on for today.

 For each function, you should have…

 Document the rigid_body class(On the ECC computer) ◦ (ignore the vector class for now)  First, delete the source code in the CSE server ◦ rm –rf ~/public_html/CS282_Doxygen/Lab_4  Please document the following using the tags specified below (at the very least) ◦ Beginning of the file (.cpp @brief ◦ Beginning of each function @return

 When you are finished documenting, copy your source over to the CSE server. (Again, all one line) ◦ scp –r YourLabFolder 2_Doxygen/Lab_4  Run doxygen on this folder inside CSE ◦ doxygen doxyfile (assuming you’re in your source)  Call me over when you’re done and it is on your website, or if you need help with anything.

 Unfortunately, because the ECC does not have Doxygen (yet), we have to do this copying between our local and remote hosts.  If you have doxygen installed on your local host, you would only have to run doxygen on the local host and then copy your html folder into your web server’s public_html  And thus avoid moving your source code over as well.

 Let’s examine inline documentation now ◦ Example:  int example_number; ///< An integer number ◦ Or,  /* This is also an inline example */ ◦ When using inline doc, be careful its placement ◦ There are many other ways to document inline – if you are interested, Google awaits!  Now let’s document rigid_body.h using inline documentation.

 Once you are finished document rigid_body.h ◦ Take a look at sphere.h  You will notice it inherits from rigid_body ◦ This relationship is detected by Doxygen ◦ It is visually represented (if the flag is set in the configuration file) as a graph of dependencies  Copy your code over to the CSE server and run Doxygen (like in the last 2 exercises, don’t forget to delete), and show me the final result

 1) Create a doxygen configuration file ◦ Go to your source code directory, and type in  doxygen –g doxyfile  2) Edit the configuration file options ◦ Heavily commented, so you can look through it at your own discretion. Common tags to edit are:  EXTRACT_ALL = YES (around line 301)  INLINE_SOURCE = YES (around line 705)  HAVE_DOT = YES (around line 1463)  CALL_GRAPH = YES (around line 1546)  GENERATE_LATEX = NO (around line ?)

 3) Document your code with Doxygen tags  4) Run the command “doxygen doxyfile” ◦ This will create a folder called “html” in your source directory (or wherever you put your config file)  5) Copy this doxygen folder into your CSE account’s (or your webserver if you have one) “public_html/CS282_Doxygen/[project_name]” folder  6) Access your documentation online ◦ CS282_Doxygen/YourProjectNameHere/doxygen/html/ CS282_Doxygen/YourProjectNameHere/doxygen/html/