1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-02-21 09:39:43 +00:00
openmw/components/esm/formidrefid.cpp

28 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();
}
}