Source-highlight Library
|
Formatter for information gathered from ctags. More...
#include <ctagsformatter.h>
Public Member Functions | |
CTagsFormatter (PreFormatter *pre, const TextStyles::RefTextStyle &r, CTagsCollector *ctagsC) | |
void | setPreFormatter (PreFormatter *pre) |
void | setFileInfo (const std::string &input, const std::string &output) |
Sets the information about input file and output file. | |
bool | formatCTags (const std::string &word, CTagsFormatterResults &result, const FormatterParams *params) |
Formats an anchor or references concerning the passed word. | |
Private Attributes | |
std::string | inputFile |
the input file name | |
std::string | inputFileName |
the input file name (without path) | |
std::string | outputFile |
the output file name | |
std::string | outputFileExtension |
the output file name extension | |
PreFormatter * | preFormatter |
the preformatter | |
TextStyles::RefTextStyle | refstyle |
for actually formatting anchors and references | |
CTagsCollector * | ctagsCollector |
collect information about the tags |
Formatter for information gathered from ctags.
bool srchilite::CTagsFormatter::formatCTags | ( | const std::string & | word, |
CTagsFormatterResults & | result, | ||
const FormatterParams * | params | ||
) |
Formats an anchor or references concerning the passed word.
word | |
result | where formatting results will be stored |
params | additional parameters for the formatter |
void srchilite::CTagsFormatter::setFileInfo | ( | const std::string & | input, |
const std::string & | output | ||
) |
Sets the information about input file and output file.
input | input file (with path) |
output | output file (with path) |