diff options
author | Hind-M <70631848+Hind-M@users.noreply.github.com> | 2021-10-08 16:27:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-08 16:27:39 +0200 |
commit | 9116cba43919462f981275a5c2da30cd8b29f0ba (patch) | |
tree | 0a2734313e5694c842989ff3855c5fea146fd22e /scripts/cpp_examples_for_doxygen.py | |
parent | 44659b4d5c2df18745e36280317ecbc9c6a5b411 (diff) | |
parent | 8adb46d8a54f1a0dd71ea686473cc4ca9f5d2f67 (diff) |
Merge branch 'master' into knn_dtm_overflow
Diffstat (limited to 'scripts/cpp_examples_for_doxygen.py')
-rw-r--r-- | scripts/cpp_examples_for_doxygen.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/cpp_examples_for_doxygen.py b/scripts/cpp_examples_for_doxygen.py new file mode 100644 index 00000000..5c091c4f --- /dev/null +++ b/scripts/cpp_examples_for_doxygen.py @@ -0,0 +1,16 @@ +import os +import glob + +for gd_mod in glob.glob("src/*/"): + mod_files = [] + for paths in [gd_mod + 'utilities', gd_mod + 'example']: + if os.path.isdir(paths): + for root, dirs, files in os.walk(paths): + for file in files: + if file.endswith(".cpp"): + mod_files.append(str(os.path.join(root, file)).split(paths)[1][1:]) + if len(mod_files) > 0: + mod = str(gd_mod).split('/')[1] + print(' * \section ' + mod + '_example_section ' + mod) + for file in mod_files: + print(' * @example ' + file) |