28#include "../io/filesystem.hpp"
29#include "../io/styledtextfile.hpp"
30#include "../../syntax.hpp"
45 void followBranch(
const std::string& sFile, std::set<std::string>& fileSet, std::vector<std::string>& vFiles)
const;
52 size_t findListItem(
const std::string& sTextRange,
size_t& nLength)
const;
59 std::string
createMainFile(
const std::string& sFileName,
const std::vector<std::string>& vIncludesList,
const std::vector<std::string>& vFiles)
const;
This class handles the creation of LaTeX documentation from code files. It will detect documentation ...
std::string createReturnsTable(const std::vector< std::string > &vParams) const
This member function creates a table out of the declared return values in the documentation comments.
std::string convertToLaTeX(const std::string &sFileName) const
Writes the content of the current code file to a LaTeX file.
size_t findListItem(const std::string &sTextRange, size_t &nLength) const
This helper function finds the next list item in the passed documentation string.
std::string createMainFile(const std::string &sFileName, const std::vector< std::string > &vIncludesList, const std::vector< std::string > &vFiles) const
This member function creates a main LaTeX file including the perviously created LaTeX documentation f...
std::string constructKeyWords(std::string sKeyWordList) const
This member function replaces the passed whitespace-separated keyword list with a comma-separated lis...
std::string createDocumentation(const std::string &sFileName) const
This member function creates a LaTeX documentation from a single file and stores it....
std::string getStrippedRange(const StyledTextFile &file, int pos1, int pos2, bool encode=true) const
Gets the contents of the selected range.
std::string createLaTeXFileName(std::string sFileName) const
This method will create a target filename for the TeX files and create the needed folder structure on...
std::string createParametersTable(const std::vector< std::string > &vParams) const
This member function creates a table out of the declared parameters in the documentation comments.
DocumentationGenerator(NumeReSyntax *_syntax, const std::string &sRootPath)
DocumentationGenerator constructor.
std::string createMainProcedure(std::string sFileName) const
This method converts the passed filename into a main procedure for the current file.
std::string parseDocumentation(const StyledTextFile &file, const std::string &sMainProc, int pos1, int pos2) const
Converts the documentation into LaTeX code.
void createStyleFile() const
This member function writes the LaTeX header file used to highlight the code snippets,...
void followBranch(const std::string &sFile, std::set< std::string > &fileSet, std::vector< std::string > &vFiles) const
This member function finds all dependent procedure files. If the current file is not a procedure,...
std::string createFullDocumentation(const std::string &sFileName) const
This member function creates a LaTeX documentation from the passed file and all dependent files....
std::string prepareFileNameForLaTeX(std::string sFileName) const
This member function removes the path parts of the default paths and masks underscores,...
This class implements the basic input/ output file system and provides functionalities to work with f...
This class contains all needed keywords to highlight their occurences correspondingly....
This class represents a text file in memory (e.g. a code file). This class will try to lex the loaded...