Table of contents
1.
Introduction
2.
Cinder
3.
Doxygen
4.
Doxywizard
5.
Building Cinder Docs
5.1.
Step 1: Doxygen Export
5.2.
Step 2: Docs HTML File Creation
5.3.
Step 3: View Documents Locally
6.
Frequently Asked Questions  
6.1.
What is doxygen used for in C++?
6.2.
What is Cinder?
6.3.
Can doxygen be used for Python?
6.4.
How do I add doxygen comments in C++?
7.
Conclusion
Last Updated: Mar 27, 2024

Building Cinder Docs

Author Ayeesha
0 upvote
Career growth poll
Do you think IIT Guwahati certified course can help you in your career?

Introduction

This blog discusses Cinder and how to build Cinder documents using Doxygen with the help of Doxywizard. Let's get started.

Binding cinder docs

Cinder

Cinder is a C++ library that enables programming with an aesthetic goal—the work called "creative coding." This covers areas such as computational geometry, audio, and video. Cinder is cross-platform and offers official iOS, UWP, Windows, and Linux support.

Cinder

Cinder is a robust and production-tested technology that can serve as a professional's primary tool while still being appropriate for education and experimentation.

The 2-Clause BSD License governs Cinder's release.

 GitHub is used to build Cinder, and its forums are the leading platform for debate. You may contribute code, report issues, and seek help through these two channels.

Andrew Bell is the originator and current principal architect of Cinder. A large chunk of Cinder's code was created in collaboration with Hai Nguyen, who continues to oversee the project alongside Rich Eakin and Paul Houx, and a large, expanding user base worldwide.

Although it also supports other well-known programming languages, including C, C#, Objective-C, PHP, Python, Java, IDL (Corba, Microsoft, and UNO/OpenOffice versions), Fortran, and to a lesser degree, D, Doxygen is the de facto standard tool for creating documentation from annotated C++ sources. VHDL, a language for describing hardware, is also supported by Doxygen. 

Doxygen

Doxygen can help you in three ways:

Doxygen logo

  1. It may create an offline reference manual (Latex) or an online document browser (in HTML) from a collection of source files that have been documented. Creating outputs in RTF (MS Word), PostScript, hyperlinked PDF, compressed HTML, and Unix man pages are also supported. Since the documentation is taken straight from the sources, maintaining consistency between the documentation and the source code is significantly more straightforward.  
     
  2. Doxygen may be set up to extract the code organization from undocumented source files. This makes it extremely easy to navigate significant source distributions. Doxygen also uses automatically created dependency graphs, inheritance diagrams, and cooperation diagrams to show the relationships between different pieces.  
     
  3. Doxygen may also be used to create standard documentation.
     

Doxygen is developed for Mac OS X and Linux but is set up to be highly portable. As a result, it runs on most other Unix flavors as well. Furthermore, executables for Windows are available. 

Doxywizard

The GUI front-end for setting up and operating Doxygen is called Doxywizard.

Doxywizard can be started by specifying a preexisting configuration file to be used as input; otherwise, the default settings will be used.

The primary window will appear when you launch Doxywizard.

Building Cinder Docs

You may access local documentation in the included Cinder source files. The online version is available here. If you copy the Cinder GitHub repository, the documentation must be produced in your locally cloned repo. This involves three steps.  

Step 1: Doxygen Export

Cinder produces documentation from cinder docs source files in part using Doxygen. Doxywizard may be used to create the tag file and Doxygen output. The most recent version of Cinder utilizes Doxywizard 1.8.10. Doxywizard may be downloaded from here.

  • Start Doxywizard
  • File | Open... on the menu will open the docs/doxygen/Doxyfile.
  • Choose the "Run" tab
  • To start Doxygen, use the "Run" button.
     

This phase creates an XML file directory and Cinder.tag file.

Step 2: Docs HTML File Creation

The documentation is produced in the next step using freshly produced Doxygen output. To execute it, you must have Python 2.7.x installed.

  • Launch your preferred command line.
  • cd docs
  • generateDocs.py in Python
     

The Cinder/docs/html directory becomes home to HTML pages created by this procedure. You can create a GitHub bug if your Python file generates a mistake that leaves the documentation incomplete.

Step 3: View Documents Locally

To see the files, use Python's SimpleHTTPServer:

  • Launch the command line of your choice.
  • cd html
  • python -m SimpleHTTPServer 8000
  • Visit http://localhost:8000

Frequently Asked Questions  

What is doxygen used for in C++?

Doxygen is a tool that can generate project documentation in html, pdf, or Latex from code comments formatted with Doxygen markup syntax. The generated documentation makes navigating and understanding the code more straightforward, as it may contain all public functions, classes, namespaces, enumerations, side notes, and code examples.

What is Cinder?

An open-source library called Cinder was created to enhance the C++ language's capability for sophisticated visualization.

Can doxygen be used for Python?

Doxygen may document various languages, including C, Objective-C, C#, PHP, Java, Python, and more; however, it is mainly used to describe C++.

How do I add doxygen comments in C++?

Once a function has been provided, you may create a comment stub by putting the appropriate "///" or "/**" above it or by using the shortcut (Ctrl+/).

Conclusion

This blog discusses Cinder and how to build Cinder documents using Doxygen with the help of Doxywizard. If you think this blog has helped you enhance your knowledge of the above question or want to learn more, check out our articles. Visit our website to read more such blogs. 

  1. Introduction To C++
  2. Data Types in C++
  3. Cinder + Git
  4. Cinder: Windows Setup
     

For placement preparations, you must look at the problemsinterview experiences, and interview bundles. Enroll in our courses and refer to the mock tests and problems available; look at the Problem Sheets interview experiences, and interview bundle for placement preparations. You can also book an interview session with us.  

Consider our paid courses, however, to give your career a competitive advantage!

Happy Coding!

Live masterclass