Rename StructuredDataDef classes to remove "Def" from classes that do not need it

This commit is contained in:
Jan
2022-01-22 14:47:47 +01:00
parent 2da6ab8479
commit 497c9fc6cf
28 changed files with 450 additions and 450 deletions

View File

@ -0,0 +1,34 @@
#include "CommonStructuredDataEnum.h"
CommonStructuredDataEnumEntry::CommonStructuredDataEnumEntry()
: m_value(0u)
{
}
CommonStructuredDataEnumEntry::CommonStructuredDataEnumEntry(std::string name, const size_t value)
: m_name(std::move(name)),
m_value(value)
{
}
CommonStructuredDataEnum::CommonStructuredDataEnum()
: m_reserved_entry_count(-1)
{
}
CommonStructuredDataEnum::CommonStructuredDataEnum(std::string name)
: m_name(std::move(name)),
m_reserved_entry_count(-1)
{
}
CommonStructuredDataEnum::CommonStructuredDataEnum(std::string name, const int reservedEntryCount)
: m_name(std::move(name)),
m_reserved_entry_count(reservedEntryCount)
{
}
size_t CommonStructuredDataEnum::ElementCount() const
{
return m_reserved_entry_count > 0 ? static_cast<size_t>(m_reserved_entry_count) : m_entries.size();
}