HiveMind
Public Member Functions | Private Attributes | List of all members
BittyBuzzStringResolver Class Reference

#include <BittyBuzzStringResolver.h>

Inheritance diagram for BittyBuzzStringResolver:
Inheritance graph
Collaboration diagram for BittyBuzzStringResolver:
Collaboration graph

Public Member Functions

 BittyBuzzStringResolver (const std::pair< const uint16_t, const char * > *stringArray, uint16_t arrayLength, uint16_t stringIdOffset, ILogger &logger)
 
 ~BittyBuzzStringResolver () override=default
 
std::optional< const char * > getString (uint16_t stringId) const override
 Get the string from the stringId. More...
 
- Public Member Functions inherited from IBittyBuzzStringResolver
virtual ~IBittyBuzzStringResolver ()=default
 

Private Attributes

ILoggerm_logger
 
const std::pair< const uint16_t, const char * > * m_stringArray
 
const uint16_t m_arrayLength
 
const uint16_t m_stringIdOffset
 

Constructor & Destructor Documentation

◆ BittyBuzzStringResolver()

BittyBuzzStringResolver::BittyBuzzStringResolver ( const std::pair< const uint16_t, const char * > *  stringArray,
uint16_t  arrayLength,
uint16_t  stringIdOffset,
ILogger logger 
)

◆ ~BittyBuzzStringResolver()

BittyBuzzStringResolver::~BittyBuzzStringResolver ( )
overridedefault

Member Function Documentation

◆ getString()

std::optional< const char * > BittyBuzzStringResolver::getString ( uint16_t  stringId) const
overridevirtual

Get the string from the stringId.

Implements IBittyBuzzStringResolver.

Here is the call graph for this function:

Member Data Documentation

◆ m_arrayLength

const uint16_t BittyBuzzStringResolver::m_arrayLength
private

◆ m_logger

ILogger& BittyBuzzStringResolver::m_logger
private

◆ m_stringArray

const std::pair<const uint16_t, const char*>* BittyBuzzStringResolver::m_stringArray
private

◆ m_stringIdOffset

const uint16_t BittyBuzzStringResolver::m_stringIdOffset
private

The documentation for this class was generated from the following files: