Adding Doxygen generation. Add doxygen \cond logic to exclude 3rd party headers from being indexed and documented

This commit is contained in:
Travis Hunter 2023-04-22 12:39:20 -06:00
parent 46ca52ff7e
commit de17126ae3
48 changed files with 336 additions and 82 deletions

View File

@ -973,7 +973,9 @@ RECURSIVE = YES
# Note that relative paths are relative to the directory from which doxygen is # Note that relative paths are relative to the directory from which doxygen is
# run. # run.
EXCLUDE = docs EXCLUDE = docs \
gui/qcustomplot.h \
gui/qcustomplot.cpp
# The EXCLUDE_SYMLINKS tag can be used to select whether or not files or # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or
# directories that are symbolic links (a Unix file system feature) are excluded # directories that are symbolic links (a Unix file system feature) are excluded

View File

@ -1,12 +1,18 @@
#include "QtRocket.h"
#include "gui/MainWindow.h"
/// \cond
// C headers
// C++ headers
#include <thread>
// 3rd party headers
#include <QApplication> #include <QApplication>
#include <QLocale> #include <QLocale>
#include <QTranslator> #include <QTranslator>
/// \endcond
#include <thread> // qtrocket headers
#include "QtRocket.h"
#include "gui/MainWindow.h"
#include "sim/ConstantAtmosphere.h" #include "sim/ConstantAtmosphere.h"
#include "sim/ConstantGravityModel.h" #include "sim/ConstantGravityModel.h"

View File

