Elaztek Developer Hub
Blamite Game Engine - Strings  00431.01.26.25.2126.blamite
A library containing general purpose utilities and classes for use in multiple projects.
hooks.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 #ifdef STRINGS_EXPORTS
6 #define STRINGS_API __declspec(dllexport)
7 #else
8 #define STRINGS_API __declspec(dllimport)
9 #endif
10 
11 #ifndef STRINGS_INTERNAL
12 #define STRINGS_INTERNAL
13 #endif
14 
20 typedef void(__cdecl* _StringsConfigReloadCallback)(std::string filename);
21 
26 {
28 };
29 
38 {
45  STRINGS_API void SetupHooks(BlamStringsHooksBundle _hooks, std::string module_name);
46 
52  STRINGS_API void DetachHooks(std::string module_name);
53 }
54 
61 {
67  STRINGS_INTERNAL void NotifyConfigurationReload(std::string filename);
68 }
hooks.h
_StringsConfigReloadCallback
void(__cdecl * _StringsConfigReloadCallback)(std::string filename)
Type definition for the configuration reload callback.
Definition: hooks.h:20
hooks
std::map< std::string, BlamStringsHooksBundle > hooks
Definition: hooks.cpp:8
STRINGS_INTERNAL
#define STRINGS_INTERNAL
Definition: hooks.h:12
BlamStrings::Hooks::SetupHooks
STRINGS_API void SetupHooks(BlamStringsHooksBundle _hooks, std::string module_name)
Sets up hooks for a given module.
Definition: hooks.cpp:10
BlamStrings::Hooks::DetachHooks
STRINGS_API void DetachHooks(std::string module_name)
Detaches all hooks for a given module.
Definition: hooks.cpp:15
BlamStringsInternal::Hooks
Internal namespace for interacting with the hooks system.
Definition: hooks.h:60
BlamStringsHooksBundle
Data structure used to store configured Strings library hooks together.
Definition: hooks.h:25
BlamStringsInternal::Hooks::NotifyConfigurationReload
STRINGS_INTERNAL void NotifyConfigurationReload(std::string filename)
Notifies all hooks that a configuration file has been reloaded.
Definition: hooks.cpp:23
BlamStrings::Hooks
Namespace containing functions for hooking into the Strings library.
Definition: hooks.h:37
BlamStringsHooksBundle::StringsConfigReloadCallback
_StringsConfigReloadCallback StringsConfigReloadCallback
Called when a BlamConfigurationFile is reloaded.
Definition: hooks.h:27
STRINGS_API
#define STRINGS_API
Definition: hooks.h:8
datetime.h