11#include "Refureku/Refureku.h"
12#include "toml11/single_include/toml.hpp"
24 inline std::string floatingToString(
double value) {
return std::format(
"{:.15f}", value); }
66 toml::value* pTomlData,
68 const rfk::Field* pField,
69 const std::string& sSectionName,
70 const std::string& sEntityId,
90 const toml::value* pTomlDocument,
91 const toml::value* pTomlValue,
93 const rfk::Field* pField,
94 const std::string& sOwnerSectionName,
95 const std::string& sEntityId,
96 std::unordered_map<std::string, std::string>& customAttributes) = 0;
110 const rfk::Field* pFromField,
112 const rfk::Field* pToField) = 0;
127 const rfk::Field* pFieldA,
129 const rfk::Field* pFieldB) = 0;
Definition: IFieldSerializer.hpp:33
virtual std::optional< Error > cloneField(Serializable *pFromInstance, const rfk::Field *pFromField, Serializable *pToInstance, const rfk::Field *pToField)=0
virtual std::optional< Error > deserializeField(const toml::value *pTomlDocument, const toml::value *pTomlValue, Serializable *pFieldOwner, const rfk::Field *pField, const std::string &sOwnerSectionName, const std::string &sEntityId, std::unordered_map< std::string, std::string > &customAttributes)=0
virtual bool isFieldTypeSupported(const rfk::Field *pField)=0
virtual std::optional< Error > serializeField(toml::value *pTomlData, Serializable *pFieldOwner, const rfk::Field *pField, const std::string &sSectionName, const std::string &sEntityId, size_t &iSubEntityId, Serializable *pOriginalObject=nullptr)=0
virtual bool isFieldValueEqual(Serializable *pFieldAOwner, const rfk::Field *pFieldA, Serializable *pFieldBOwner, const rfk::Field *pFieldB)=0
Definition: Serializable.h:113