Source-highlight Library
ctagsmanager.h
1//
2// Author: Lorenzo Bettini <http://www.lorenzobettini.it>, (C) 2004-2008
3//
4// Copyright: See COPYING file that comes with this distribution
5//
6
7#ifndef CTAGSMANAGER_H_
8#define CTAGSMANAGER_H_
9
10#include <string>
11
12#include "refposition.h"
13#include "textstyles.h"
14
15namespace srchilite {
16
17class CTagsCollector;
18class CTagsFormatter;
19
25 std::string ctagsFile;
26
28 std::string ctagsCmd;
29
32
35
38public:
45 CTagsManager(const std::string &_ctagsFile, const std::string &_ctagsCmd,
46 bool _runCTags, RefPosition _refPosition);
47
49
54 void runCTagsCmd();
55
63};
64
65}
66
67#endif /*CTAGSMANAGER_H_*/
Collects the tags information generated by the ctags program for a given word.
Definition: ctagscollector.h:62
Formatter for information gathered from ctags.
Definition: ctagsformatter.h:50
Takes care of running ctags and to generate a CTagsFormmatter.
Definition: ctagsmanager.h:23
CTagsFormatter * createCTagsFormatter(const TextStyles::RefTextStyle &r)
Creates a CTagsFormatter (if required, it previously run the ctags command).
Definition: ctagsmanager.cpp:48
CTagsCollector * ctagsCollector
the shared instance shared by all the created CTagsFormatters
Definition: ctagsmanager.h:37
bool runCTags
whether to run ctags command
Definition: ctagsmanager.h:31
RefPosition refPosition
the position for generated references
Definition: ctagsmanager.h:34
void runCTagsCmd()
Runs the ctags program.
Definition: ctagsmanager.cpp:35
std::string ctagsCmd
the possible ctags command to execute
Definition: ctagsmanager.h:28
std::string ctagsFile
the ctags file name
Definition: ctagsmanager.h:25
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
RefPosition
where a reference must be put
Definition: refposition.h:7
The TextStyle objects for reference formatting.
Definition: textstyles.h:54