Go to the documentation of this file.
2 #ifndef __BITTYBUZZSTRINGRESOLVER_H_
3 #define __BITTYBUZZSTRINGRESOLVER_H_
13 uint16_t stringIdOffset,
18 std::optional<const char*>
getString(uint16_t stringId)
const override;
27 #endif // __BITTYBUZZSTRINGRESOLVER_H_
BittyBuzzStringResolver(const std::pair< const uint16_t, const char * > *stringArray, uint16_t arrayLength, uint16_t stringIdOffset, ILogger &logger)
Definition: BittyBuzzStringResolver.cpp:3
const std::pair< const uint16_t, const char * > * m_stringArray
Definition: BittyBuzzStringResolver.h:22
std::optional< const char * > getString(uint16_t stringId) const override
Get the string from the stringId.
Definition: BittyBuzzStringResolver.cpp:13
~BittyBuzzStringResolver() override=default
Class that resolves a string from the bittybuzz virtual machine.
Definition: IBittyBuzzStringResolver.h:10
Definition: BittyBuzzStringResolver.h:9
A logger class with basic logging capabilities.
Definition: ILogger.h:35
const uint16_t m_arrayLength
Definition: BittyBuzzStringResolver.h:23
ILogger & m_logger
Definition: BittyBuzzStringResolver.h:21
const uint16_t m_stringIdOffset
Definition: BittyBuzzStringResolver.h:24