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>

List of all members.

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.

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

Returns:
the instance for LangMap for lang files
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: