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 
15 namespace srchilite {
16 
17 class CTagsCollector;
18 class CTagsFormatter;
19 
23 class CTagsManager {
25  std::string ctagsFile;
26 
28  std::string ctagsCmd;
29 
31  bool runCTags;
32 
35 
38 public:
45  CTagsManager(const std::string &_ctagsFile, const std::string &_ctagsCmd,
46  bool _runCTags, RefPosition _refPosition);
47 
48  ~CTagsManager();
49 
54  void runCTagsCmd();
55 
63 };
64 
65 }
66 
67 #endif /*CTAGSMANAGER_H_*/
void runCTagsCmd()
Runs the ctags program.
Definition: ctagsmanager.cpp:35
Collects the tags information generated by the ctags program for a given word.
Definition: ctagscollector.h:62
C++ class: doctemplate.h.
Definition: bufferedoutput.cpp:13
Takes care of running ctags and to generate a CTagsFormmatter.
Definition: ctagsmanager.h:23
Formatter for information gathered from ctags.
Definition: ctagsformatter.h:50
CTagsCollector * ctagsCollector
the shared instance shared by all the created CTagsFormatters
Definition: ctagsmanager.h:37
CTagsManager(const std::string &_ctagsFile, const std::string &_ctagsCmd, bool _runCTags, RefPosition _refPosition)
Definition: ctagsmanager.cpp:24
std::string ctagsFile
the ctags file name
Definition: ctagsmanager.h:25
RefPosition
where a reference must be put
Definition: refposition.h:7
The TextStyle objects for reference formatting.
Definition: textstyles.h:54
RefPosition refPosition
the position for generated references
Definition: ctagsmanager.h:34
std::string ctagsCmd
the possible ctags command to execute
Definition: ctagsmanager.h:28
CTagsFormatter * createCTagsFormatter(const TextStyles::RefTextStyle &r)
Creates a CTagsFormatter (if required, it previously run the ctags command).
Definition: ctagsmanager.cpp:48
bool runCTags
whether to run ctags command
Definition: ctagsmanager.h:31