Macros | Functions
OptionDocumentationGenerator.cpp File Reference
#include <algorithm>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "../InsightsOptions.def"
Include dependency graph for OptionDocumentationGenerator.cpp:

Go to the source code of this file.

Macros

#define INSIGHTS_OPT(opt, name, deflt, description, category)   CreateFile(opt, deflt, description);
 
#define INSIGHTS_OPT(opt, name, deflt, description, category)   options.emplace_back(opt);
 

Functions

static bool CreateFile (const std::string &optionName, bool optionDefault, const char *description)
 Create a markdown file which contains the information about the option. More...
 
int main ()
 

Macro Definition Documentation

◆ INSIGHTS_OPT [1/2]

#define INSIGHTS_OPT (   opt,
  name,
  deflt,
  description,
  category 
)    CreateFile(opt, deflt, description);

◆ INSIGHTS_OPT [2/2]

#define INSIGHTS_OPT (   opt,
  name,
  deflt,
  description,
  category 
)    options.emplace_back(opt);

Function Documentation

◆ CreateFile()

static bool CreateFile ( const std::string &  optionName,
bool  optionDefault,
const char *  description 
)
static

Create a markdown file which contains the information about the option.

Definition at line 17 of file OptionDocumentationGenerator.cpp.

◆ main()

int main ( )

Definition at line 46 of file OptionDocumentationGenerator.cpp.