├── .gitignore ├── CMakeLists.txt ├── LICENSE ├── Include └── CliWidget │ ├── ColorsEnum.hpp │ ├── Select.hpp │ ├── InputPassword.hpp │ ├── MultiSelect.hpp │ ├── Text.hpp │ └── List.hpp ├── Source ├── Text.cpp ├── InputPassword.cpp ├── main.cpp ├── List.cpp ├── Select.cpp └── MultiSelect.cpp ├── README.md └── doxconfig.txt /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Compiled Object files 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | 10 | # Precompiled Headers 11 | *.gch 12 | *.pch 13 | 14 | # Compiled Dynamic libraries 15 | *.so 16 | *.dylib 17 | *.dll 18 | 19 | # Fortran module files 20 | *.mod 21 | *.smod 22 | 23 | # Compiled Static libraries 24 | *.lai 25 | *.la 26 | *.a 27 | *.lib 28 | 29 | # Executables 30 | *.exe 31 | *.out 32 | *.app 33 | 34 | #cmake genereated build directory 35 | /build 36 | 37 | # Visual Studio files 38 | /.vs 39 | 40 | #documentation generated by dioxygen 41 | /docs 42 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.2 FATAL_ERROR) 2 | 3 | # specify project information: name, version and language 4 | project(Cliwidget VERSION 0.2.0 LANGUAGES CXX) 5 | 6 | # specify the C++ standard 7 | set(CMAKE_CXX_STANDARD 11) 8 | set(CMAKE_CXX_EXTENSIONS OFF) 9 | set(CMAKE_CXX_STANDARD_REQUIRED TRUE) 10 | 11 | # creates the executable for testing 12 | # add_executable(Test 13 | # main.cpp 14 | # ColorsEnum.hpp 15 | # InputPassword.cpp InputPassword.hpp 16 | # List.cpp List.hpp 17 | # MultiSelect.cpp MultiSelect.hpp 18 | # Select.cpp Select.hpp 19 | # Text.cpp Text.hpp 20 | # ) 21 | 22 | 23 | 24 | # creates the library, for making a shared library pass -DBUILD_SHARED_LIBS=YES to the cmake command 25 | add_library(CliWidget 26 | Source/InputPassword.cpp 27 | Source/List.cpp 28 | Source/MultiSelect.cpp 29 | Source/Select.cpp 30 | Source/Text.cpp 31 | ) 32 | 33 | target_include_directories(CliWidget 34 | PRIVATE 35 | "${PROJECT_BINARY_DIR}" 36 | "${CMAKE_CURRENT_SOURCE_DIR}/Include" 37 | ) 38 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2020 Albert Lázaro 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Include/CliWidget/ColorsEnum.hpp: -------------------------------------------------------------------------------- 1 | /** 2 | ColorsEnum: contains the enums for the terminal colors 3 | @file ColorsEnum.hpp 4 | @author Albert Lazaro de Lara 5 | @version 0.1 11/09/20 6 | */ 7 | 8 | #ifndef COLORS_HPP 9 | #define COLORS_HPP 10 | 11 | #include 12 | 13 | 14 | namespace cliw { 15 | 16 | /** 17 | enum class for the foreground color. 18 | */ 19 | enum class ForegroundColor { 20 | NONE = 0, 21 | BLACK = 30, 22 | RED = 31, 23 | GREEN = 32, 24 | YELLOW = 33, 25 | BLUE = 34, 26 | MAGENTA = 35, 27 | CYAN = 36, 28 | WHITE = 37 29 | }; 30 | 31 | /** 32 | output the foreground color value. 33 | */ 34 | inline std::ostream& operator<< (std::ostream& os, const ForegroundColor& fgColor){ 35 | return os << static_cast(fgColor); 36 | } 37 | 38 | /** 39 | enum class for the background color. 40 | */ 41 | enum class BackgroundColor { 42 | NONE = 0, 43 | BLACK = 40, 44 | RED = 41, 45 | GREEN = 42, 46 | YELLOW = 43, 47 | BLUE = 44, 48 | MAGENTA = 45, 49 | CYAN = 46, 50 | WHITE = 47 51 | }; 52 | 53 | /** 54 | output the background color value. 55 | */ 56 | inline std::ostream& operator<< (std::ostream& os, const BackgroundColor& bgColor){ 57 | return os << static_cast(bgColor); 58 | } 59 | 60 | inline std::string operator+ (std::string str, const BackgroundColor& bgColor) { 61 | return str + std::to_string(static_cast(bgColor)); 62 | } 63 | } 64 | 65 | #endif 66 | -------------------------------------------------------------------------------- /Source/Text.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | Text widget: contains the implementation of the class Text 3 | @file Text.hpp 4 | @author Albert Lazaro de Lara 5 | @version 0.1 11/09/20 6 | */ 7 | 8 | #include "CliWidget/Text.hpp" 9 | 10 | namespace cliw { 11 | Text::Text(const std::string &text): _text(text) { 12 | 13 | } 14 | 15 | void Text::setText(const std::string &text) { 16 | _text = text; 17 | } 18 | 19 | std::string& Text::getText() { 20 | return _text; 21 | } 22 | 23 | void Text::setBackgroundColor(cliw::BackgroundColor color) { 24 | _bgrColor = color; 25 | } 26 | 27 | void Text::setForegroundColor(cliw::ForegroundColor color) { 28 | _fgrColor = color; 29 | } 30 | 31 | void Text::setBold(bool enable) { 32 | _bold = enable; 33 | } 34 | 35 | void Text::setUnderline(bool enable) { 36 | _underline = enable; 37 | } 38 | 39 | void Text::setBlink(bool enable) { 40 | _blink = enable; 41 | } 42 | 43 | void Text::setItalic(bool enable) { 44 | _italic = enable; 45 | } 46 | 47 | void Text::display() { 48 | if (_bgrColor != cliw::BackgroundColor::NONE) 49 | std::cout << "\033[" << _bgrColor << "m"; 50 | if (_fgrColor != cliw::ForegroundColor::NONE) 51 | std::cout << "\033[" << _fgrColor << "m"; 52 | if (_bold) 53 | std::cout << "\033[" << "1m"; 54 | if (_underline) 55 | std::cout << "\033[" << "4m"; 56 | if (_blink) 57 | std::cout << "\033[" << "5m"; 58 | if (_italic) 59 | std::cout << "\033[" << "3m"; 60 | std::cout << _text << "\033[0m" << std::endl; 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Include/CliWidget/Select.hpp: -------------------------------------------------------------------------------- 1 | /** 2 | Select widget: contains the definition of the class Select 3 | @file Select.hpp 4 | @author Albert Lazaro de Lara 5 | @version 0.1 11/09/20 6 | */ 7 | 8 | #ifndef SELECT_HPP 9 | #define SELECT_HPP 10 | 11 | #include 12 | #include 13 | 14 | #include "List.hpp" 15 | 16 | namespace cliw { 17 | 18 | /** 19 | Create a widget that lets the user select one item of a list 20 | */ 21 | class Select: public List { 22 | public: 23 | /** 24 | sets the options for the list 25 | @param options The options for the list 26 | */ 27 | Select(const std::vector &options); 28 | 29 | /** 30 | Return the index of the selected option 31 | @return the index of the selected option 32 | */ 33 | unsigned int getSelectedIndex(); 34 | 35 | /** 36 | Return the value of the selected option 37 | @return the value of the selected option 38 | */ 39 | std::string getSelectedValue(); 40 | 41 | /** 42 | Display the widget in the terminal and lets the user to navigate between the options and select one of them 43 | */ 44 | void display() override; 45 | 46 | /** 47 | set the cursor character to distinct the current option where the user is 48 | @param cursor The character to represent it 49 | */ 50 | void setCursor(char cursor); 51 | 52 | private: 53 | /** 54 | Return the options in a string format and the current option under the cursor 55 | @return the options in string format 56 | */ 57 | std::string getTextToPrint(); 58 | }; 59 | } 60 | 61 | #endif 62 | -------------------------------------------------------------------------------- /Source/InputPassword.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | Input password: contains the definition of the class InputPassword 3 | @file InputPassword.cpp 4 | @author Albert Lazaro de Lara 5 | @version 0.1 11/09/20 6 | */ 7 | 8 | #if !defined(_WIN32) || !defined(_WIN64) 9 | #include 10 | #include 11 | #endif 12 | 13 | #include 14 | #include 15 | 16 | #include "CliWidget/InputPassword.hpp" 17 | 18 | namespace cliw { 19 | 20 | std::string InputPassword::getValue() { 21 | return _value; 22 | } 23 | 24 | void InputPassword::display() { 25 | changeTerminalMode(false); 26 | getline(std::cin, _value); 27 | changeTerminalMode(true); 28 | } 29 | 30 | bool InputPassword::check() { 31 | return _regex.empty() || std::regex_match(_value, std::regex(_regex)); 32 | } 33 | 34 | void InputPassword::setRegex(std::string regex) { 35 | _regex = regex; 36 | } 37 | 38 | void InputPassword::changeTerminalMode(bool reset) { 39 | #if defined(_WIN32) || defined(_WIN64) 40 | hstdin = GetStdHandle(STD_INPUT_HANDLE); 41 | if (!reset) { 42 | GetConsoleMode(hstdin, &mode); 43 | SetConsoleMode(hstdin, mode & ~ENABLE_ECHO_INPUT); 44 | } 45 | else { 46 | SetConsoleMode(hstdin, mode); 47 | } 48 | #else 49 | if (!reset) { 50 | // disable printing of keys as they're pressed 51 | system("stty -echo"); 52 | 53 | atexit([](){ 54 | //Reset the terminal to a sensible state 55 | system("stty sane; tput cnorm"); 56 | }); 57 | 58 | // Ensure clean exit to reset the terminal if the program is killed 59 | signal(SIGTERM, [](int){exit(1);}); 60 | } 61 | else { 62 | system("stty sane"); 63 | } 64 | #endif 65 | } 66 | } 67 | -------------------------------------------------------------------------------- /Include/CliWidget/InputPassword.hpp: -------------------------------------------------------------------------------- 1 | /** 2 | Input password: contains the definition of the class InputPassword 3 | @file InputPassword.hpp 4 | @author Albert Lazaro de Lara 5 | @version 0.1 11/09/20 6 | */ 7 | 8 | #ifndef INPUT_PASSWORD 9 | #define INPUT_PASSWORD 10 | 11 | #if defined(_WIN32) || defined(_WIN64) 12 | #include 13 | #endif 14 | #include 15 | 16 | namespace cliw { 17 | 18 | /** 19 | Create a widget that lets the user to input their password 20 | */ 21 | class InputPassword { 22 | public: 23 | InputPassword() = default; 24 | 25 | /** 26 | Get the entered password 27 | @return the password 28 | */ 29 | std::string getValue(); 30 | 31 | /** 32 | Sets the regex for validating the password 33 | @param regex The regex for validation 34 | */ 35 | void setRegex(std::string regex); 36 | 37 | /** 38 | Display the widget in the terminal and captures the user input as password 39 | */ 40 | void display(); 41 | 42 | /** 43 | If a regex is setted, check if the password pass the regex 44 | @return true if regex is not setted or if the password pass the regex, false otherwise 45 | */ 46 | bool check(); 47 | private: 48 | /** 49 | The input password 50 | */ 51 | std::string _value; 52 | 53 | /** 54 | The regex for checking the password 55 | */ 56 | std::string _regex; 57 | 58 | /** 59 | Hide the terminal input and the cursor. 60 | @param reset If true reset the terminal to default, else hides the input and the cursor 61 | **/ 62 | void changeTerminalMode(bool reset); 63 | 64 | #if defined(_WIN32) || defined(_WIN64) 65 | private: 66 | HANDLE hstdin; 67 | DWORD mode; 68 | #endif 69 | }; 70 | } 71 | 72 | #endif 73 | -------------------------------------------------------------------------------- /Source/main.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "CliWidget/Select.hpp" 6 | #include "CliWidget/MultiSelect.hpp" 7 | #include "CliWidget/Text.hpp" 8 | #include "CliWidget/InputPassword.hpp" 9 | 10 | int main() { 11 | cliw::Select select(std::vector {"One", "Two", "Three"}); 12 | cliw::MultiSelect multiSelect(std::vector{"Cat", "Dog", "Hamster", "Bird", "Fish"}); 13 | 14 | select.setBackgroundColor(cliw::BackgroundColor::GREEN); 15 | select.display(); 16 | 17 | cliw::Text text1("Selected index is " + std::to_string(select.getSelectedIndex()) + ""); 18 | cliw::Text text2("Selected value is " + select.getSelectedValue() + ""); 19 | 20 | text1.setBackgroundColor(cliw::BackgroundColor::GREEN); 21 | text1.setForegroundColor(cliw::ForegroundColor::BLUE); 22 | text1.setUnderline(true); 23 | text1.setBold(true); 24 | 25 | text2.setItalic(true); 26 | text2.setBlink(true); 27 | 28 | text1.display(); 29 | text2.display(); 30 | 31 | multiSelect.setBackgroundColor(cliw::BackgroundColor::BLUE); 32 | multiSelect.display(); 33 | 34 | std::string strText3 = "Selected indexes are "; 35 | std::string strText4 = "Selected values are "; 36 | 37 | for (int index : multiSelect.getSelectedIndexes()) { 38 | strText3 += std::to_string(index) + " "; 39 | } 40 | 41 | for (std::string value : multiSelect.getSelectedValues()) { 42 | strText4 += value + " "; 43 | } 44 | 45 | cliw::Text text3(strText3); 46 | text3.display(); 47 | 48 | cliw::Text text4(strText4); 49 | text4.display(); 50 | 51 | cliw::Text textPwd("Insert a Password:"); 52 | cliw::InputPassword inputPsw; 53 | inputPsw.setRegex("^.{6,}"); 54 | 55 | textPwd.display(); 56 | inputPsw.display(); 57 | 58 | cliw::Text textResult("The entered password is " + inputPsw.getValue()); 59 | textResult.setBold(true); 60 | textResult.display(); 61 | 62 | if (!inputPsw.check()) { 63 | cliw::Text textResult("The entered password is short"); 64 | textResult.display(); 65 | } 66 | 67 | return 0; 68 | } 69 | -------------------------------------------------------------------------------- /Include/CliWidget/MultiSelect.hpp: -------------------------------------------------------------------------------- 1 | /** 2 | Multi Select widget: contains the definition of the class MultiSelect 3 | @file MultiSelect.hpp 4 | @author Albert Lazaro de Lara 5 | @version 0.1 11/09/20 6 | */ 7 | 8 | #ifndef MULTI_SELECT 9 | #define MULTI_SELECT 10 | 11 | #include 12 | #include 13 | 14 | #include "List.hpp" 15 | 16 | namespace cliw { 17 | 18 | /** 19 | Create a widget that lets the user to select one or more items of a list 20 | */ 21 | class MultiSelect: public List { 22 | public: 23 | /** 24 | sets the options for the list 25 | @param options The options for the list 26 | */ 27 | MultiSelect(const std::vector &options); 28 | 29 | /** 30 | return the index of the selected elements from the user 31 | @return a vector with the the indexes of the selected items 32 | */ 33 | std::vector getSelectedIndexes(); 34 | 35 | /** 36 | return the values of the selected elements from the user 37 | @return a vector with the vaules of the selected items 38 | */ 39 | std::vector getSelectedValues(); 40 | 41 | /** 42 | Display the widget in the terminal and lets the user to navigate between the options and select them 43 | */ 44 | void display() override; 45 | 46 | /** 47 | Adds an option to the options vector 48 | @param option The option to add 49 | */ 50 | void addOption(const std::string &option) override; 51 | 52 | /** 53 | Remove the option at the selected index 54 | @param index The index 55 | */ 56 | void removeOption(unsigned int index) override; 57 | 58 | private: 59 | /** 60 | A vector for knowing which options have been selected (true) 61 | */ 62 | std::vector _boolIndexes; 63 | 64 | /** 65 | Return the options in a string format, the current option under the cursor and if the options are selected (+) or not (-) 66 | @return the options in string format 67 | */ 68 | std::string getTextToPrint(); 69 | }; 70 | } 71 | 72 | #endif 73 | -------------------------------------------------------------------------------- /Source/List.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | List: contains the implementation of the class List 3 | @file List.cpp 4 | @author Albert Lazaro de Lara 5 | @version 0.1 11/09/20 6 | */ 7 | 8 | #if !defined(_WIN32) || !defined(_WIN64) 9 | #include 10 | #include 11 | #endif 12 | 13 | #include "CliWidget/List.hpp" 14 | 15 | namespace cliw { 16 | 17 | List::List(const std::vector& options) : _options(options) 18 | { 19 | 20 | } 21 | 22 | void List::setOptions(const std::vector& options) { 23 | _options = options; 24 | } 25 | 26 | std::vector& List::getOptions() { 27 | return _options; 28 | } 29 | 30 | 31 | void List::addOption(const std::string& option) { 32 | _options.push_back(option); 33 | } 34 | 35 | void List::removeOption(unsigned int index) { 36 | _options.erase(_options.begin() + index); 37 | } 38 | 39 | void List::setBackgroundColor(cliw::BackgroundColor bgColor) { 40 | _bgColor = bgColor; 41 | } 42 | 43 | #if defined(_WIN32) || defined(_WIN64) 44 | char List::changeTerminalMode(bool reset) { 45 | char result = '\0'; 46 | 47 | hstdin = GetStdHandle(STD_INPUT_HANDLE); 48 | if (!reset) { 49 | if (hstdin == INVALID_HANDLE_VALUE 50 | || !GetConsoleMode(hstdin, &mode) 51 | || !SetConsoleMode(hstdin, 0)) 52 | return result; 53 | } 54 | else { 55 | SetConsoleMode(hstdin, mode); 56 | return '1'; 57 | } 58 | } 59 | #else 60 | void List::changeTerminalMode(bool reset) { 61 | if (!reset) { 62 | // Disable special processing of characters (e.g. delete line) and set the minimum number read to 1 63 | // disable printing of keys as they're pressed 64 | system("stty cbreak min 1 -echo; tput civis"); 65 | 66 | atexit([]() { 67 | //Reset the terminal to a sensible state 68 | system("stty sane; tput cnorm"); 69 | }); 70 | 71 | // Ensure clean exit to reset the terminal if the program is killed 72 | signal(SIGTERM, [](int) {exit(1); }); 73 | } 74 | else { 75 | system("stty sane; tput cnorm"); 76 | } 77 | } 78 | #endif 79 | 80 | std::ostream& List::setTerminalCursor(std::ostream &stream) { 81 | return stream << "\033[" << _options.size() << "A\033[99D"; 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /Include/CliWidget/Text.hpp: -------------------------------------------------------------------------------- 1 | /** 2 | Text widget: contains the definition of the class Text 3 | @file Text.hpp 4 | @author Albert Lazaro de Lara 5 | @version 0.1 11/09/20 6 | */ 7 | 8 | #ifndef TEXT_HPP 9 | #define TEXT_HPP 10 | 11 | #include 12 | #include 13 | 14 | #include "ColorsEnum.hpp" 15 | 16 | namespace cliw { 17 | 18 | /** 19 | Create a widget that lets the user to display text with format 20 | */ 21 | class Text { 22 | public: 23 | /** 24 | Create and sets the text to display. 25 | @param text The text to display 26 | */ 27 | Text(const std::string &text); 28 | 29 | /** 30 | set the text which will be displayed 31 | text The text to display 32 | */ 33 | void setText(const std::string &text); 34 | 35 | /** 36 | get the text to display 37 | @return the text to display 38 | */ 39 | std::string &getText(); 40 | 41 | /** 42 | set the background color of the text 43 | @param color The color of the background 44 | */ 45 | void setBackgroundColor(cliw::BackgroundColor color); 46 | 47 | /** 48 | set the foreground color of the text 49 | @param color The color of the foreground 50 | */ 51 | void setForegroundColor(cliw::ForegroundColor color); 52 | 53 | /** 54 | enable the underline format. The text will be underline 55 | @param enable If true enables the underline 56 | */ 57 | void setUnderline(bool enable); 58 | 59 | /** 60 | enable the bold format. The text will be bold 61 | @param enable If true enables the bold 62 | */ 63 | void setBold(bool enable); 64 | 65 | /** 66 | enable the blink format. The text will blink 67 | @param enable If true enables blink 68 | */ 69 | void setBlink(bool enable); 70 | 71 | /** 72 | enable the italic format. The text will have a italic format 73 | @param enable If true enables italic 74 | */ 75 | void setItalic(bool enable); 76 | 77 | /** 78 | Display the widget in the terminal, showing the text in it 79 | */ 80 | void display(); 81 | 82 | private: 83 | /** 84 | The text to show 85 | */ 86 | std::string _text; 87 | 88 | /** 89 | The underline format flag 90 | */ 91 | bool _underline = false; 92 | 93 | /** 94 | The bold format flag 95 | */ 96 | bool _bold = false; 97 | 98 | /** 99 | The blink format flag 100 | */ 101 | bool _blink = false; 102 | 103 | /** 104 | The italic format flag 105 | */ 106 | bool _italic = false; 107 | 108 | /** 109 | The foreground color 110 | */ 111 | cliw::ForegroundColor _fgrColor = cliw::ForegroundColor::NONE; 112 | 113 | /** 114 | The background color 115 | */ 116 | cliw::BackgroundColor _bgrColor = cliw::BackgroundColor::NONE; 117 | }; 118 | } 119 | 120 | #endif 121 | 122 | -------------------------------------------------------------------------------- /Include/CliWidget/List.hpp: -------------------------------------------------------------------------------- 1 | /** 2 | List: contains the definition of the class List 3 | @file List.hpp 4 | @author Albert Lazaro de Lara 5 | @version 0.1 11/09/20 6 | */ 7 | 8 | #ifndef WIDGET_HPP 9 | #define WIDGET_HPP 10 | 11 | #include 12 | #include 13 | #include 14 | 15 | #if defined(_WIN32) || defined(_WIN64) 16 | #include 17 | #endif 18 | 19 | #include "ColorsEnum.hpp" 20 | 21 | namespace cliw { 22 | 23 | /** 24 | Parent class of Lists (for the moment List and MultiList) 25 | This can not be instantiated. 26 | */ 27 | class List { 28 | public: 29 | /** 30 | Creates the widget and set the options 31 | @param options The options to display 32 | */ 33 | List(const std::vector &options); 34 | 35 | /** 36 | Set the vector of options 37 | @param options The options to display 38 | */ 39 | void setOptions(const std::vector &options); 40 | 41 | /** 42 | Get the options 43 | @return the options 44 | */ 45 | std::vector &getOptions(); 46 | 47 | /** 48 | Add an option to the list 49 | @param option The option to append 50 | */ 51 | virtual void addOption(const std::string &option); 52 | 53 | /** 54 | Remove the option at the index 55 | @param index The position of the option to remove 56 | */ 57 | virtual void removeOption(unsigned int index); 58 | 59 | /** 60 | Set the bacground color for the current position 61 | @param bgColor The color 62 | */ 63 | void setBackgroundColor(cliw::BackgroundColor bgColor); 64 | 65 | /** 66 | Display the widget in the terminal and lets the user to navigate between the options and select one of them 67 | */ 68 | virtual void display() = 0; 69 | 70 | /** 71 | Default destructor (inheritance) 72 | */ 73 | virtual ~List() = default; 74 | 75 | protected: 76 | 77 | /** 78 | Hide the terminal input and the cursor. 79 | @param reset If true reset the terminal to default, else hides the input and the cursor 80 | **/ 81 | #if defined(_WIN32) || defined(_WIN64) 82 | char changeTerminalMode(bool reset); 83 | #else 84 | void changeTerminalMode(bool reset); 85 | #endif 86 | 87 | /** 88 | Sets the terminal cursor to the first character written by the widget for replacing it 89 | */ 90 | std::ostream& setTerminalCursor(std::ostream& stream); 91 | 92 | /** 93 | A vector of options 94 | */ 95 | std::vector _options; 96 | 97 | /** 98 | An index that points to the focused option 99 | */ 100 | std::vector::size_type _index = 0; 101 | 102 | /** 103 | the cursor to indicate to the user the focused option 104 | */ 105 | char _cursor = '>'; 106 | 107 | /** 108 | The background color 109 | */ 110 | cliw::BackgroundColor _bgColor = cliw::BackgroundColor::NONE; 111 | 112 | #if defined(_WIN32) || defined(_WIN64) 113 | private: 114 | HANDLE hstdin; 115 | DWORD mode; 116 | #else 117 | // TODO write -static const KEY_UP KEY_DOWN- 118 | static const int KEY_UP = 65; 119 | static const int KEY_DOWN = 66; 120 | static const int KEY_SPACE = 32; 121 | static const int KEY_ENTER = 13; 122 | #endif 123 | }; 124 | } 125 | 126 | #endif 127 | -------------------------------------------------------------------------------- /Source/Select.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | Select widget: contains the implementation of the class Select 3 | @file Select.cpp 4 | @author Albert Lazaro de Lara 5 | @version 0.1 11/09/20 6 | */ 7 | 8 | #if defined(_WIN32) || defined(_WIN64) 9 | #include 10 | #endif 11 | 12 | #include "CliWidget/Select.hpp" 13 | 14 | namespace cliw { 15 | 16 | Select::Select(const std::vector &options) : List(options) { 17 | 18 | } 19 | 20 | unsigned int Select::getSelectedIndex() { 21 | return _index; 22 | } 23 | 24 | std::string Select::getSelectedValue() { 25 | return _options.at(_index); 26 | } 27 | 28 | void Select::setCursor(char cursor) { 29 | _cursor = cursor; 30 | } 31 | 32 | // TODO improve Windows code 33 | void Select::display() { 34 | #if defined(_WIN32) || defined(_WIN64) 35 | DWORD count; 36 | WORD result; 37 | INPUT_RECORD inrec; 38 | 39 | if (changeTerminalMode(false) == '\0') { 40 | // TODO controle this (not connected to cmd) 41 | return; 42 | } 43 | 44 | std::string textToPrint = getTextToPrint(); 45 | HANDLE hstdin = GetStdHandle(STD_INPUT_HANDLE); 46 | 47 | WriteConsole( 48 | GetStdHandle(STD_OUTPUT_HANDLE), 49 | textToPrint.c_str(), 50 | textToPrint.length()+1, 51 | &count, 52 | NULL 53 | ); 54 | FlushConsoleInputBuffer(hstdin); 55 | 56 | do { 57 | /* Wait for and get a single key PRESS */ 58 | do ReadConsoleInput(hstdin, &inrec, 1, &count); 59 | while ((inrec.EventType != KEY_EVENT) || !inrec.Event.KeyEvent.bKeyDown); 60 | 61 | /* Remember which key the user pressed */ 62 | result = inrec.Event.KeyEvent.wVirtualKeyCode; 63 | 64 | /* Wait for and get a single key RELEASE */ 65 | do ReadConsoleInput(hstdin, &inrec, 1, &count); 66 | while ((inrec.EventType != KEY_EVENT) || inrec.Event.KeyEvent.bKeyDown); 67 | 68 | if (result == VK_UP && _index > 0) { 69 | --_index; 70 | setTerminalCursor(std::cout); 71 | std::cout << getTextToPrint(); 72 | } 73 | else if (result == VK_DOWN && (_index < _options.size() - 1)) { 74 | ++_index; 75 | setTerminalCursor(std::cout); 76 | std::cout << getTextToPrint(); 77 | } 78 | } while (result != VK_RETURN); 79 | 80 | changeTerminalMode(true); 81 | #else 82 | unsigned int c; 83 | bool arrowKeyPressed = false; 84 | 85 | changeTerminalMode(false); 86 | std::cout << getTextToPrint(); 87 | 88 | do { 89 | c = std::cin.get(); 90 | if (c == '[') { 91 | arrowKeyPressed = true; 92 | } 93 | else if (c == KEY_UP && _index > 0 && arrowKeyPressed) { 94 | --_index; 95 | arrowKeyPressed = false; 96 | setTerminalCursor(std::cout); 97 | std::cout << getTextToPrint(); 98 | } 99 | else if (c == KEY_DOWN && (_index < _options.size() -1) && arrowKeyPressed) { 100 | ++_index; 101 | arrowKeyPressed = false; 102 | setTerminalCursor(std::cout); 103 | std::cout << getTextToPrint(); 104 | } 105 | } while(c != KEY_ENTER); 106 | 107 | changeTerminalMode(true); 108 | #endif 109 | } 110 | 111 | std::string Select::getTextToPrint() { 112 | std::string text = "", bgBegin = "", bgEnd =""; 113 | 114 | if (_bgColor != cliw::BackgroundColor::NONE) { 115 | bgBegin = "\033[" + _bgColor + "m"; 116 | bgEnd = "\033[0m"; 117 | } 118 | 119 | std::vector::size_type i = 0; 120 | while (i < _options.size()) { 121 | if (i == _index) { 122 | text += bgBegin +_cursor + " " + _options.at(i) + bgEnd + "\n"; 123 | } 124 | else { 125 | text += " " + _options.at(i) + "\n"; 126 | } 127 | ++i; 128 | } 129 | 130 | return text; 131 | } 132 | } 133 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CliWidget 2 | Widgets for using in C++ terminal 3 | 4 | ## What is it? 5 | 6 | CliWidgets are a series of widgets to use in the terminal, with the idea to help programmers to build easy menus or inputs/outputs that users will use to interact with the application. 7 | 8 | ## Requirements 9 | 10 | CliWidgets has been tested on Windows 10 (x64) and Linux (Ubuntu x64). 11 | 12 | For Linux, the requisites are: 13 | 14 | * A **C++11** compiler. 15 | * The **stty** linux utility which I use to hide the terminal input for InputPassword and for hide the arrow keys when selecting an option in menus. 16 | * The **tput** to hide / restore the terminal cursor. 17 | 18 | ## Compile 19 | 20 | On Linux, create a build folder and `cd` inside it. Then eexecute the next commands: `cmake ..` and after `cmake --build .` 21 | 22 | On Windows you will have to do the steps manually: 23 | 24 | 1. Create a _build_ folder in the main directory of the project. 25 | 2. Execute this command: `cmake -G "Visual Studio 16 2019" ..` then `cmake --build .` 26 | 27 | It will generate a solution in the build folder with two projects: 28 | 29 | 1. A library (CliWidget). 30 | 2. An executable project that uses the main.cpp, used for the development of the library. 31 | 32 | ## Widgets 33 | 34 | ### Text 35 | 36 | A simple output text to display a text. A format can be applied to it, enabling the next formats: 37 | * Bold. 38 | * Underline. 39 | * Italic. 40 | * Blink. 41 | * Foreground color: sets the terminal foreground color, using a color defined in the *ForegroundColor* Enum. 42 | * Background color: sets the terminal background color, using a color defined in the *BackgroundColor* Enum. 43 | 44 | Example: 45 | 46 | ```cpp 47 | #include "CliWidget/Text.hpp" 48 | 49 | cliw::Text text("Hello World"); 50 | 51 | text.setBackgroundColor(cliw::BackgroundColor::GREEN); 52 | text.setForegroundColor(cliw::ForegroundColor::BLUE); 53 | text.setUnderline(true); 54 | text.setBold(true); 55 | text.setItalic(true); 56 | text.setBlink(true); 57 | 58 | text.display(); 59 | ``` 60 | 61 | ![Different Text format gif](https://i.imgur.com/jjiLuHP.gif "Different Text format gif") 62 | 63 | ### Input Password 64 | 65 | A password input that hides the input when users are writting hteir passwords like in Linux. The password can be checked with a regex. 66 | 67 | Example of input password and a regex to validate that it's length is 6 characters or more: 68 | 69 | ```cpp 70 | #include "CliWidget/Text.hpp" 71 | #include "CliWidget/InputPassword.hpp" 72 | 73 | cliw::Text textPwd("Insert a Password:"); 74 | cliw::InputPassword inputPsw; 75 | inputPsw.setRegex("^.{6,}"); 76 | 77 | textPwd.display(); 78 | inputPsw.display(); 79 | 80 | cliw::Text textResult("The entered password is " + inputPsw.getValue()); 81 | textResult.setBold(true); 82 | textResult.display(); 83 | 84 | if (!inputPsw.check()) { 85 | cliw::Text textResult("The entered password is short"); 86 | textResult.display(); 87 | } 88 | ``` 89 | 90 | ![Input Password gif](https://i.imgur.com/PMTMMso.gif "Input Password gif") 91 | 92 | ### Select 93 | 94 | This widget display a set of options. The user can navigate through them with up and down keys and select one option with the enter key. 95 | 96 | Example: 97 | 98 | ```cpp 99 | #include "CliWidget/Select.hpp" 100 | #include "CliWidget/Text.hpp" 101 | 102 | cliw::Select select(std::vector {"One", "Two", "Three"}); 103 | select.display(); 104 | 105 | cliw::Text text1("Selected index is " + std::to_string(select.getSelectedIndex()) + ""); 106 | cliw::Text text2("Selected value is " + select.getSelectedValue()); 107 | 108 | text1.display(); 109 | text2.display(); 110 | ``` 111 | 112 | ![Select gif](https://i.imgur.com/Caki9XJ.gif "Select") 113 | 114 | ### Multi Select 115 | 116 | This widget is like the select, with the difference that the user can select more than one option. For selecting a option the user has to press the space bar. 117 | 118 | Example: 119 | 120 | ```cpp 121 | #include "CliWidget/MultiSelect.hpp" 122 | #include "CliWidget/Text.hpp" 123 | 124 | cliw::MultiSelect multiSelect(std::vector{"Cat", "Dog", "Hamster", "Bird", "Fish"}); 125 | multiSelect.display(); 126 | 127 | std::string strText3 = "Selected indexes are "; 128 | std::string strText4 = "Selected values are "; 129 | 130 | for (int index : multiSelect.getSelectedIndexes()) 131 | strText3 += std::to_string(index) + " "; 132 | 133 | for (std::string value : multiSelect.getSelectedValues()) 134 | strText4 += value + " "; 135 | ``` 136 | 137 | ![MultiSelect gif](https://i.imgur.com/cbQuZmo.gif "MultiSelect") 138 | -------------------------------------------------------------------------------- /Source/MultiSelect.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | Multi Select widget: contains the implementation of the class MultiSelect 3 | @file MultiSelect.cpp 4 | @author Albert Lazaro de Lara 5 | @version 0.1 11/09/20 6 | */ 7 | #if defined(_WIN32) || defined(_WIN64) 8 | #include 9 | #endif 10 | 11 | #include "CliWidget/MultiSelect.hpp" 12 | 13 | namespace cliw { 14 | 15 | MultiSelect::MultiSelect(const std::vector &options) : List(options){ 16 | _boolIndexes = std::vector (options.size(), false); 17 | } 18 | 19 | std::vector MultiSelect::getSelectedIndexes() { 20 | std::vector indexes; 21 | 22 | std::vector::size_type i = 0; 23 | while (i < _boolIndexes.size()) { 24 | if (_boolIndexes.at(i)) { 25 | indexes.push_back(i); 26 | } 27 | ++i; 28 | } 29 | 30 | return indexes; 31 | } 32 | 33 | std::vector MultiSelect::getSelectedValues() { 34 | std::vector values; 35 | 36 | std::vector::size_type i = 0; 37 | while (i < _boolIndexes.size()) { 38 | if (_boolIndexes.at(i)) { 39 | values.push_back(_options.at(i)); 40 | } 41 | ++i; 42 | } 43 | 44 | return values; 45 | } 46 | 47 | void MultiSelect::display() { 48 | #if defined(_WIN32) || defined(_WIN64) 49 | DWORD count; 50 | WORD result; 51 | INPUT_RECORD inrec; 52 | 53 | if (changeTerminalMode(false) == '\0') { 54 | // TODO controle this (not connected to cmd) 55 | return; 56 | } 57 | 58 | std::string textToPrint = getTextToPrint(); 59 | HANDLE hstdin = GetStdHandle(STD_INPUT_HANDLE); 60 | 61 | WriteConsole( 62 | GetStdHandle(STD_OUTPUT_HANDLE), 63 | textToPrint.c_str(), 64 | textToPrint.length() + 1, 65 | &count, 66 | NULL 67 | ); 68 | FlushConsoleInputBuffer(hstdin); 69 | 70 | do { 71 | /* Wait for and get a single key PRESS */ 72 | do ReadConsoleInput(hstdin, &inrec, 1, &count); 73 | while ((inrec.EventType != KEY_EVENT) || !inrec.Event.KeyEvent.bKeyDown); 74 | 75 | /* Remember which key the user pressed */ 76 | result = inrec.Event.KeyEvent.wVirtualKeyCode; 77 | 78 | /* Wait for and get a single key RELEASE */ 79 | do ReadConsoleInput(hstdin, &inrec, 1, &count); 80 | while ((inrec.EventType != KEY_EVENT) || inrec.Event.KeyEvent.bKeyDown); 81 | 82 | if (result == VK_UP && _index > 0) { 83 | --_index; 84 | setTerminalCursor(std::cout); 85 | std::cout << getTextToPrint(); 86 | } 87 | else if (result == VK_DOWN && (_index < _options.size() - 1)) { 88 | ++_index; 89 | setTerminalCursor(std::cout); 90 | std::cout << getTextToPrint(); 91 | } 92 | else if (result == VK_SPACE) { 93 | _boolIndexes.at(_index) = !_boolIndexes.at(_index); 94 | setTerminalCursor(std::cout); 95 | std::cout << getTextToPrint(); 96 | } 97 | } while (result != VK_RETURN); 98 | changeTerminalMode(true); 99 | #else 100 | unsigned int c; 101 | bool arrowKeyPressed = false; 102 | 103 | changeTerminalMode(false); 104 | std::cout << getTextToPrint(); 105 | 106 | do { 107 | c = std::cin.get(); 108 | if (c == '[') { 109 | arrowKeyPressed = true; 110 | } 111 | else if (c == KEY_UP && _index > 0 && arrowKeyPressed) { 112 | --_index; 113 | arrowKeyPressed = false; 114 | setTerminalCursor(std::cout); 115 | std::cout << getTextToPrint(); 116 | } 117 | else if (c == KEY_DOWN && (_index < _options.size() -1) && arrowKeyPressed) { 118 | ++_index; 119 | arrowKeyPressed = false; 120 | setTerminalCursor(std::cout); 121 | std::cout << getTextToPrint(); 122 | } 123 | else if (c == KEY_SPACE) { 124 | _boolIndexes.at(_index) = !_boolIndexes.at(_index); 125 | setTerminalCursor(std::cout); 126 | std::cout << getTextToPrint(); 127 | } 128 | } while(c != KEY_ENTER); 129 | changeTerminalMode(true); 130 | #endif 131 | } 132 | 133 | void MultiSelect::addOption(const std::string &option) { 134 | _options.push_back(option); 135 | _boolIndexes.push_back(false); 136 | } 137 | 138 | void MultiSelect::removeOption(unsigned int index) { 139 | _options.erase(_options.begin() + index); 140 | _boolIndexes.erase(_boolIndexes.begin() + index); 141 | } 142 | 143 | std::string MultiSelect::getTextToPrint() { 144 | std::string text = "", bgBegin = "", bgEnd =""; 145 | 146 | if (_bgColor != cliw::BackgroundColor::NONE) { 147 | bgBegin = "\033[" + _bgColor + "m"; 148 | bgEnd = "\033[0m"; 149 | } 150 | 151 | std::vector::size_type i = 0; 152 | while (i < _options.size()) { 153 | if (_boolIndexes.at(i)) 154 | text += "+"; 155 | else 156 | text += "-"; 157 | 158 | if (i == _index) 159 | text += bgBegin + _cursor + " " + _options.at(i) + bgEnd + "\n"; 160 | else 161 | text += " " + _options.at(i) + "\n"; 162 | ++i; 163 | } 164 | 165 | return text; 166 | } 167 | } 168 | -------------------------------------------------------------------------------- /doxconfig.txt: -------------------------------------------------------------------------------- 1 | # Doxyfile 1.8.13 2 | 3 | # This file describes the settings to be used by the documentation system 4 | # doxygen (www.doxygen.org) for a project. 5 | # 6 | # All text after a double hash (##) is considered a comment and is placed in 7 | # front of the TAG it is preceding. 8 | # 9 | # All text after a single hash (#) is considered a comment and will be ignored. 10 | # The format is: 11 | # TAG = value [value, ...] 12 | # For lists, items can also be appended using: 13 | # TAG += value [value, ...] 14 | # Values that contain spaces should be placed between quotes (\" \"). 15 | 16 | #--------------------------------------------------------------------------- 17 | # Project related configuration options 18 | #--------------------------------------------------------------------------- 19 | 20 | # This tag specifies the encoding used for all characters in the config file 21 | # that follow. The default is UTF-8 which is also the encoding used for all text 22 | # before the first occurrence of this tag. Doxygen uses libiconv (or the iconv 23 | # built into libc) for the transcoding. See http://www.gnu.org/software/libiconv 24 | # for the list of possible encodings. 25 | # The default value is: UTF-8. 26 | 27 | DOXYFILE_ENCODING = UTF-8 28 | 29 | # The PROJECT_NAME tag is a single word (or a sequence of words surrounded by 30 | # double-quotes, unless you are using Doxywizard) that should identify the 31 | # project for which the documentation is generated. This name is used in the 32 | # title of most generated pages and in a few other places. 33 | # The default value is: My Project. 34 | 35 | PROJECT_NAME = "CliWidgets" 36 | 37 | # The PROJECT_NUMBER tag can be used to enter a project or revision number. This 38 | # could be handy for archiving the generated documentation or if some version 39 | # control system is used. 40 | 41 | PROJECT_NUMBER = 42 | 43 | # Using the PROJECT_BRIEF tag one can provide an optional one line description 44 | # for a project that appears at the top of each page and should give viewer a 45 | # quick idea about the purpose of the project. Keep the description short. 46 | 47 | PROJECT_BRIEF = 48 | 49 | # With the PROJECT_LOGO tag one can specify a logo or an icon that is included 50 | # in the documentation. The maximum height of the logo should not exceed 55 51 | # pixels and the maximum width should not exceed 200 pixels. Doxygen will copy 52 | # the logo to the output directory. 53 | 54 | PROJECT_LOGO = 55 | 56 | # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) path 57 | # into which the generated documentation will be written. If a relative path is 58 | # entered, it will be relative to the location where doxygen was started. If 59 | # left blank the current directory will be used. 60 | 61 | OUTPUT_DIRECTORY = documentation 62 | 63 | # If the CREATE_SUBDIRS tag is set to YES then doxygen will create 4096 sub- 64 | # directories (in 2 levels) under the output directory of each output format and 65 | # will distribute the generated files over these directories. Enabling this 66 | # option can be useful when feeding doxygen a huge amount of source files, where 67 | # putting all generated files in the same directory would otherwise causes 68 | # performance problems for the file system. 69 | # The default value is: NO. 70 | 71 | CREATE_SUBDIRS = NO 72 | 73 | # If the ALLOW_UNICODE_NAMES tag is set to YES, doxygen will allow non-ASCII 74 | # characters to appear in the names of generated files. If set to NO, non-ASCII 75 | # characters will be escaped, for example _xE3_x81_x84 will be used for Unicode 76 | # U+3044. 77 | # The default value is: NO. 78 | 79 | ALLOW_UNICODE_NAMES = NO 80 | 81 | # The OUTPUT_LANGUAGE tag is used to specify the language in which all 82 | # documentation generated by doxygen is written. Doxygen will use this 83 | # information to generate all constant output in the proper language. 84 | # Possible values are: Afrikaans, Arabic, Armenian, Brazilian, Catalan, Chinese, 85 | # Chinese-Traditional, Croatian, Czech, Danish, Dutch, English (United States), 86 | # Esperanto, Farsi (Persian), Finnish, French, German, Greek, Hungarian, 87 | # Indonesian, Italian, Japanese, Japanese-en (Japanese with English messages), 88 | # Korean, Korean-en (Korean with English messages), Latvian, Lithuanian, 89 | # Macedonian, Norwegian, Persian (Farsi), Polish, Portuguese, Romanian, Russian, 90 | # Serbian, Serbian-Cyrillic, Slovak, Slovene, Spanish, Swedish, Turkish, 91 | # Ukrainian and Vietnamese. 92 | # The default value is: English. 93 | 94 | OUTPUT_LANGUAGE = English 95 | 96 | # If the BRIEF_MEMBER_DESC tag is set to YES, doxygen will include brief member 97 | # descriptions after the members that are listed in the file and class 98 | # documentation (similar to Javadoc). Set to NO to disable this. 99 | # The default value is: YES. 100 | 101 | BRIEF_MEMBER_DESC = YES 102 | 103 | # If the REPEAT_BRIEF tag is set to YES, doxygen will prepend the brief 104 | # description of a member or function before the detailed description 105 | # 106 | # Note: If both HIDE_UNDOC_MEMBERS and BRIEF_MEMBER_DESC are set to NO, the 107 | # brief descriptions will be completely suppressed. 108 | # The default value is: YES. 109 | 110 | REPEAT_BRIEF = YES 111 | 112 | # This tag implements a quasi-intelligent brief description abbreviator that is 113 | # used to form the text in various listings. Each string in this list, if found 114 | # as the leading text of the brief description, will be stripped from the text 115 | # and the result, after processing the whole list, is used as the annotated 116 | # text. Otherwise, the brief description is used as-is. If left blank, the 117 | # following values are used ($name is automatically replaced with the name of 118 | # the entity):The $name class, The $name widget, The $name file, is, provides, 119 | # specifies, contains, represents, a, an and the. 120 | 121 | ABBREVIATE_BRIEF = "The $name class" \ 122 | "The $name widget" \ 123 | "The $name file" \ 124 | is \ 125 | provides \ 126 | specifies \ 127 | contains \ 128 | represents \ 129 | a \ 130 | an \ 131 | the 132 | 133 | # If the ALWAYS_DETAILED_SEC and REPEAT_BRIEF tags are both set to YES then 134 | # doxygen will generate a detailed section even if there is only a brief 135 | # description. 136 | # The default value is: NO. 137 | 138 | ALWAYS_DETAILED_SEC = NO 139 | 140 | # If the INLINE_INHERITED_MEMB tag is set to YES, doxygen will show all 141 | # inherited members of a class in the documentation of that class as if those 142 | # members were ordinary class members. Constructors, destructors and assignment 143 | # operators of the base classes will not be shown. 144 | # The default value is: NO. 145 | 146 | INLINE_INHERITED_MEMB = NO 147 | 148 | # If the FULL_PATH_NAMES tag is set to YES, doxygen will prepend the full path 149 | # before files name in the file list and in the header files. If set to NO the 150 | # shortest path that makes the file name unique will be used 151 | # The default value is: YES. 152 | 153 | FULL_PATH_NAMES = YES 154 | 155 | # The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path. 156 | # Stripping is only done if one of the specified strings matches the left-hand 157 | # part of the path. The tag can be used to show relative paths in the file list. 158 | # If left blank the directory from which doxygen is run is used as the path to 159 | # strip. 160 | # 161 | # Note that you can specify absolute paths here, but also relative paths, which 162 | # will be relative from the directory where doxygen is started. 163 | # This tag requires that the tag FULL_PATH_NAMES is set to YES. 164 | 165 | STRIP_FROM_PATH = 166 | 167 | # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the 168 | # path mentioned in the documentation of a class, which tells the reader which 169 | # header file to include in order to use a class. If left blank only the name of 170 | # the header file containing the class definition is used. Otherwise one should 171 | # specify the list of include paths that are normally passed to the compiler 172 | # using the -I flag. 173 | 174 | STRIP_FROM_INC_PATH = 175 | 176 | # If the SHORT_NAMES tag is set to YES, doxygen will generate much shorter (but 177 | # less readable) file names. This can be useful is your file systems doesn't 178 | # support long names like on DOS, Mac, or CD-ROM. 179 | # The default value is: NO. 180 | 181 | SHORT_NAMES = NO 182 | 183 | # If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the 184 | # first line (until the first dot) of a Javadoc-style comment as the brief 185 | # description. If set to NO, the Javadoc-style will behave just like regular Qt- 186 | # style comments (thus requiring an explicit @brief command for a brief 187 | # description.) 188 | # The default value is: NO. 189 | 190 | JAVADOC_AUTOBRIEF = NO 191 | 192 | # If the QT_AUTOBRIEF tag is set to YES then doxygen will interpret the first 193 | # line (until the first dot) of a Qt-style comment as the brief description. If 194 | # set to NO, the Qt-style will behave just like regular Qt-style comments (thus 195 | # requiring an explicit \brief command for a brief description.) 196 | # The default value is: NO. 197 | 198 | QT_AUTOBRIEF = NO 199 | 200 | # The MULTILINE_CPP_IS_BRIEF tag can be set to YES to make doxygen treat a 201 | # multi-line C++ special comment block (i.e. a block of //! or /// comments) as 202 | # a brief description. This used to be the default behavior. The new default is 203 | # to treat a multi-line C++ comment block as a detailed description. Set this 204 | # tag to YES if you prefer the old behavior instead. 205 | # 206 | # Note that setting this tag to YES also means that rational rose comments are 207 | # not recognized any more. 208 | # The default value is: NO. 209 | 210 | MULTILINE_CPP_IS_BRIEF = NO 211 | 212 | # If the INHERIT_DOCS tag is set to YES then an undocumented member inherits the 213 | # documentation from any documented member that it re-implements. 214 | # The default value is: YES. 215 | 216 | INHERIT_DOCS = YES 217 | 218 | # If the SEPARATE_MEMBER_PAGES tag is set to YES then doxygen will produce a new 219 | # page for each member. If set to NO, the documentation of a member will be part 220 | # of the file/class/namespace that contains it. 221 | # The default value is: NO. 222 | 223 | SEPARATE_MEMBER_PAGES = NO 224 | 225 | # The TAB_SIZE tag can be used to set the number of spaces in a tab. Doxygen 226 | # uses this value to replace tabs by spaces in code fragments. 227 | # Minimum value: 1, maximum value: 16, default value: 4. 228 | 229 | TAB_SIZE = 4 230 | 231 | # This tag can be used to specify a number of aliases that act as commands in 232 | # the documentation. An alias has the form: 233 | # name=value 234 | # For example adding 235 | # "sideeffect=@par Side Effects:\n" 236 | # will allow you to put the command \sideeffect (or @sideeffect) in the 237 | # documentation, which will result in a user-defined paragraph with heading 238 | # "Side Effects:". You can put \n's in the value part of an alias to insert 239 | # newlines. 240 | 241 | ALIASES = 242 | 243 | # This tag can be used to specify a number of word-keyword mappings (TCL only). 244 | # A mapping has the form "name=value". For example adding "class=itcl::class" 245 | # will allow you to use the command class in the itcl::class meaning. 246 | 247 | TCL_SUBST = 248 | 249 | # Set the OPTIMIZE_OUTPUT_FOR_C tag to YES if your project consists of C sources 250 | # only. Doxygen will then generate output that is more tailored for C. For 251 | # instance, some of the names that are used will be different. The list of all 252 | # members will be omitted, etc. 253 | # The default value is: NO. 254 | 255 | OPTIMIZE_OUTPUT_FOR_C = NO 256 | 257 | # Set the OPTIMIZE_OUTPUT_JAVA tag to YES if your project consists of Java or 258 | # Python sources only. Doxygen will then generate output that is more tailored 259 | # for that language. For instance, namespaces will be presented as packages, 260 | # qualified scopes will look different, etc. 261 | # The default value is: NO. 262 | 263 | OPTIMIZE_OUTPUT_JAVA = NO 264 | 265 | # Set the OPTIMIZE_FOR_FORTRAN tag to YES if your project consists of Fortran 266 | # sources. Doxygen will then generate output that is tailored for Fortran. 267 | # The default value is: NO. 268 | 269 | OPTIMIZE_FOR_FORTRAN = NO 270 | 271 | # Set the OPTIMIZE_OUTPUT_VHDL tag to YES if your project consists of VHDL 272 | # sources. Doxygen will then generate output that is tailored for VHDL. 273 | # The default value is: NO. 274 | 275 | OPTIMIZE_OUTPUT_VHDL = NO 276 | 277 | # Doxygen selects the parser to use depending on the extension of the files it 278 | # parses. With this tag you can assign which parser to use for a given 279 | # extension. Doxygen has a built-in mapping, but you can override or extend it 280 | # using this tag. The format is ext=language, where ext is a file extension, and 281 | # language is one of the parsers supported by doxygen: IDL, Java, Javascript, 282 | # C#, C, C++, D, PHP, Objective-C, Python, Fortran (fixed format Fortran: 283 | # FortranFixed, free formatted Fortran: FortranFree, unknown formatted Fortran: 284 | # Fortran. In the later case the parser tries to guess whether the code is fixed 285 | # or free formatted code, this is the default for Fortran type files), VHDL. For 286 | # instance to make doxygen treat .inc files as Fortran files (default is PHP), 287 | # and .f files as C (default is Fortran), use: inc=Fortran f=C. 288 | # 289 | # Note: For files without extension you can use no_extension as a placeholder. 290 | # 291 | # Note that for custom extensions you also need to set FILE_PATTERNS otherwise 292 | # the files are not read by doxygen. 293 | 294 | EXTENSION_MAPPING = 295 | 296 | # If the MARKDOWN_SUPPORT tag is enabled then doxygen pre-processes all comments 297 | # according to the Markdown format, which allows for more readable 298 | # documentation. See http://daringfireball.net/projects/markdown/ for details. 299 | # The output of markdown processing is further processed by doxygen, so you can 300 | # mix doxygen, HTML, and XML commands with Markdown formatting. Disable only in 301 | # case of backward compatibilities issues. 302 | # The default value is: YES. 303 | 304 | MARKDOWN_SUPPORT = YES 305 | 306 | # When the TOC_INCLUDE_HEADINGS tag is set to a non-zero value, all headings up 307 | # to that level are automatically included in the table of contents, even if 308 | # they do not have an id attribute. 309 | # Note: This feature currently applies only to Markdown headings. 310 | # Minimum value: 0, maximum value: 99, default value: 0. 311 | # This tag requires that the tag MARKDOWN_SUPPORT is set to YES. 312 | 313 | TOC_INCLUDE_HEADINGS = 0 314 | 315 | # When enabled doxygen tries to link words that correspond to documented 316 | # classes, or namespaces to their corresponding documentation. Such a link can 317 | # be prevented in individual cases by putting a % sign in front of the word or 318 | # globally by setting AUTOLINK_SUPPORT to NO. 319 | # The default value is: YES. 320 | 321 | AUTOLINK_SUPPORT = YES 322 | 323 | # If you use STL classes (i.e. std::string, std::vector, etc.) but do not want 324 | # to include (a tag file for) the STL sources as input, then you should set this 325 | # tag to YES in order to let doxygen match functions declarations and 326 | # definitions whose arguments contain STL classes (e.g. func(std::string); 327 | # versus func(std::string) {}). This also make the inheritance and collaboration 328 | # diagrams that involve STL classes more complete and accurate. 329 | # The default value is: NO. 330 | 331 | BUILTIN_STL_SUPPORT = NO 332 | 333 | # If you use Microsoft's C++/CLI language, you should set this option to YES to 334 | # enable parsing support. 335 | # The default value is: NO. 336 | 337 | CPP_CLI_SUPPORT = NO 338 | 339 | # Set the SIP_SUPPORT tag to YES if your project consists of sip (see: 340 | # http://www.riverbankcomputing.co.uk/software/sip/intro) sources only. Doxygen 341 | # will parse them like normal C++ but will assume all classes use public instead 342 | # of private inheritance when no explicit protection keyword is present. 343 | # The default value is: NO. 344 | 345 | SIP_SUPPORT = NO 346 | 347 | # For Microsoft's IDL there are propget and propput attributes to indicate 348 | # getter and setter methods for a property. Setting this option to YES will make 349 | # doxygen to replace the get and set methods by a property in the documentation. 350 | # This will only work if the methods are indeed getting or setting a simple 351 | # type. If this is not the case, or you want to show the methods anyway, you 352 | # should set this option to NO. 353 | # The default value is: YES. 354 | 355 | IDL_PROPERTY_SUPPORT = YES 356 | 357 | # If member grouping is used in the documentation and the DISTRIBUTE_GROUP_DOC 358 | # tag is set to YES then doxygen will reuse the documentation of the first 359 | # member in the group (if any) for the other members of the group. By default 360 | # all members of a group must be documented explicitly. 361 | # The default value is: NO. 362 | 363 | DISTRIBUTE_GROUP_DOC = NO 364 | 365 | # If one adds a struct or class to a group and this option is enabled, then also 366 | # any nested class or struct is added to the same group. By default this option 367 | # is disabled and one has to add nested compounds explicitly via \ingroup. 368 | # The default value is: NO. 369 | 370 | GROUP_NESTED_COMPOUNDS = NO 371 | 372 | # Set the SUBGROUPING tag to YES to allow class member groups of the same type 373 | # (for instance a group of public functions) to be put as a subgroup of that 374 | # type (e.g. under the Public Functions section). Set it to NO to prevent 375 | # subgrouping. Alternatively, this can be done per class using the 376 | # \nosubgrouping command. 377 | # The default value is: YES. 378 | 379 | SUBGROUPING = YES 380 | 381 | # When the INLINE_GROUPED_CLASSES tag is set to YES, classes, structs and unions 382 | # are shown inside the group in which they are included (e.g. using \ingroup) 383 | # instead of on a separate page (for HTML and Man pages) or section (for LaTeX 384 | # and RTF). 385 | # 386 | # Note that this feature does not work in combination with 387 | # SEPARATE_MEMBER_PAGES. 388 | # The default value is: NO. 389 | 390 | INLINE_GROUPED_CLASSES = NO 391 | 392 | # When the INLINE_SIMPLE_STRUCTS tag is set to YES, structs, classes, and unions 393 | # with only public data fields or simple typedef fields will be shown inline in 394 | # the documentation of the scope in which they are defined (i.e. file, 395 | # namespace, or group documentation), provided this scope is documented. If set 396 | # to NO, structs, classes, and unions are shown on a separate page (for HTML and 397 | # Man pages) or section (for LaTeX and RTF). 398 | # The default value is: NO. 399 | 400 | INLINE_SIMPLE_STRUCTS = NO 401 | 402 | # When TYPEDEF_HIDES_STRUCT tag is enabled, a typedef of a struct, union, or 403 | # enum is documented as struct, union, or enum with the name of the typedef. So 404 | # typedef struct TypeS {} TypeT, will appear in the documentation as a struct 405 | # with name TypeT. When disabled the typedef will appear as a member of a file, 406 | # namespace, or class. And the struct will be named TypeS. This can typically be 407 | # useful for C code in case the coding convention dictates that all compound 408 | # types are typedef'ed and only the typedef is referenced, never the tag name. 409 | # The default value is: NO. 410 | 411 | TYPEDEF_HIDES_STRUCT = NO 412 | 413 | # The size of the symbol lookup cache can be set using LOOKUP_CACHE_SIZE. This 414 | # cache is used to resolve symbols given their name and scope. Since this can be 415 | # an expensive process and often the same symbol appears multiple times in the 416 | # code, doxygen keeps a cache of pre-resolved symbols. If the cache is too small 417 | # doxygen will become slower. If the cache is too large, memory is wasted. The 418 | # cache size is given by this formula: 2^(16+LOOKUP_CACHE_SIZE). The valid range 419 | # is 0..9, the default is 0, corresponding to a cache size of 2^16=65536 420 | # symbols. At the end of a run doxygen will report the cache usage and suggest 421 | # the optimal cache size from a speed point of view. 422 | # Minimum value: 0, maximum value: 9, default value: 0. 423 | 424 | LOOKUP_CACHE_SIZE = 0 425 | 426 | #--------------------------------------------------------------------------- 427 | # Build related configuration options 428 | #--------------------------------------------------------------------------- 429 | 430 | # If the EXTRACT_ALL tag is set to YES, doxygen will assume all entities in 431 | # documentation are documented, even if no documentation was available. Private 432 | # class members and static file members will be hidden unless the 433 | # EXTRACT_PRIVATE respectively EXTRACT_STATIC tags are set to YES. 434 | # Note: This will also disable the warnings about undocumented members that are 435 | # normally produced when WARNINGS is set to YES. 436 | # The default value is: NO. 437 | 438 | EXTRACT_ALL = NO 439 | 440 | # If the EXTRACT_PRIVATE tag is set to YES, all private members of a class will 441 | # be included in the documentation. 442 | # The default value is: NO. 443 | 444 | EXTRACT_PRIVATE = NO 445 | 446 | # If the EXTRACT_PACKAGE tag is set to YES, all members with package or internal 447 | # scope will be included in the documentation. 448 | # The default value is: NO. 449 | 450 | EXTRACT_PACKAGE = NO 451 | 452 | # If the EXTRACT_STATIC tag is set to YES, all static members of a file will be 453 | # included in the documentation. 454 | # The default value is: NO. 455 | 456 | EXTRACT_STATIC = NO 457 | 458 | # If the EXTRACT_LOCAL_CLASSES tag is set to YES, classes (and structs) defined 459 | # locally in source files will be included in the documentation. If set to NO, 460 | # only classes defined in header files are included. Does not have any effect 461 | # for Java sources. 462 | # The default value is: YES. 463 | 464 | EXTRACT_LOCAL_CLASSES = YES 465 | 466 | # This flag is only useful for Objective-C code. If set to YES, local methods, 467 | # which are defined in the implementation section but not in the interface are 468 | # included in the documentation. If set to NO, only methods in the interface are 469 | # included. 470 | # The default value is: NO. 471 | 472 | EXTRACT_LOCAL_METHODS = NO 473 | 474 | # If this flag is set to YES, the members of anonymous namespaces will be 475 | # extracted and appear in the documentation as a namespace called 476 | # 'anonymous_namespace{file}', where file will be replaced with the base name of 477 | # the file that contains the anonymous namespace. By default anonymous namespace 478 | # are hidden. 479 | # The default value is: NO. 480 | 481 | EXTRACT_ANON_NSPACES = NO 482 | 483 | # If the HIDE_UNDOC_MEMBERS tag is set to YES, doxygen will hide all 484 | # undocumented members inside documented classes or files. If set to NO these 485 | # members will be included in the various overviews, but no documentation 486 | # section is generated. This option has no effect if EXTRACT_ALL is enabled. 487 | # The default value is: NO. 488 | 489 | HIDE_UNDOC_MEMBERS = NO 490 | 491 | # If the HIDE_UNDOC_CLASSES tag is set to YES, doxygen will hide all 492 | # undocumented classes that are normally visible in the class hierarchy. If set 493 | # to NO, these classes will be included in the various overviews. This option 494 | # has no effect if EXTRACT_ALL is enabled. 495 | # The default value is: NO. 496 | 497 | HIDE_UNDOC_CLASSES = NO 498 | 499 | # If the HIDE_FRIEND_COMPOUNDS tag is set to YES, doxygen will hide all friend 500 | # (class|struct|union) declarations. If set to NO, these declarations will be 501 | # included in the documentation. 502 | # The default value is: NO. 503 | 504 | HIDE_FRIEND_COMPOUNDS = NO 505 | 506 | # If the HIDE_IN_BODY_DOCS tag is set to YES, doxygen will hide any 507 | # documentation blocks found inside the body of a function. If set to NO, these 508 | # blocks will be appended to the function's detailed documentation block. 509 | # The default value is: NO. 510 | 511 | HIDE_IN_BODY_DOCS = NO 512 | 513 | # The INTERNAL_DOCS tag determines if documentation that is typed after a 514 | # \internal command is included. If the tag is set to NO then the documentation 515 | # will be excluded. Set it to YES to include the internal documentation. 516 | # The default value is: NO. 517 | 518 | INTERNAL_DOCS = NO 519 | 520 | # If the CASE_SENSE_NAMES tag is set to NO then doxygen will only generate file 521 | # names in lower-case letters. If set to YES, upper-case letters are also 522 | # allowed. This is useful if you have classes or files whose names only differ 523 | # in case and if your file system supports case sensitive file names. Windows 524 | # and Mac users are advised to set this option to NO. 525 | # The default value is: system dependent. 526 | 527 | CASE_SENSE_NAMES = YES 528 | 529 | # If the HIDE_SCOPE_NAMES tag is set to NO then doxygen will show members with 530 | # their full class and namespace scopes in the documentation. If set to YES, the 531 | # scope will be hidden. 532 | # The default value is: NO. 533 | 534 | HIDE_SCOPE_NAMES = NO 535 | 536 | # If the HIDE_COMPOUND_REFERENCE tag is set to NO (default) then doxygen will 537 | # append additional text to a page's title, such as Class Reference. If set to 538 | # YES the compound reference will be hidden. 539 | # The default value is: NO. 540 | 541 | HIDE_COMPOUND_REFERENCE= NO 542 | 543 | # If the SHOW_INCLUDE_FILES tag is set to YES then doxygen will put a list of 544 | # the files that are included by a file in the documentation of that file. 545 | # The default value is: YES. 546 | 547 | SHOW_INCLUDE_FILES = YES 548 | 549 | # If the SHOW_GROUPED_MEMB_INC tag is set to YES then Doxygen will add for each 550 | # grouped member an include statement to the documentation, telling the reader 551 | # which file to include in order to use the member. 552 | # The default value is: NO. 553 | 554 | SHOW_GROUPED_MEMB_INC = NO 555 | 556 | # If the FORCE_LOCAL_INCLUDES tag is set to YES then doxygen will list include 557 | # files with double quotes in the documentation rather than with sharp brackets. 558 | # The default value is: NO. 559 | 560 | FORCE_LOCAL_INCLUDES = NO 561 | 562 | # If the INLINE_INFO tag is set to YES then a tag [inline] is inserted in the 563 | # documentation for inline members. 564 | # The default value is: YES. 565 | 566 | INLINE_INFO = YES 567 | 568 | # If the SORT_MEMBER_DOCS tag is set to YES then doxygen will sort the 569 | # (detailed) documentation of file and class members alphabetically by member 570 | # name. If set to NO, the members will appear in declaration order. 571 | # The default value is: YES. 572 | 573 | SORT_MEMBER_DOCS = YES 574 | 575 | # If the SORT_BRIEF_DOCS tag is set to YES then doxygen will sort the brief 576 | # descriptions of file, namespace and class members alphabetically by member 577 | # name. If set to NO, the members will appear in declaration order. Note that 578 | # this will also influence the order of the classes in the class list. 579 | # The default value is: NO. 580 | 581 | SORT_BRIEF_DOCS = NO 582 | 583 | # If the SORT_MEMBERS_CTORS_1ST tag is set to YES then doxygen will sort the 584 | # (brief and detailed) documentation of class members so that constructors and 585 | # destructors are listed first. If set to NO the constructors will appear in the 586 | # respective orders defined by SORT_BRIEF_DOCS and SORT_MEMBER_DOCS. 587 | # Note: If SORT_BRIEF_DOCS is set to NO this option is ignored for sorting brief 588 | # member documentation. 589 | # Note: If SORT_MEMBER_DOCS is set to NO this option is ignored for sorting 590 | # detailed member documentation. 591 | # The default value is: NO. 592 | 593 | SORT_MEMBERS_CTORS_1ST = NO 594 | 595 | # If the SORT_GROUP_NAMES tag is set to YES then doxygen will sort the hierarchy 596 | # of group names into alphabetical order. If set to NO the group names will 597 | # appear in their defined order. 598 | # The default value is: NO. 599 | 600 | SORT_GROUP_NAMES = NO 601 | 602 | # If the SORT_BY_SCOPE_NAME tag is set to YES, the class list will be sorted by 603 | # fully-qualified names, including namespaces. If set to NO, the class list will 604 | # be sorted only by class name, not including the namespace part. 605 | # Note: This option is not very useful if HIDE_SCOPE_NAMES is set to YES. 606 | # Note: This option applies only to the class list, not to the alphabetical 607 | # list. 608 | # The default value is: NO. 609 | 610 | SORT_BY_SCOPE_NAME = NO 611 | 612 | # If the STRICT_PROTO_MATCHING option is enabled and doxygen fails to do proper 613 | # type resolution of all parameters of a function it will reject a match between 614 | # the prototype and the implementation of a member function even if there is 615 | # only one candidate or it is obvious which candidate to choose by doing a 616 | # simple string match. By disabling STRICT_PROTO_MATCHING doxygen will still 617 | # accept a match between prototype and implementation in such cases. 618 | # The default value is: NO. 619 | 620 | STRICT_PROTO_MATCHING = NO 621 | 622 | # The GENERATE_TODOLIST tag can be used to enable (YES) or disable (NO) the todo 623 | # list. This list is created by putting \todo commands in the documentation. 624 | # The default value is: YES. 625 | 626 | GENERATE_TODOLIST = YES 627 | 628 | # The GENERATE_TESTLIST tag can be used to enable (YES) or disable (NO) the test 629 | # list. This list is created by putting \test commands in the documentation. 630 | # The default value is: YES. 631 | 632 | GENERATE_TESTLIST = YES 633 | 634 | # The GENERATE_BUGLIST tag can be used to enable (YES) or disable (NO) the bug 635 | # list. This list is created by putting \bug commands in the documentation. 636 | # The default value is: YES. 637 | 638 | GENERATE_BUGLIST = YES 639 | 640 | # The GENERATE_DEPRECATEDLIST tag can be used to enable (YES) or disable (NO) 641 | # the deprecated list. This list is created by putting \deprecated commands in 642 | # the documentation. 643 | # The default value is: YES. 644 | 645 | GENERATE_DEPRECATEDLIST= YES 646 | 647 | # The ENABLED_SECTIONS tag can be used to enable conditional documentation 648 | # sections, marked by \if ... \endif and \cond 649 | # ... \endcond blocks. 650 | 651 | ENABLED_SECTIONS = 652 | 653 | # The MAX_INITIALIZER_LINES tag determines the maximum number of lines that the 654 | # initial value of a variable or macro / define can have for it to appear in the 655 | # documentation. If the initializer consists of more lines than specified here 656 | # it will be hidden. Use a value of 0 to hide initializers completely. The 657 | # appearance of the value of individual variables and macros / defines can be 658 | # controlled using \showinitializer or \hideinitializer command in the 659 | # documentation regardless of this setting. 660 | # Minimum value: 0, maximum value: 10000, default value: 30. 661 | 662 | MAX_INITIALIZER_LINES = 30 663 | 664 | # Set the SHOW_USED_FILES tag to NO to disable the list of files generated at 665 | # the bottom of the documentation of classes and structs. If set to YES, the 666 | # list will mention the files that were used to generate the documentation. 667 | # The default value is: YES. 668 | 669 | SHOW_USED_FILES = YES 670 | 671 | # Set the SHOW_FILES tag to NO to disable the generation of the Files page. This 672 | # will remove the Files entry from the Quick Index and from the Folder Tree View 673 | # (if specified). 674 | # The default value is: YES. 675 | 676 | SHOW_FILES = YES 677 | 678 | # Set the SHOW_NAMESPACES tag to NO to disable the generation of the Namespaces 679 | # page. This will remove the Namespaces entry from the Quick Index and from the 680 | # Folder Tree View (if specified). 681 | # The default value is: YES. 682 | 683 | SHOW_NAMESPACES = YES 684 | 685 | # The FILE_VERSION_FILTER tag can be used to specify a program or script that 686 | # doxygen should invoke to get the current version for each file (typically from 687 | # the version control system). Doxygen will invoke the program by executing (via 688 | # popen()) the command command input-file, where command is the value of the 689 | # FILE_VERSION_FILTER tag, and input-file is the name of an input file provided 690 | # by doxygen. Whatever the program writes to standard output is used as the file 691 | # version. For an example see the documentation. 692 | 693 | FILE_VERSION_FILTER = 694 | 695 | # The LAYOUT_FILE tag can be used to specify a layout file which will be parsed 696 | # by doxygen. The layout file controls the global structure of the generated 697 | # output files in an output format independent way. To create the layout file 698 | # that represents doxygen's defaults, run doxygen with the -l option. You can 699 | # optionally specify a file name after the option, if omitted DoxygenLayout.xml 700 | # will be used as the name of the layout file. 701 | # 702 | # Note that if you run doxygen from a directory containing a file called 703 | # DoxygenLayout.xml, doxygen will parse it automatically even if the LAYOUT_FILE 704 | # tag is left empty. 705 | 706 | LAYOUT_FILE = 707 | 708 | # The CITE_BIB_FILES tag can be used to specify one or more bib files containing 709 | # the reference definitions. This must be a list of .bib files. The .bib 710 | # extension is automatically appended if omitted. This requires the bibtex tool 711 | # to be installed. See also http://en.wikipedia.org/wiki/BibTeX for more info. 712 | # For LaTeX the style of the bibliography can be controlled using 713 | # LATEX_BIB_STYLE. To use this feature you need bibtex and perl available in the 714 | # search path. See also \cite for info how to create references. 715 | 716 | CITE_BIB_FILES = 717 | 718 | #--------------------------------------------------------------------------- 719 | # Configuration options related to warning and progress messages 720 | #--------------------------------------------------------------------------- 721 | 722 | # The QUIET tag can be used to turn on/off the messages that are generated to 723 | # standard output by doxygen. If QUIET is set to YES this implies that the 724 | # messages are off. 725 | # The default value is: NO. 726 | 727 | QUIET = NO 728 | 729 | # The WARNINGS tag can be used to turn on/off the warning messages that are 730 | # generated to standard error (stderr) by doxygen. If WARNINGS is set to YES 731 | # this implies that the warnings are on. 732 | # 733 | # Tip: Turn warnings on while writing the documentation. 734 | # The default value is: YES. 735 | 736 | WARNINGS = YES 737 | 738 | # If the WARN_IF_UNDOCUMENTED tag is set to YES then doxygen will generate 739 | # warnings for undocumented members. If EXTRACT_ALL is set to YES then this flag 740 | # will automatically be disabled. 741 | # The default value is: YES. 742 | 743 | WARN_IF_UNDOCUMENTED = YES 744 | 745 | # If the WARN_IF_DOC_ERROR tag is set to YES, doxygen will generate warnings for 746 | # potential errors in the documentation, such as not documenting some parameters 747 | # in a documented function, or documenting parameters that don't exist or using 748 | # markup commands wrongly. 749 | # The default value is: YES. 750 | 751 | WARN_IF_DOC_ERROR = YES 752 | 753 | # This WARN_NO_PARAMDOC option can be enabled to get warnings for functions that 754 | # are documented, but have no documentation for their parameters or return 755 | # value. If set to NO, doxygen will only warn about wrong or incomplete 756 | # parameter documentation, but not about the absence of documentation. 757 | # The default value is: NO. 758 | 759 | WARN_NO_PARAMDOC = NO 760 | 761 | # If the WARN_AS_ERROR tag is set to YES then doxygen will immediately stop when 762 | # a warning is encountered. 763 | # The default value is: NO. 764 | 765 | WARN_AS_ERROR = NO 766 | 767 | # The WARN_FORMAT tag determines the format of the warning messages that doxygen 768 | # can produce. The string should contain the $file, $line, and $text tags, which 769 | # will be replaced by the file and line number from which the warning originated 770 | # and the warning text. Optionally the format may contain $version, which will 771 | # be replaced by the version of the file (if it could be obtained via 772 | # FILE_VERSION_FILTER) 773 | # The default value is: $file:$line: $text. 774 | 775 | WARN_FORMAT = "$file:$line: $text" 776 | 777 | # The WARN_LOGFILE tag can be used to specify a file to which warning and error 778 | # messages should be written. If left blank the output is written to standard 779 | # error (stderr). 780 | 781 | WARN_LOGFILE = 782 | 783 | #--------------------------------------------------------------------------- 784 | # Configuration options related to the input files 785 | #--------------------------------------------------------------------------- 786 | 787 | # The INPUT tag is used to specify the files and/or directories that contain 788 | # documented source files. You may enter file names like myfile.cpp or 789 | # directories like /usr/src/myproject. Separate the files or directories with 790 | # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING 791 | # Note: If this tag is empty the current directory is searched. 792 | 793 | INPUT = src/ 794 | 795 | # This tag can be used to specify the character encoding of the source files 796 | # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses 797 | # libiconv (or the iconv built into libc) for the transcoding. See the libiconv 798 | # documentation (see: http://www.gnu.org/software/libiconv) for the list of 799 | # possible encodings. 800 | # The default value is: UTF-8. 801 | 802 | INPUT_ENCODING = UTF-8 803 | 804 | # If the value of the INPUT tag contains directories, you can use the 805 | # FILE_PATTERNS tag to specify one or more wildcard patterns (like *.cpp and 806 | # *.h) to filter out the source-files in the directories. 807 | # 808 | # Note that for custom extensions or not directly supported extensions you also 809 | # need to set EXTENSION_MAPPING for the extension otherwise the files are not 810 | # read by doxygen. 811 | # 812 | # If left blank the following patterns are tested:*.c, *.cc, *.cxx, *.cpp, 813 | # *.c++, *.java, *.ii, *.ixx, *.ipp, *.i++, *.inl, *.idl, *.ddl, *.odl, *.h, 814 | # *.hh, *.hxx, *.hpp, *.h++, *.cs, *.d, *.php, *.php4, *.php5, *.phtml, *.inc, 815 | # *.m, *.markdown, *.md, *.mm, *.dox, *.py, *.pyw, *.f90, *.f95, *.f03, *.f08, 816 | # *.f, *.for, *.tcl, *.vhd, *.vhdl, *.ucf and *.qsf. 817 | 818 | FILE_PATTERNS = *.c \ 819 | *.cc \ 820 | *.cxx \ 821 | *.cpp \ 822 | *.c++ \ 823 | *.java \ 824 | *.ii \ 825 | *.ixx \ 826 | *.ipp \ 827 | *.i++ \ 828 | *.inl \ 829 | *.idl \ 830 | *.ddl \ 831 | *.odl \ 832 | *.h \ 833 | *.hh \ 834 | *.hxx \ 835 | *.hpp \ 836 | *.h++ \ 837 | *.cs \ 838 | *.d \ 839 | *.php \ 840 | *.php4 \ 841 | *.php5 \ 842 | *.phtml \ 843 | *.inc \ 844 | *.m \ 845 | *.markdown \ 846 | *.md \ 847 | *.mm \ 848 | *.dox \ 849 | *.py \ 850 | *.pyw \ 851 | *.f90 \ 852 | *.f95 \ 853 | *.f03 \ 854 | *.f08 \ 855 | *.f \ 856 | *.for \ 857 | *.tcl \ 858 | *.vhd \ 859 | *.vhdl \ 860 | *.ucf \ 861 | *.qsf 862 | 863 | # The RECURSIVE tag can be used to specify whether or not subdirectories should 864 | # be searched for input files as well. 865 | # The default value is: NO. 866 | 867 | RECURSIVE = NO 868 | 869 | # The EXCLUDE tag can be used to specify files and/or directories that should be 870 | # excluded from the INPUT source files. This way you can easily exclude a 871 | # subdirectory from a directory tree whose root is specified with the INPUT tag. 872 | # 873 | # Note that relative paths are relative to the directory from which doxygen is 874 | # run. 875 | 876 | EXCLUDE = 877 | 878 | # The EXCLUDE_SYMLINKS tag can be used to select whether or not files or 879 | # directories that are symbolic links (a Unix file system feature) are excluded 880 | # from the input. 881 | # The default value is: NO. 882 | 883 | EXCLUDE_SYMLINKS = NO 884 | 885 | # If the value of the INPUT tag contains directories, you can use the 886 | # EXCLUDE_PATTERNS tag to specify one or more wildcard patterns to exclude 887 | # certain files from those directories. 888 | # 889 | # Note that the wildcards are matched against the file with absolute path, so to 890 | # exclude all test directories for example use the pattern */test/* 891 | 892 | EXCLUDE_PATTERNS = 893 | 894 | # The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names 895 | # (namespaces, classes, functions, etc.) that should be excluded from the 896 | # output. The symbol name can be a fully qualified name, a word, or if the 897 | # wildcard * is used, a substring. Examples: ANamespace, AClass, 898 | # AClass::ANamespace, ANamespace::*Test 899 | # 900 | # Note that the wildcards are matched against the file with absolute path, so to 901 | # exclude all test directories use the pattern */test/* 902 | 903 | EXCLUDE_SYMBOLS = 904 | 905 | # The EXAMPLE_PATH tag can be used to specify one or more files or directories 906 | # that contain example code fragments that are included (see the \include 907 | # command). 908 | 909 | EXAMPLE_PATH = 910 | 911 | # If the value of the EXAMPLE_PATH tag contains directories, you can use the 912 | # EXAMPLE_PATTERNS tag to specify one or more wildcard pattern (like *.cpp and 913 | # *.h) to filter out the source-files in the directories. If left blank all 914 | # files are included. 915 | 916 | EXAMPLE_PATTERNS = * 917 | 918 | # If the EXAMPLE_RECURSIVE tag is set to YES then subdirectories will be 919 | # searched for input files to be used with the \include or \dontinclude commands 920 | # irrespective of the value of the RECURSIVE tag. 921 | # The default value is: NO. 922 | 923 | EXAMPLE_RECURSIVE = NO 924 | 925 | # The IMAGE_PATH tag can be used to specify one or more files or directories 926 | # that contain images that are to be included in the documentation (see the 927 | # \image command). 928 | 929 | IMAGE_PATH = 930 | 931 | # The INPUT_FILTER tag can be used to specify a program that doxygen should 932 | # invoke to filter for each input file. Doxygen will invoke the filter program 933 | # by executing (via popen()) the command: 934 | # 935 | # 936 | # 937 | # where is the value of the INPUT_FILTER tag, and is the 938 | # name of an input file. Doxygen will then use the output that the filter 939 | # program writes to standard output. If FILTER_PATTERNS is specified, this tag 940 | # will be ignored. 941 | # 942 | # Note that the filter must not add or remove lines; it is applied before the 943 | # code is scanned, but not when the output code is generated. If lines are added 944 | # or removed, the anchors will not be placed correctly. 945 | # 946 | # Note that for custom extensions or not directly supported extensions you also 947 | # need to set EXTENSION_MAPPING for the extension otherwise the files are not 948 | # properly processed by doxygen. 949 | 950 | INPUT_FILTER = 951 | 952 | # The FILTER_PATTERNS tag can be used to specify filters on a per file pattern 953 | # basis. Doxygen will compare the file name with each pattern and apply the 954 | # filter if there is a match. The filters are a list of the form: pattern=filter 955 | # (like *.cpp=my_cpp_filter). See INPUT_FILTER for further information on how 956 | # filters are used. If the FILTER_PATTERNS tag is empty or if none of the 957 | # patterns match the file name, INPUT_FILTER is applied. 958 | # 959 | # Note that for custom extensions or not directly supported extensions you also 960 | # need to set EXTENSION_MAPPING for the extension otherwise the files are not 961 | # properly processed by doxygen. 962 | 963 | FILTER_PATTERNS = 964 | 965 | # If the FILTER_SOURCE_FILES tag is set to YES, the input filter (if set using 966 | # INPUT_FILTER) will also be used to filter the input files that are used for 967 | # producing the source files to browse (i.e. when SOURCE_BROWSER is set to YES). 968 | # The default value is: NO. 969 | 970 | FILTER_SOURCE_FILES = NO 971 | 972 | # The FILTER_SOURCE_PATTERNS tag can be used to specify source filters per file 973 | # pattern. A pattern will override the setting for FILTER_PATTERN (if any) and 974 | # it is also possible to disable source filtering for a specific pattern using 975 | # *.ext= (so without naming a filter). 976 | # This tag requires that the tag FILTER_SOURCE_FILES is set to YES. 977 | 978 | FILTER_SOURCE_PATTERNS = 979 | 980 | # If the USE_MDFILE_AS_MAINPAGE tag refers to the name of a markdown file that 981 | # is part of the input, its contents will be placed on the main page 982 | # (index.html). This can be useful if you have a project on for instance GitHub 983 | # and want to reuse the introduction page also for the doxygen output. 984 | 985 | USE_MDFILE_AS_MAINPAGE = 986 | 987 | #--------------------------------------------------------------------------- 988 | # Configuration options related to source browsing 989 | #--------------------------------------------------------------------------- 990 | 991 | # If the SOURCE_BROWSER tag is set to YES then a list of source files will be 992 | # generated. Documented entities will be cross-referenced with these sources. 993 | # 994 | # Note: To get rid of all source code in the generated output, make sure that 995 | # also VERBATIM_HEADERS is set to NO. 996 | # The default value is: NO. 997 | 998 | SOURCE_BROWSER = NO 999 | 1000 | # Setting the INLINE_SOURCES tag to YES will include the body of functions, 1001 | # classes and enums directly into the documentation. 1002 | # The default value is: NO. 1003 | 1004 | INLINE_SOURCES = NO 1005 | 1006 | # Setting the STRIP_CODE_COMMENTS tag to YES will instruct doxygen to hide any 1007 | # special comment blocks from generated source code fragments. Normal C, C++ and 1008 | # Fortran comments will always remain visible. 1009 | # The default value is: YES. 1010 | 1011 | STRIP_CODE_COMMENTS = YES 1012 | 1013 | # If the REFERENCED_BY_RELATION tag is set to YES then for each documented 1014 | # function all documented functions referencing it will be listed. 1015 | # The default value is: NO. 1016 | 1017 | REFERENCED_BY_RELATION = NO 1018 | 1019 | # If the REFERENCES_RELATION tag is set to YES then for each documented function 1020 | # all documented entities called/used by that function will be listed. 1021 | # The default value is: NO. 1022 | 1023 | REFERENCES_RELATION = NO 1024 | 1025 | # If the REFERENCES_LINK_SOURCE tag is set to YES and SOURCE_BROWSER tag is set 1026 | # to YES then the hyperlinks from functions in REFERENCES_RELATION and 1027 | # REFERENCED_BY_RELATION lists will link to the source code. Otherwise they will 1028 | # link to the documentation. 1029 | # The default value is: YES. 1030 | 1031 | REFERENCES_LINK_SOURCE = YES 1032 | 1033 | # If SOURCE_TOOLTIPS is enabled (the default) then hovering a hyperlink in the 1034 | # source code will show a tooltip with additional information such as prototype, 1035 | # brief description and links to the definition and documentation. Since this 1036 | # will make the HTML file larger and loading of large files a bit slower, you 1037 | # can opt to disable this feature. 1038 | # The default value is: YES. 1039 | # This tag requires that the tag SOURCE_BROWSER is set to YES. 1040 | 1041 | SOURCE_TOOLTIPS = YES 1042 | 1043 | # If the USE_HTAGS tag is set to YES then the references to source code will 1044 | # point to the HTML generated by the htags(1) tool instead of doxygen built-in 1045 | # source browser. The htags tool is part of GNU's global source tagging system 1046 | # (see http://www.gnu.org/software/global/global.html). You will need version 1047 | # 4.8.6 or higher. 1048 | # 1049 | # To use it do the following: 1050 | # - Install the latest version of global 1051 | # - Enable SOURCE_BROWSER and USE_HTAGS in the config file 1052 | # - Make sure the INPUT points to the root of the source tree 1053 | # - Run doxygen as normal 1054 | # 1055 | # Doxygen will invoke htags (and that will in turn invoke gtags), so these 1056 | # tools must be available from the command line (i.e. in the search path). 1057 | # 1058 | # The result: instead of the source browser generated by doxygen, the links to 1059 | # source code will now point to the output of htags. 1060 | # The default value is: NO. 1061 | # This tag requires that the tag SOURCE_BROWSER is set to YES. 1062 | 1063 | USE_HTAGS = NO 1064 | 1065 | # If the VERBATIM_HEADERS tag is set the YES then doxygen will generate a 1066 | # verbatim copy of the header file for each class for which an include is 1067 | # specified. Set to NO to disable this. 1068 | # See also: Section \class. 1069 | # The default value is: YES. 1070 | 1071 | VERBATIM_HEADERS = YES 1072 | 1073 | # If the CLANG_ASSISTED_PARSING tag is set to YES then doxygen will use the 1074 | # clang parser (see: http://clang.llvm.org/) for more accurate parsing at the 1075 | # cost of reduced performance. This can be particularly helpful with template 1076 | # rich C++ code for which doxygen's built-in parser lacks the necessary type 1077 | # information. 1078 | # Note: The availability of this option depends on whether or not doxygen was 1079 | # generated with the -Duse-libclang=ON option for CMake. 1080 | # The default value is: NO. 1081 | 1082 | CLANG_ASSISTED_PARSING = NO 1083 | 1084 | # If clang assisted parsing is enabled you can provide the compiler with command 1085 | # line options that you would normally use when invoking the compiler. Note that 1086 | # the include paths will already be set by doxygen for the files and directories 1087 | # specified with INPUT and INCLUDE_PATH. 1088 | # This tag requires that the tag CLANG_ASSISTED_PARSING is set to YES. 1089 | 1090 | CLANG_OPTIONS = 1091 | 1092 | #--------------------------------------------------------------------------- 1093 | # Configuration options related to the alphabetical class index 1094 | #--------------------------------------------------------------------------- 1095 | 1096 | # If the ALPHABETICAL_INDEX tag is set to YES, an alphabetical index of all 1097 | # compounds will be generated. Enable this if the project contains a lot of 1098 | # classes, structs, unions or interfaces. 1099 | # The default value is: YES. 1100 | 1101 | ALPHABETICAL_INDEX = YES 1102 | 1103 | # The COLS_IN_ALPHA_INDEX tag can be used to specify the number of columns in 1104 | # which the alphabetical index list will be split. 1105 | # Minimum value: 1, maximum value: 20, default value: 5. 1106 | # This tag requires that the tag ALPHABETICAL_INDEX is set to YES. 1107 | 1108 | COLS_IN_ALPHA_INDEX = 5 1109 | 1110 | # In case all classes in a project start with a common prefix, all classes will 1111 | # be put under the same header in the alphabetical index. The IGNORE_PREFIX tag 1112 | # can be used to specify a prefix (or a list of prefixes) that should be ignored 1113 | # while generating the index headers. 1114 | # This tag requires that the tag ALPHABETICAL_INDEX is set to YES. 1115 | 1116 | IGNORE_PREFIX = 1117 | 1118 | #--------------------------------------------------------------------------- 1119 | # Configuration options related to the HTML output 1120 | #--------------------------------------------------------------------------- 1121 | 1122 | # If the GENERATE_HTML tag is set to YES, doxygen will generate HTML output 1123 | # The default value is: YES. 1124 | 1125 | GENERATE_HTML = YES 1126 | 1127 | # The HTML_OUTPUT tag is used to specify where the HTML docs will be put. If a 1128 | # relative path is entered the value of OUTPUT_DIRECTORY will be put in front of 1129 | # it. 1130 | # The default directory is: html. 1131 | # This tag requires that the tag GENERATE_HTML is set to YES. 1132 | 1133 | HTML_OUTPUT = html 1134 | 1135 | # The HTML_FILE_EXTENSION tag can be used to specify the file extension for each 1136 | # generated HTML page (for example: .htm, .php, .asp). 1137 | # The default value is: .html. 1138 | # This tag requires that the tag GENERATE_HTML is set to YES. 1139 | 1140 | HTML_FILE_EXTENSION = .html 1141 | 1142 | # The HTML_HEADER tag can be used to specify a user-defined HTML header file for 1143 | # each generated HTML page. If the tag is left blank doxygen will generate a 1144 | # standard header. 1145 | # 1146 | # To get valid HTML the header file that includes any scripts and style sheets 1147 | # that doxygen needs, which is dependent on the configuration options used (e.g. 1148 | # the setting GENERATE_TREEVIEW). It is highly recommended to start with a 1149 | # default header using 1150 | # doxygen -w html new_header.html new_footer.html new_stylesheet.css 1151 | # YourConfigFile 1152 | # and then modify the file new_header.html. See also section "Doxygen usage" 1153 | # for information on how to generate the default header that doxygen normally 1154 | # uses. 1155 | # Note: The header is subject to change so you typically have to regenerate the 1156 | # default header when upgrading to a newer version of doxygen. For a description 1157 | # of the possible markers and block names see the documentation. 1158 | # This tag requires that the tag GENERATE_HTML is set to YES. 1159 | 1160 | HTML_HEADER = 1161 | 1162 | # The HTML_FOOTER tag can be used to specify a user-defined HTML footer for each 1163 | # generated HTML page. If the tag is left blank doxygen will generate a standard 1164 | # footer. See HTML_HEADER for more information on how to generate a default 1165 | # footer and what special commands can be used inside the footer. See also 1166 | # section "Doxygen usage" for information on how to generate the default footer 1167 | # that doxygen normally uses. 1168 | # This tag requires that the tag GENERATE_HTML is set to YES. 1169 | 1170 | HTML_FOOTER = 1171 | 1172 | # The HTML_STYLESHEET tag can be used to specify a user-defined cascading style 1173 | # sheet that is used by each HTML page. It can be used to fine-tune the look of 1174 | # the HTML output. If left blank doxygen will generate a default style sheet. 1175 | # See also section "Doxygen usage" for information on how to generate the style 1176 | # sheet that doxygen normally uses. 1177 | # Note: It is recommended to use HTML_EXTRA_STYLESHEET instead of this tag, as 1178 | # it is more robust and this tag (HTML_STYLESHEET) will in the future become 1179 | # obsolete. 1180 | # This tag requires that the tag GENERATE_HTML is set to YES. 1181 | 1182 | HTML_STYLESHEET = 1183 | 1184 | # The HTML_EXTRA_STYLESHEET tag can be used to specify additional user-defined 1185 | # cascading style sheets that are included after the standard style sheets 1186 | # created by doxygen. Using this option one can overrule certain style aspects. 1187 | # This is preferred over using HTML_STYLESHEET since it does not replace the 1188 | # standard style sheet and is therefore more robust against future updates. 1189 | # Doxygen will copy the style sheet files to the output directory. 1190 | # Note: The order of the extra style sheet files is of importance (e.g. the last 1191 | # style sheet in the list overrules the setting of the previous ones in the 1192 | # list). For an example see the documentation. 1193 | # This tag requires that the tag GENERATE_HTML is set to YES. 1194 | 1195 | HTML_EXTRA_STYLESHEET = 1196 | 1197 | # The HTML_EXTRA_FILES tag can be used to specify one or more extra images or 1198 | # other source files which should be copied to the HTML output directory. Note 1199 | # that these files will be copied to the base HTML output directory. Use the 1200 | # $relpath^ marker in the HTML_HEADER and/or HTML_FOOTER files to load these 1201 | # files. In the HTML_STYLESHEET file, use the file name only. Also note that the 1202 | # files will be copied as-is; there are no commands or markers available. 1203 | # This tag requires that the tag GENERATE_HTML is set to YES. 1204 | 1205 | HTML_EXTRA_FILES = 1206 | 1207 | # The HTML_COLORSTYLE_HUE tag controls the color of the HTML output. Doxygen 1208 | # will adjust the colors in the style sheet and background images according to 1209 | # this color. Hue is specified as an angle on a colorwheel, see 1210 | # http://en.wikipedia.org/wiki/Hue for more information. For instance the value 1211 | # 0 represents red, 60 is yellow, 120 is green, 180 is cyan, 240 is blue, 300 1212 | # purple, and 360 is red again. 1213 | # Minimum value: 0, maximum value: 359, default value: 220. 1214 | # This tag requires that the tag GENERATE_HTML is set to YES. 1215 | 1216 | HTML_COLORSTYLE_HUE = 220 1217 | 1218 | # The HTML_COLORSTYLE_SAT tag controls the purity (or saturation) of the colors 1219 | # in the HTML output. For a value of 0 the output will use grayscales only. A 1220 | # value of 255 will produce the most vivid colors. 1221 | # Minimum value: 0, maximum value: 255, default value: 100. 1222 | # This tag requires that the tag GENERATE_HTML is set to YES. 1223 | 1224 | HTML_COLORSTYLE_SAT = 100 1225 | 1226 | # The HTML_COLORSTYLE_GAMMA tag controls the gamma correction applied to the 1227 | # luminance component of the colors in the HTML output. Values below 100 1228 | # gradually make the output lighter, whereas values above 100 make the output 1229 | # darker. The value divided by 100 is the actual gamma applied, so 80 represents 1230 | # a gamma of 0.8, The value 220 represents a gamma of 2.2, and 100 does not 1231 | # change the gamma. 1232 | # Minimum value: 40, maximum value: 240, default value: 80. 1233 | # This tag requires that the tag GENERATE_HTML is set to YES. 1234 | 1235 | HTML_COLORSTYLE_GAMMA = 80 1236 | 1237 | # If the HTML_TIMESTAMP tag is set to YES then the footer of each generated HTML 1238 | # page will contain the date and time when the page was generated. Setting this 1239 | # to YES can help to show when doxygen was last run and thus if the 1240 | # documentation is up to date. 1241 | # The default value is: NO. 1242 | # This tag requires that the tag GENERATE_HTML is set to YES. 1243 | 1244 | HTML_TIMESTAMP = NO 1245 | 1246 | # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML 1247 | # documentation will contain sections that can be hidden and shown after the 1248 | # page has loaded. 1249 | # The default value is: NO. 1250 | # This tag requires that the tag GENERATE_HTML is set to YES. 1251 | 1252 | HTML_DYNAMIC_SECTIONS = NO 1253 | 1254 | # With HTML_INDEX_NUM_ENTRIES one can control the preferred number of entries 1255 | # shown in the various tree structured indices initially; the user can expand 1256 | # and collapse entries dynamically later on. Doxygen will expand the tree to 1257 | # such a level that at most the specified number of entries are visible (unless 1258 | # a fully collapsed tree already exceeds this amount). So setting the number of 1259 | # entries 1 will produce a full collapsed tree by default. 0 is a special value 1260 | # representing an infinite number of entries and will result in a full expanded 1261 | # tree by default. 1262 | # Minimum value: 0, maximum value: 9999, default value: 100. 1263 | # This tag requires that the tag GENERATE_HTML is set to YES. 1264 | 1265 | HTML_INDEX_NUM_ENTRIES = 100 1266 | 1267 | # If the GENERATE_DOCSET tag is set to YES, additional index files will be 1268 | # generated that can be used as input for Apple's Xcode 3 integrated development 1269 | # environment (see: http://developer.apple.com/tools/xcode/), introduced with 1270 | # OSX 10.5 (Leopard). To create a documentation set, doxygen will generate a 1271 | # Makefile in the HTML output directory. Running make will produce the docset in 1272 | # that directory and running make install will install the docset in 1273 | # ~/Library/Developer/Shared/Documentation/DocSets so that Xcode will find it at 1274 | # startup. See http://developer.apple.com/tools/creatingdocsetswithdoxygen.html 1275 | # for more information. 1276 | # The default value is: NO. 1277 | # This tag requires that the tag GENERATE_HTML is set to YES. 1278 | 1279 | GENERATE_DOCSET = NO 1280 | 1281 | # This tag determines the name of the docset feed. A documentation feed provides 1282 | # an umbrella under which multiple documentation sets from a single provider 1283 | # (such as a company or product suite) can be grouped. 1284 | # The default value is: Doxygen generated docs. 1285 | # This tag requires that the tag GENERATE_DOCSET is set to YES. 1286 | 1287 | DOCSET_FEEDNAME = "Doxygen generated docs" 1288 | 1289 | # This tag specifies a string that should uniquely identify the documentation 1290 | # set bundle. This should be a reverse domain-name style string, e.g. 1291 | # com.mycompany.MyDocSet. Doxygen will append .docset to the name. 1292 | # The default value is: org.doxygen.Project. 1293 | # This tag requires that the tag GENERATE_DOCSET is set to YES. 1294 | 1295 | DOCSET_BUNDLE_ID = org.doxygen.Project 1296 | 1297 | # The DOCSET_PUBLISHER_ID tag specifies a string that should uniquely identify 1298 | # the documentation publisher. This should be a reverse domain-name style 1299 | # string, e.g. com.mycompany.MyDocSet.documentation. 1300 | # The default value is: org.doxygen.Publisher. 1301 | # This tag requires that the tag GENERATE_DOCSET is set to YES. 1302 | 1303 | DOCSET_PUBLISHER_ID = org.doxygen.Publisher 1304 | 1305 | # The DOCSET_PUBLISHER_NAME tag identifies the documentation publisher. 1306 | # The default value is: Publisher. 1307 | # This tag requires that the tag GENERATE_DOCSET is set to YES. 1308 | 1309 | DOCSET_PUBLISHER_NAME = Publisher 1310 | 1311 | # If the GENERATE_HTMLHELP tag is set to YES then doxygen generates three 1312 | # additional HTML index files: index.hhp, index.hhc, and index.hhk. The 1313 | # index.hhp is a project file that can be read by Microsoft's HTML Help Workshop 1314 | # (see: http://www.microsoft.com/en-us/download/details.aspx?id=21138) on 1315 | # Windows. 1316 | # 1317 | # The HTML Help Workshop contains a compiler that can convert all HTML output 1318 | # generated by doxygen into a single compiled HTML file (.chm). Compiled HTML 1319 | # files are now used as the Windows 98 help format, and will replace the old 1320 | # Windows help format (.hlp) on all Windows platforms in the future. Compressed 1321 | # HTML files also contain an index, a table of contents, and you can search for 1322 | # words in the documentation. The HTML workshop also contains a viewer for 1323 | # compressed HTML files. 1324 | # The default value is: NO. 1325 | # This tag requires that the tag GENERATE_HTML is set to YES. 1326 | 1327 | GENERATE_HTMLHELP = NO 1328 | 1329 | # The CHM_FILE tag can be used to specify the file name of the resulting .chm 1330 | # file. You can add a path in front of the file if the result should not be 1331 | # written to the html output directory. 1332 | # This tag requires that the tag GENERATE_HTMLHELP is set to YES. 1333 | 1334 | CHM_FILE = 1335 | 1336 | # The HHC_LOCATION tag can be used to specify the location (absolute path 1337 | # including file name) of the HTML help compiler (hhc.exe). If non-empty, 1338 | # doxygen will try to run the HTML help compiler on the generated index.hhp. 1339 | # The file has to be specified with full path. 1340 | # This tag requires that the tag GENERATE_HTMLHELP is set to YES. 1341 | 1342 | HHC_LOCATION = 1343 | 1344 | # The GENERATE_CHI flag controls if a separate .chi index file is generated 1345 | # (YES) or that it should be included in the master .chm file (NO). 1346 | # The default value is: NO. 1347 | # This tag requires that the tag GENERATE_HTMLHELP is set to YES. 1348 | 1349 | GENERATE_CHI = NO 1350 | 1351 | # The CHM_INDEX_ENCODING is used to encode HtmlHelp index (hhk), content (hhc) 1352 | # and project file content. 1353 | # This tag requires that the tag GENERATE_HTMLHELP is set to YES. 1354 | 1355 | CHM_INDEX_ENCODING = 1356 | 1357 | # The BINARY_TOC flag controls whether a binary table of contents is generated 1358 | # (YES) or a normal table of contents (NO) in the .chm file. Furthermore it 1359 | # enables the Previous and Next buttons. 1360 | # The default value is: NO. 1361 | # This tag requires that the tag GENERATE_HTMLHELP is set to YES. 1362 | 1363 | BINARY_TOC = NO 1364 | 1365 | # The TOC_EXPAND flag can be set to YES to add extra items for group members to 1366 | # the table of contents of the HTML help documentation and to the tree view. 1367 | # The default value is: NO. 1368 | # This tag requires that the tag GENERATE_HTMLHELP is set to YES. 1369 | 1370 | TOC_EXPAND = NO 1371 | 1372 | # If the GENERATE_QHP tag is set to YES and both QHP_NAMESPACE and 1373 | # QHP_VIRTUAL_FOLDER are set, an additional index file will be generated that 1374 | # can be used as input for Qt's qhelpgenerator to generate a Qt Compressed Help 1375 | # (.qch) of the generated HTML documentation. 1376 | # The default value is: NO. 1377 | # This tag requires that the tag GENERATE_HTML is set to YES. 1378 | 1379 | GENERATE_QHP = NO 1380 | 1381 | # If the QHG_LOCATION tag is specified, the QCH_FILE tag can be used to specify 1382 | # the file name of the resulting .qch file. The path specified is relative to 1383 | # the HTML output folder. 1384 | # This tag requires that the tag GENERATE_QHP is set to YES. 1385 | 1386 | QCH_FILE = 1387 | 1388 | # The QHP_NAMESPACE tag specifies the namespace to use when generating Qt Help 1389 | # Project output. For more information please see Qt Help Project / Namespace 1390 | # (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#namespace). 1391 | # The default value is: org.doxygen.Project. 1392 | # This tag requires that the tag GENERATE_QHP is set to YES. 1393 | 1394 | QHP_NAMESPACE = org.doxygen.Project 1395 | 1396 | # The QHP_VIRTUAL_FOLDER tag specifies the namespace to use when generating Qt 1397 | # Help Project output. For more information please see Qt Help Project / Virtual 1398 | # Folders (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#virtual- 1399 | # folders). 1400 | # The default value is: doc. 1401 | # This tag requires that the tag GENERATE_QHP is set to YES. 1402 | 1403 | QHP_VIRTUAL_FOLDER = doc 1404 | 1405 | # If the QHP_CUST_FILTER_NAME tag is set, it specifies the name of a custom 1406 | # filter to add. For more information please see Qt Help Project / Custom 1407 | # Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- 1408 | # filters). 1409 | # This tag requires that the tag GENERATE_QHP is set to YES. 1410 | 1411 | QHP_CUST_FILTER_NAME = 1412 | 1413 | # The QHP_CUST_FILTER_ATTRS tag specifies the list of the attributes of the 1414 | # custom filter to add. For more information please see Qt Help Project / Custom 1415 | # Filters (see: http://qt-project.org/doc/qt-4.8/qthelpproject.html#custom- 1416 | # filters). 1417 | # This tag requires that the tag GENERATE_QHP is set to YES. 1418 | 1419 | QHP_CUST_FILTER_ATTRS = 1420 | 1421 | # The QHP_SECT_FILTER_ATTRS tag specifies the list of the attributes this 1422 | # project's filter section matches. Qt Help Project / Filter Attributes (see: 1423 | # http://qt-project.org/doc/qt-4.8/qthelpproject.html#filter-attributes). 1424 | # This tag requires that the tag GENERATE_QHP is set to YES. 1425 | 1426 | QHP_SECT_FILTER_ATTRS = 1427 | 1428 | # The QHG_LOCATION tag can be used to specify the location of Qt's 1429 | # qhelpgenerator. If non-empty doxygen will try to run qhelpgenerator on the 1430 | # generated .qhp file. 1431 | # This tag requires that the tag GENERATE_QHP is set to YES. 1432 | 1433 | QHG_LOCATION = 1434 | 1435 | # If the GENERATE_ECLIPSEHELP tag is set to YES, additional index files will be 1436 | # generated, together with the HTML files, they form an Eclipse help plugin. To 1437 | # install this plugin and make it available under the help contents menu in 1438 | # Eclipse, the contents of the directory containing the HTML and XML files needs 1439 | # to be copied into the plugins directory of eclipse. The name of the directory 1440 | # within the plugins directory should be the same as the ECLIPSE_DOC_ID value. 1441 | # After copying Eclipse needs to be restarted before the help appears. 1442 | # The default value is: NO. 1443 | # This tag requires that the tag GENERATE_HTML is set to YES. 1444 | 1445 | GENERATE_ECLIPSEHELP = NO 1446 | 1447 | # A unique identifier for the Eclipse help plugin. When installing the plugin 1448 | # the directory name containing the HTML and XML files should also have this 1449 | # name. Each documentation set should have its own identifier. 1450 | # The default value is: org.doxygen.Project. 1451 | # This tag requires that the tag GENERATE_ECLIPSEHELP is set to YES. 1452 | 1453 | ECLIPSE_DOC_ID = org.doxygen.Project 1454 | 1455 | # If you want full control over the layout of the generated HTML pages it might 1456 | # be necessary to disable the index and replace it with your own. The 1457 | # DISABLE_INDEX tag can be used to turn on/off the condensed index (tabs) at top 1458 | # of each HTML page. A value of NO enables the index and the value YES disables 1459 | # it. Since the tabs in the index contain the same information as the navigation 1460 | # tree, you can set this option to YES if you also set GENERATE_TREEVIEW to YES. 1461 | # The default value is: NO. 1462 | # This tag requires that the tag GENERATE_HTML is set to YES. 1463 | 1464 | DISABLE_INDEX = NO 1465 | 1466 | # The GENERATE_TREEVIEW tag is used to specify whether a tree-like index 1467 | # structure should be generated to display hierarchical information. If the tag 1468 | # value is set to YES, a side panel will be generated containing a tree-like 1469 | # index structure (just like the one that is generated for HTML Help). For this 1470 | # to work a browser that supports JavaScript, DHTML, CSS and frames is required 1471 | # (i.e. any modern browser). Windows users are probably better off using the 1472 | # HTML help feature. Via custom style sheets (see HTML_EXTRA_STYLESHEET) one can 1473 | # further fine-tune the look of the index. As an example, the default style 1474 | # sheet generated by doxygen has an example that shows how to put an image at 1475 | # the root of the tree instead of the PROJECT_NAME. Since the tree basically has 1476 | # the same information as the tab index, you could consider setting 1477 | # DISABLE_INDEX to YES when enabling this option. 1478 | # The default value is: NO. 1479 | # This tag requires that the tag GENERATE_HTML is set to YES. 1480 | 1481 | GENERATE_TREEVIEW = NO 1482 | 1483 | # The ENUM_VALUES_PER_LINE tag can be used to set the number of enum values that 1484 | # doxygen will group on one line in the generated HTML documentation. 1485 | # 1486 | # Note that a value of 0 will completely suppress the enum values from appearing 1487 | # in the overview section. 1488 | # Minimum value: 0, maximum value: 20, default value: 4. 1489 | # This tag requires that the tag GENERATE_HTML is set to YES. 1490 | 1491 | ENUM_VALUES_PER_LINE = 4 1492 | 1493 | # If the treeview is enabled (see GENERATE_TREEVIEW) then this tag can be used 1494 | # to set the initial width (in pixels) of the frame in which the tree is shown. 1495 | # Minimum value: 0, maximum value: 1500, default value: 250. 1496 | # This tag requires that the tag GENERATE_HTML is set to YES. 1497 | 1498 | TREEVIEW_WIDTH = 250 1499 | 1500 | # If the EXT_LINKS_IN_WINDOW option is set to YES, doxygen will open links to 1501 | # external symbols imported via tag files in a separate window. 1502 | # The default value is: NO. 1503 | # This tag requires that the tag GENERATE_HTML is set to YES. 1504 | 1505 | EXT_LINKS_IN_WINDOW = NO 1506 | 1507 | # Use this tag to change the font size of LaTeX formulas included as images in 1508 | # the HTML documentation. When you change the font size after a successful 1509 | # doxygen run you need to manually remove any form_*.png images from the HTML 1510 | # output directory to force them to be regenerated. 1511 | # Minimum value: 8, maximum value: 50, default value: 10. 1512 | # This tag requires that the tag GENERATE_HTML is set to YES. 1513 | 1514 | FORMULA_FONTSIZE = 10 1515 | 1516 | # Use the FORMULA_TRANPARENT tag to determine whether or not the images 1517 | # generated for formulas are transparent PNGs. Transparent PNGs are not 1518 | # supported properly for IE 6.0, but are supported on all modern browsers. 1519 | # 1520 | # Note that when changing this option you need to delete any form_*.png files in 1521 | # the HTML output directory before the changes have effect. 1522 | # The default value is: YES. 1523 | # This tag requires that the tag GENERATE_HTML is set to YES. 1524 | 1525 | FORMULA_TRANSPARENT = YES 1526 | 1527 | # Enable the USE_MATHJAX option to render LaTeX formulas using MathJax (see 1528 | # http://www.mathjax.org) which uses client side Javascript for the rendering 1529 | # instead of using pre-rendered bitmaps. Use this if you do not have LaTeX 1530 | # installed or if you want to formulas look prettier in the HTML output. When 1531 | # enabled you may also need to install MathJax separately and configure the path 1532 | # to it using the MATHJAX_RELPATH option. 1533 | # The default value is: NO. 1534 | # This tag requires that the tag GENERATE_HTML is set to YES. 1535 | 1536 | USE_MATHJAX = NO 1537 | 1538 | # When MathJax is enabled you can set the default output format to be used for 1539 | # the MathJax output. See the MathJax site (see: 1540 | # http://docs.mathjax.org/en/latest/output.html) for more details. 1541 | # Possible values are: HTML-CSS (which is slower, but has the best 1542 | # compatibility), NativeMML (i.e. MathML) and SVG. 1543 | # The default value is: HTML-CSS. 1544 | # This tag requires that the tag USE_MATHJAX is set to YES. 1545 | 1546 | MATHJAX_FORMAT = HTML-CSS 1547 | 1548 | # When MathJax is enabled you need to specify the location relative to the HTML 1549 | # output directory using the MATHJAX_RELPATH option. The destination directory 1550 | # should contain the MathJax.js script. For instance, if the mathjax directory 1551 | # is located at the same level as the HTML output directory, then 1552 | # MATHJAX_RELPATH should be ../mathjax. The default value points to the MathJax 1553 | # Content Delivery Network so you can quickly see the result without installing 1554 | # MathJax. However, it is strongly recommended to install a local copy of 1555 | # MathJax from http://www.mathjax.org before deployment. 1556 | # The default value is: http://cdn.mathjax.org/mathjax/latest. 1557 | # This tag requires that the tag USE_MATHJAX is set to YES. 1558 | 1559 | MATHJAX_RELPATH = http://cdn.mathjax.org/mathjax/latest 1560 | 1561 | # The MATHJAX_EXTENSIONS tag can be used to specify one or more MathJax 1562 | # extension names that should be enabled during MathJax rendering. For example 1563 | # MATHJAX_EXTENSIONS = TeX/AMSmath TeX/AMSsymbols 1564 | # This tag requires that the tag USE_MATHJAX is set to YES. 1565 | 1566 | MATHJAX_EXTENSIONS = 1567 | 1568 | # The MATHJAX_CODEFILE tag can be used to specify a file with javascript pieces 1569 | # of code that will be used on startup of the MathJax code. See the MathJax site 1570 | # (see: http://docs.mathjax.org/en/latest/output.html) for more details. For an 1571 | # example see the documentation. 1572 | # This tag requires that the tag USE_MATHJAX is set to YES. 1573 | 1574 | MATHJAX_CODEFILE = 1575 | 1576 | # When the SEARCHENGINE tag is enabled doxygen will generate a search box for 1577 | # the HTML output. The underlying search engine uses javascript and DHTML and 1578 | # should work on any modern browser. Note that when using HTML help 1579 | # (GENERATE_HTMLHELP), Qt help (GENERATE_QHP), or docsets (GENERATE_DOCSET) 1580 | # there is already a search function so this one should typically be disabled. 1581 | # For large projects the javascript based search engine can be slow, then 1582 | # enabling SERVER_BASED_SEARCH may provide a better solution. It is possible to 1583 | # search using the keyboard; to jump to the search box use + S 1584 | # (what the is depends on the OS and browser, but it is typically 1585 | # , /