@ -1,17 +1,22 @@
#ifndef QTROCKET_H #ifndef QTROCKET_H
#define QTROCKET_H #define QTROCKET_H
/// \cond
// C headers
// C++ headers
#include <atomic>
#include <memory> #include <memory>
#include <mutex> #include <mutex>
#include <atomic>
#include "utils/Logger.h" // 3rd party headers
/// \endcond
// qtrocket headers
#include "model/MotorModel.h"
#include "model/Rocket.h" #include "model/Rocket.h"
#include "sim/AtmosphericModel.h" #include "sim/AtmosphericModel.h"
#include "sim/GravityModel.h" #include "sim/GravityModel.h"
#include "utils/Logger.h"
#include "model/MotorModel.h"
/** /**
* @brief The QtRocket class is the master controller for the QtRocket application. * @brief The QtRocket class is the master controller for the QtRocket application.

View File

@ -1,4 +1,5 @@
#include "AboutWindow.h" #include "AboutWindow.h"
#include "ui_AboutWindow.h" #include "ui_AboutWindow.h"
AboutWindow::AboutWindow(QWidget *parent) : AboutWindow::AboutWindow(QWidget *parent) :

View File

@ -1,7 +1,14 @@
#ifndef ABOUTWINDOW_H #ifndef ABOUTWINDOW_H
#define ABOUTWINDOW_H #define ABOUTWINDOW_H
/// \cond
// C headers
// C++ headers
// 3rd party headers
#include <QDialog> #include <QDialog>
/// \endcond
// qtrocket headers
namespace Ui { namespace Ui {
class AboutWindow; class AboutWindow;

View File

@ -1,7 +1,15 @@
#ifndef ANALYSISWINDOW_H #ifndef ANALYSISWINDOW_H
#define ANALYSISWINDOW_H #define ANALYSISWINDOW_H
/// \cond
// C
// C++
// 3rd party
#include <QDialog> #include <QDialog>
/// \endcond
// qtrocket headers
namespace Ui { namespace Ui {
class AnalysisWindow; class AnalysisWindow;

View File

@ -1,19 +1,28 @@
#include "gui/MainWindow.h"
#include "ui_MainWindow.h"
#include "gui/AboutWindow.h"
#include "gui/AnalysisWindow.h"
#include "gui/ThrustCurveMotorSelector.h"
#include "sim/RK4Solver.h" /// \cond
#include "model/Rocket.h" // C headers
// C++ headers
#include "utils/RSEDatabaseLoader.h" #include <cmath>
#include <iostream>
#include <memory>
// 3rd party headers
#include <QFileDialog> #include <QFileDialog>
#include <memory> /// \endcond
#include <iostream>
#include <cmath>
// qtrocket headers
#include "ui_MainWindow.h"
#include "gui/AboutWindow.h"
#include "gui/AnalysisWindow.h"
#include "gui/MainWindow.h"
#include "gui/ThrustCurveMotorSelector.h"
#include "model/Rocket.h"
#include "utils/RSEDatabaseLoader.h"
MainWindow::MainWindow(QtRocket* _qtRocket, QWidget *parent) MainWindow::MainWindow(QtRocket* _qtRocket, QWidget *parent)
: QMainWindow(parent), : QMainWindow(parent),

View File

@ -1,8 +1,14 @@
#ifndef MAINWINDOW_H #ifndef MAINWINDOW_H
#define MAINWINDOW_H #define MAINWINDOW_H
/// \cond
// C headers
// C++ headers
// 3rd Party headers
#include <QMainWindow> #include <QMainWindow>
/// \endcond
// qtrocket headers
#include "QtRocket.h" #include "QtRocket.h"

View File

@ -1,7 +1,14 @@
#ifndef ROCKETTREEVIEW_H #ifndef ROCKETTREEVIEW_H
#define ROCKETTREEVIEW_H #define ROCKETTREEVIEW_H
/// \cond
// C headers
// C++ headers
// 3rd party headers
#include <QTreeView> #include <QTreeView>
/// \endcond
// qtrocket headers
/** /**
* @brief RocketTreeView basically just renames QTreeView with a specific * @brief RocketTreeView basically just renames QTreeView with a specific

View File

@ -1,3 +1,5 @@
// qtrocket headers
#include "ThrustCurveMotorSelector.h" #include "ThrustCurveMotorSelector.h"
#include "ui_ThrustCurveMotorSelector.h" #include "ui_ThrustCurveMotorSelector.h"

View File

@ -1,10 +1,16 @@
#ifndef THRUSTCURVEMOTORSELECTOR_H #ifndef THRUSTCURVEMOTORSELECTOR_H
#define THRUSTCURVEMOTORSELECTOR_H #define THRUSTCURVEMOTORSELECTOR_H
#include <QDialog> /// \cond
// C headers
// C++ headers
#include <memory> #include <memory>
// 3rd party headers
#include <QDialog>
/// \endcond
// qtrocket headers
#include "utils/ThrustCurveAPI.h" #include "utils/ThrustCurveAPI.h"
namespace Ui { namespace Ui {

View File

@ -1,3 +1,11 @@
/// \cond
// C headers
// C++ headers
// 3rd party headers
/// \endcond
#include "QtRocket.h" #include "QtRocket.h"
#include "utils/Logger.h" #include "utils/Logger.h"

View File

@ -1,13 +1,19 @@
#ifndef MODEL_MOTORMODEL_H #ifndef MODEL_MOTORMODEL_H
#define MODEL_MOTORMODEL_H #define MODEL_MOTORMODEL_H
/// \cond
// C headers
// C++ headers
#include <string>
// 3rd party headers
// For boost serialization. We're using boost::serialize to save // For boost serialization. We're using boost::serialize to save
// and load Motor data to file // and load Motor data to file
#include <boost/archive/text_iarchive.hpp> #include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp> #include <boost/archive/text_oarchive.hpp>
/// \endcond
#include <string> // qtrocke theaders
#include "Thrustcurve.h" #include "Thrustcurve.h"
class MotorModel class MotorModel

View File

@ -1,11 +1,18 @@
#ifndef ROCKET_H #ifndef ROCKET_H
#define ROCKET_H #define ROCKET_H
#include "sim/Propagator.h" /// \cond
#include "model/Thrustcurve.h" // C headers
// C++ headers
#include <utility> // std::move
#include <memory> #include <memory>
#include <utility> // std::move
// 3rd party headers
/// \endcond
// qtrocket headers
#include "model/Thrustcurve.h"
#include "sim/Propagator.h"
class Rocket class Rocket
{ {

View File

@ -1,6 +1,14 @@
/// \cond
// C headers
// C++ headers
#include <algorithm>
// 3rd party headers
/// \endcond
#include "Thrustcurve.h" #include "Thrustcurve.h"
#include <algorithm>
Thrustcurve::Thrustcurve(std::vector<std::pair<double, double>>& tc) Thrustcurve::Thrustcurve(std::vector<std::pair<double, double>>& tc)
: thrustCurve(tc), : thrustCurve(tc),

View File

@ -1,11 +1,15 @@
#ifndef MODEL_THRUSTCURVE_H #ifndef MODEL_THRUSTCURVE_H
#define MODEL_THRUSTCURVE_H #define MODEL_THRUSTCURVE_H
/// \cond
// C headers
// C++ headers
#include <vector> #include <vector>
#include <tuple>
// 3rd party headers
#include <boost/archive/text_iarchive.hpp> #include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp> #include <boost/archive/text_oarchive.hpp>
/// \endcond
class Thrustcurve class Thrustcurve
{ {

View File

@ -1,6 +1,7 @@
#ifndef SIM_CONSTANTATMOSPHERE_H #ifndef SIM_CONSTANTATMOSPHERE_H
#define SIM_CONSTANTATMOSPHERE_H #define SIM_CONSTANTATMOSPHERE_H
// qtrocket headers
#include "AtmosphericModel.h" #include "AtmosphericModel.h"
namespace sim { namespace sim {

View File

@ -1,7 +1,8 @@
#ifndef SIM_CONSTANTGRAVITYMODEL_H #ifndef SIM_CONSTANTGRAVITYMODEL_H
#define SIM_CONSTANTGRAVITYMODEL_H #define SIM_CONSTANTGRAVITYMODEL_H
#include "GravityModel.h" // qtrocket headers
#include "sim/GravityModel.h"
#include "utils/Triplet.h" #include "utils/Triplet.h"
namespace sim { namespace sim {

View File

@ -1,8 +1,14 @@
#ifndef SIM_DESOLVER_H #ifndef SIM_DESOLVER_H
#define SIM_DESOLVER_H #define SIM_DESOLVER_H
/// \cond
// C headers
// C++ headers
#include <vector> #include <vector>
// 3rd party headers
/// \endcond
namespace sim namespace sim
{ {

View File

@ -1,6 +1,7 @@
#ifndef SIM_GRAVITYMODEL_H #ifndef SIM_GRAVITYMODEL_H
#define SIM_GRAVITYMODEL_H #define SIM_GRAVITYMODEL_H
// qtrocket headers
#include "utils/Triplet.h" #include "utils/Triplet.h"
namespace sim namespace sim

View File

@ -1,14 +1,23 @@
/// \cond
// C headers
// C++ headers
#include <chrono>
#include <iostream> #include <iostream>
#include <sstream>
#include <utility>
// 3rd party headers
/// \endcond
// qtrocket headers
#include "Propagator.h" #include "Propagator.h"
#include "sim/RK4Solver.h"
#include "model/Rocket.h"
#include "utils/Logger.h"
#include "QtRocket.h" #include "QtRocket.h"
#include "model/Rocket.h"
#include "sim/RK4Solver.h"
#include "utils/Logger.h"
#include <utility>
#include <chrono>
#include <sstream>
namespace sim { namespace sim {

View File

@ -1,11 +1,19 @@
#ifndef SIM_PROPAGATOR_H #ifndef SIM_PROPAGATOR_H
#define SIM_PROPAGATOR_H #define SIM_PROPAGATOR_H
#include "sim/DESolver.h" /// \cond
// C headers
// C++ headers
#include <memory> #include <memory>
#include <vector> #include <vector>
// 3rd party headers
/// \endcond
// qtrocket headers
#include "sim/DESolver.h"
// Forward declare // Forward declare
class Rocket; class Rocket;
class QtRocket; class QtRocket;

View File

@ -1,13 +1,21 @@
#ifndef SIM_RK4SOLVER_H #ifndef SIM_RK4SOLVER_H
#define SIM_RK4SOLVER_H #define SIM_RK4SOLVER_H
#include <functional> /// \cond
#include <vector> // C headers
#include <limits> // C++ headers
#include <cmath> #include <cmath>
#include <functional>
#include <limits>
#include <vector>
#include "utils/Logger.h" // 3rd party headers
/// \endcond
// qtrocket headers
#include "sim/DESolver.h" #include "sim/DESolver.h"
#include "utils/Logger.h"
namespace sim { namespace sim {

View File

@ -1,4 +1,6 @@
#include "SphericalGeoidModel.h"
// qtrocket headers
#include "sim/SphericalGeoidModel.h"
#include "utils/math/Constants.h" #include "utils/math/Constants.h"
namespace sim namespace sim

View File

@ -1,6 +1,7 @@
#ifndef SIM_SPHERICALGEOIDMODEL_H #ifndef SIM_SPHERICALGEOIDMODEL_H
#define SIM_SPHERICALGEOIDMODEL_H #define SIM_SPHERICALGEOIDMODEL_H
// qtrocket headers
#include "GeoidModel.h" #include "GeoidModel.h"
namespace sim namespace sim

View File

@ -1,8 +1,16 @@
#include "SphericalGravityModel.h"
/// \cond
// C headers
// C++ headers
#include <cmath>
// 3rd party headers
/// \endcond
// qtrocket headers
#include "sim/SphericalGravityModel.h"
#include "utils/math/Constants.h" #include "utils/math/Constants.h"
#include <cmath>
namespace sim namespace sim
{ {

View File

@ -1,6 +1,7 @@
#ifndef SIM_SPHERICALGRAVITYMODEL_H #ifndef SIM_SPHERICALGRAVITYMODEL_H
#define SIM_SPHERICALGRAVITYMODEL_H #define SIM_SPHERICALGRAVITYMODEL_H
// qtrocket headers
#include "GravityModel.h" #include "GravityModel.h"
namespace sim namespace sim

View File

@ -1,6 +1,7 @@
#ifndef STATEDATA_H #ifndef STATEDATA_H
#define STATEDATA_H #define STATEDATA_H
// qtrocket headers
#include "utils/math/Vector3.h" #include "utils/math/Vector3.h"
#include "utils/math/Quaternion.h" #include "utils/math/Quaternion.h"

View File

@ -1,8 +1,16 @@
#include "USStandardAtmosphere.h"
#include "utils/math/Constants.h" /// \cond
// C headers
// C++ headers
#include <cmath> #include <cmath>
// 3rd party headers
/// \endcond
// qtrocket headers
#include "sim/USStandardAtmosphere.h"
#include "utils/math/Constants.h"
using namespace utils::math; using namespace utils::math;
namespace sim namespace sim

View File

@ -1,7 +1,8 @@
#ifndef SIM_USSTANDARDATMOSPHERE_H #ifndef SIM_USSTANDARDATMOSPHERE_H
#define SIM_USSTANDARDATMOSPHERE_H #define SIM_USSTANDARDATMOSPHERE_H
#include "AtmosphericModel.h" // qtrocket headers
#include "sim/AtmosphericModel.h"
#include "utils/BinMap.h" #include "utils/BinMap.h"
namespace sim namespace sim

View File

@ -1,3 +1,5 @@
// qtrocket headers
#include "WindModel.h" #include "WindModel.h"
namespace sim namespace sim

View File

@ -1,6 +1,7 @@
#ifndef SIM_WINDMODEL_H #ifndef SIM_WINDMODEL_H
#define SIM_WINDMODEL_H #define SIM_WINDMODEL_H
// qtrocket headers
#include "utils/Triplet.h" #include "utils/Triplet.h"
namespace sim namespace sim

View File

@ -1,11 +1,17 @@
#include "BinMap.h"
/// \cond
// C headers
// C++ headers
#include <algorithm> #include <algorithm>
#include <stdexcept>
#include <sstream> #include <sstream>
#include <stdexcept>
// 3rd party headers
#include <fmt/core.h> #include <fmt/core.h>
/// \endcond
// qtrocket headers
#include "BinMap.h"
// TODO: Check on the availability of this in Clang. // TODO: Check on the availability of this in Clang.
// Replace libfmt with format when LLVM libc++ supports it // Replace libfmt with format when LLVM libc++ supports it

View File

@ -1,8 +1,14 @@
#ifndef UTILS_BINMAP_H #ifndef UTILS_BINMAP_H
#define UTILS_BINMAP_H #define UTILS_BINMAP_H
#include <vector> /// \cond
// C headers
// C++ headers
#include <utility> #include <utility>
#include <vector>
// 3rd party headers
/// \endcond
namespace utils { namespace utils {

View File

@ -1,7 +1,16 @@
#include "CurlConnection.h"
/// \cond
// C headers
// C++ headers
#include <iostream> #include <iostream>
// 3rd party headers
/// \endcond
// qtrocket headers
#include "utils/CurlConnection.h"
namespace namespace
{ {
size_t curlCallback(void* content, size_t size, size_t nmemb, std::string* buffer) size_t curlCallback(void* content, size_t size, size_t nmemb, std::string* buffer)

View File

@ -1,10 +1,17 @@
#ifndef UTILS_CURLCONNECTION_H #ifndef UTILS_CURLCONNECTION_H
#define UTILS_CURLCONNECTION_H #define UTILS_CURLCONNECTION_H
#include <vector> /// \cond
#include <string> // C headers
#include <curl/curl.h> #include <curl/curl.h>
// C++ headers
#include <string>
#include <vector>
// 3rd party headers
/// \endcond
namespace utils { namespace utils {
class CurlConnection class CurlConnection

View File

@ -1,7 +1,15 @@
#include "Logger.h"
/// \cond
// C headers
// C++ headers
#include <iostream> #include <iostream>
// 3rd party headers
/// \endcond
// qtrocket headers
#include "Logger.h"
namespace utils namespace utils
{ {
Logger* Logger::instance = nullptr; Logger* Logger::instance = nullptr;

View File

@ -1,16 +1,22 @@
#ifndef UTILS_LOGGER_H #ifndef UTILS_LOGGER_H
#define UTILS_LOGGER_H #define UTILS_LOGGER_H
/// \cond
// C headers
// C++ headers
#include <fstream> #include <fstream>
#include <mutex> #include <mutex>
#include <string_view> #include <string_view>
/** // 3rd party headers
* @todo write docs /// \endcond
*/
namespace utils namespace utils
{ {
/**
* @todo write docs
*/
class Logger class Logger
{ {
public: public:

View File

@ -1,10 +1,16 @@
#include "RSEDatabaseLoader.h"
#include <boost/property_tree/xml_parser.hpp>
/// \cond
// C headers
// C++ headers
#include <iostream> #include <iostream>
#include <cmath> #include <cmath>
// 3rd party headers
#include <boost/property_tree/xml_parser.hpp>
/// \endcond
// qtrocket headers
#include "utils/RSEDatabaseLoader.h"
#include "QtRocket.h" #include "QtRocket.h"
namespace utils { namespace utils {

View File

@ -1,12 +1,19 @@
#ifndef UTILS_RSEDATABASELOADER_H #ifndef UTILS_RSEDATABASELOADER_H
#define UTILS_RSEDATABASELOADER_H #define UTILS_RSEDATABASELOADER_H
#include "model/MotorModel.h"
#include <vector> /// \cond
// C headers
// C++ headers
#include <string> #include <string>
#include <vector>
// 3rd party headers
#include <boost/property_tree/ptree.hpp> #include <boost/property_tree/ptree.hpp>
/// \endcond
// qtrocket headers
#include "model/MotorModel.h"
namespace utils { namespace utils {

View File

@ -1,10 +1,16 @@
#ifndef TSQUEUE_H #ifndef TSQUEUE_H
#define TSQUEUE_H #define TSQUEUE_H
#include <mutex> /// \cond
#include <memory> // C headers
#include <queue> // C++ headers
#include <condition_variable> #include <condition_variable>
#include <memory>
#include <mutex>
#include <queue>
// 3rd party headers
/// \endcond
/** /**
* @brief The TSQueue class is a very basic thread-safe queue * @brief The TSQueue class is a very basic thread-safe queue

View File

@ -1,6 +1,15 @@
/// \cond
// C headers
// C++ headers
#include <cstdint>
// 3rd party headers
/// \endcond
// qtrocket headers
#include "ThreadPool.h" #include "ThreadPool.h"
#include <cstdint>
ThreadPool::ThreadPool() ThreadPool::ThreadPool()
: done(false), : done(false),

View File

@ -1,12 +1,19 @@
#ifndef THREADPOOL_H #ifndef THREADPOOL_H
#define THREADPOOL_H #define THREADPOOL_H
/// \cond
// C headers
// C++ headers
#include <atomic> #include <atomic>
#include <functional> #include <functional>
#include <vector>
#include <thread> #include <thread>
#include <vector>
#include "TSQueue.h" // 3rd party headers
/// \endcond
// qtrocket headers
#include "utils/TSQueue.h"
/** /**

View File

@ -1,6 +1,13 @@
#include "ThrustCurveAPI.h"
/// \cond
// C headers
// C++ headers
// 3rd party headers
#include <json/json.h> #include <json/json.h>
/// \endcond
// qtrocket headers
#include "utils/ThrustCurveAPI.h"
#include "utils/Logger.h" #include "utils/Logger.h"
namespace utils namespace utils

View File

@ -2,10 +2,17 @@
#define UTILS_THRUSTCURVEAPI_H #define UTILS_THRUSTCURVEAPI_H
#include <string> /// \cond
// C headers
// C++ headers
#include <map> #include <map>
#include <string>
#include "CurlConnection.h" // 3rd party headers
/// \endcond
// qtrocket headers
#include "utils/CurlConnection.h"
#include "model/MotorModel.h" #include "model/MotorModel.h"
namespace utils namespace utils

View File

@ -1,4 +1,6 @@
#include "Quaternion.h"
// qtrocket headers
#include "utils/math/Quaternion.h"
namespace math namespace math
{ {

View File

@ -1,9 +1,17 @@
#ifndef MATH_QUATERNION_H #ifndef MATH_QUATERNION_H
#define MATH_QUATERNION_H #define MATH_QUATERNION_H
/// \cond
// C headers
// C++ headers
#include <utility>
// 3rd party headers
/// \endcond
// qtrocket headers
#include "Vector3.h" #include "Vector3.h"
#include <utility>
namespace math namespace math
{ {

View File

@ -1,4 +1,6 @@
#include "Vector3.h"
// qtrocket headers
#include "utils/math/Vector3.h"
namespace math namespace math
{ {