3 #include "../OSSupport/CriticalSection.h" Container for all palettes for a single protocol.
std::vector< AString > protocolVersions() const
Returns the version names of all protocols that have been loaded.
cCriticalSection mCS
The CS protecting all members against multithreaded access.
void loadSingleVersion(const AString &aProtocolVersion, const AString &aFolder)
Loads all the palettes from the specified folder into mPalettes under the aProtocolVersion key...
std::map< AString, Palettes > mPalettes
The map of protocol version -> all its palettes.
std::shared_ptr< const BlockTypePalette > blockTypePalette(const AString &aProtocolVersion) const
Returns the BlockTypePalette for the specified protocol.
Holds a palette that maps between block type + state and numbers.
Loads the protocol-specific palettes on startup and provides them to the individual protocol instance...
void load(const AString &aProtocolFolder)
Loads all the per-protocol palettes.
std::shared_ptr< BlockTypePalette > mBlockTypePalette