ALib C++ Library
Library Version: 2402 R1
Documentation generated by doxygen
Loading...
Searching...
No Matches
camp_inlines.hpp
Go to the documentation of this file.
1/** ************************************************************************************************
2 * \file
3 * This header file is part of module \alib_basecamp of the \aliblong.
4 *
5 * \emoji :copyright: 2013-2024 A-Worx GmbH, Germany.
6 * Published under \ref mainpage_license "Boost Software License".
7 **************************************************************************************************/
8#ifndef HPP_ALIB_LANG_CAMP_INLINES
9#define HPP_ALIB_LANG_CAMP_INLINES 1
10
11#if !defined(HPP_ALIB_LANG_CAMP)
13#endif
14
15#if !defined (HPP_ALIB_LANG_RESOURCES_RESOURCES)
17#endif
18
19namespace alib::lang {
20inline void Camp::BootstrapResource( const NString& name, const String& data ) { resourcePool->Bootstrap( ResourceCategory, name, data ); }
21inline const String& Camp::GetResource ( const NString& name ) { return resourcePool->Get( ResourceCategory, name ALIB_DBG(, true) ); }
22inline const String& Camp::TryResource ( const NString& name ) { return resourcePool->Get( ResourceCategory, name ALIB_DBG(, false) ); }
23} // namespace [alib::lang]
24
25#endif // HPP_ALIB_LANG_CAMP_INLINES
void BootstrapResource(const NString &name, const String &data)
const String & TryResource(const NString &name)
NCString ResourceCategory
Definition camp.hpp:142
lang::resources::ResourcePool * resourcePool
Definition camp.hpp:98
const String & GetResource(const NString &name)
void Bootstrap(const NString &category, const NString &name, const String &data)
Definition resources.hpp:95
virtual const String & Get(const NString &category, const NString &name, bool dbgAssert)=0
#define ALIB_DBG(...)
Definition alib.hpp:457