Add StateMap parsing

This commit is contained in:
Jan
2022-08-13 19:26:33 +02:00
parent 31b679eedf
commit 53bfcadea8
13 changed files with 495 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#include "StateMapParserState.h"
using namespace state_map;
StateMapParserState::StateMapParserState(const StateMapLayout& layout)
: m_layout(layout),
m_definition(std::make_unique<StateMapDefinition>(layout.m_layout_entries.size())),
m_in_entry(false),
m_current_entry_index(0u)
{
for (auto i = 0u; i < m_layout.m_layout_entries.size(); i++)
m_valid_state_map_entry_names.emplace(m_layout.m_layout_entries[i].m_name, i);
}