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,14 @@
#include "StateMapLayout.h"
using namespace state_map;
StateMapLayoutEntry::StateMapLayoutEntry(std::string name, const size_t resultCount)
: m_name(std::move(name)),
m_result_count(resultCount)
{
}
StateMapLayout::StateMapLayout(std::vector<StateMapLayoutEntry> layoutEntries)
: m_layout_entries(std::move(layoutEntries))
{
}

View File

@ -0,0 +1,24 @@
#pragma once
#include <string>
#include <vector>
namespace state_map
{
class StateMapLayoutEntry
{
public:
StateMapLayoutEntry(std::string name, size_t resultCount);
std::string m_name;
size_t m_result_count;
};
class StateMapLayout
{
public:
explicit StateMapLayout(std::vector<StateMapLayoutEntry> layoutEntries);
std::vector<StateMapLayoutEntry> m_layout_entries;
};
}