1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00
OpenMW/components/esm/formidrefid.cpp

29 lines
620 B
C++

#include "formidrefid.hpp"
#include "serializerefid.hpp"
#include <ostream>
namespace ESM
{
std::string FormIdRefId::toString() const
{
std::string result;
result.resize(getIntegralSize(mValue) + 2, '\0');
serializeIntegral(mValue, 0, result);
return result;
}
std::string FormIdRefId::toDebugString() const
{
std::string result;
serializeRefIdValue(mValue, formIdRefIdPrefix, result);
return result;
}
std::ostream& operator<<(std::ostream& stream, FormIdRefId value)
{
return stream << value.toDebugString();
}
}