Source-highlight Library
srchilite::Instances Class Reference

This class contains static and singleton instances for some utility classes for LangDefManagers, LangMap, etc. More...

#include <instances.h>

Static Public Member Functions

static LangDefManagergetLangDefManager ()
 
static LangMapgetLangMap ()
 
static LangMapgetOutLangMap ()
 
static void reload ()
 Reloads files (using the new settings) for each single instances.
 
static void unload ()
 Deletes all static instances. More...
 

Detailed Description

This class contains static and singleton instances for some utility classes for LangDefManagers, LangMap, etc.

Using this class ensures to use always the same instance for doing these tasks, and if you change the global settings, through Settings, you can reload() the files of these instances using the new settings, thus enforcing consistency within a program using this library.

Since
3.1.1

Member Function Documentation

LangDefManager * srchilite::Instances::getLangDefManager ( )
static
Returns
the instance for LangDefManager
LangMap * srchilite::Instances::getLangMap ( )
static
Returns
the instance for LangMap for lang files
LangMap * srchilite::Instances::getOutLangMap ( )
static
Returns
the instance for LangMap for outlang files
void srchilite::Instances::unload ( )
static

Deletes all static instances.

This is not necessary, but if you're sure you're not using the library anymore in your program, you can free some memory.


The documentation for this class was generated from the following files: