Singleton that manages the defines available while proprocessing files. More...
Classes | |
class | DefinesPerFile |
Public Member Functions | |
void | startContext (const char *fileName) |
void | endContext () |
void | addFileToContext (const char *fileName) |
void | addDefine (const char *fileName, Define *def) |
void | addInclude (const char *fromFileName, const char *toFileName) |
Define * | isDefined (const char *name) const |
const DefineDict & | defineContext () const |
Static Public Member Functions | |
static DefineManager & | instance () |
static void | deleteInstance () |
Private Member Functions | |
void | collectDefinesForFile (const char *fileName, DefineDict *dict) |
DefinesPerFile * | find (const char *fileName) const |
DefineManager () | |
virtual | ~DefineManager () |
Private Attributes | |
QDict< DefinesPerFile > | m_fileMap |
DefineDict | m_contextDefines |
Static Private Attributes | |
static DefineManager * | theInstance = 0 |
Friends | |
class | DefinesPerFile |
Singleton that manages the defines available while proprocessing files.
|
inlineprivate |
|
inlineprivatevirtual |
|
inline |
Add a define to the manager object.
fileName | The file in which the define was found |
def | The Define object to add. |
Definition at line 2703 of file pre.cpp.
|
inline |
|
inline |
|
inlineprivate |
|
inline |
|
inlinestatic |
|
inline |
Ends the context started with startContext() freeing any defines collected within in this context.
Definition at line 2670 of file pre.cpp.
|
inlineprivate |
Helper function to return the DefinesPerFile object for a given file name.
Definition at line 2770 of file pre.cpp.
|
inlinestatic |
|
inline |
Returns a Define object given its name or 0 if the Define does not exist.
Definition at line 2742 of file pre.cpp.
|
inline |
|
friend |
|
private |
|
private |
|
staticprivate |