This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
#pragma once
|
||||
|
||||
#include <sp/common/DataBuffer.h>
|
||||
#include <sp/common/Templates.h>
|
||||
|
||||
namespace sp {
|
||||
@@ -98,6 +97,19 @@ class Field {
|
||||
StorageType m_Value;
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
class PrintableField {
|
||||
public:
|
||||
PrintableField(const T& a_Value) : m_Value(a_Value) {}
|
||||
|
||||
const T& GetValue() const {
|
||||
return m_Value;
|
||||
}
|
||||
|
||||
private:
|
||||
const T& m_Value;
|
||||
};
|
||||
|
||||
namespace details {
|
||||
|
||||
template <typename... TFields>
|
||||
|
||||
Reference in New Issue
Block a user