ALib C++ Library
Library Version: 2412 R0
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#pragma once
13
14namespace alib::lang {
15inline void Camp::BootstrapResource( const NString& name, const String& data ) { resourcePool->Bootstrap( ResourceCategory, name, data ); }
16inline const String& Camp::GetResource ( const NString& name ) { return resourcePool->Get( ResourceCategory, name ALIB_DBG(, true) ); }
17inline const String& Camp::TryResource ( const NString& name ) { return resourcePool->Get( ResourceCategory, name ALIB_DBG(, false) ); }
18} // namespace [alib::lang]
19
20#endif // HPP_ALIB_LANG_CAMP_INLINES
21
void BootstrapResource(const NString &name, const String &data)
const String & TryResource(const NString &name)
NCString ResourceCategory
Definition camp.hpp:119
lang::resources::ResourcePool * resourcePool
Definition camp.hpp:75
const String & GetResource(const NString &name)
void Bootstrap(const NString &category, const NString &name, const String &data)
Definition resources.hpp:88
virtual const String & Get(const NString &category, const NString &name, bool dbgAssert)=0
#define ALIB_DBG(...)
Definition alib.hpp:390