mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 13:23:53 +00:00
24 lines
492 B
C++
24 lines
492 B
C++
#include "generatedrefid.hpp"
|
|
|
|
#include <ostream>
|
|
#include <sstream>
|
|
|
|
namespace ESM
|
|
{
|
|
std::string GeneratedRefId::toString() const
|
|
{
|
|
return std::to_string(mValue);
|
|
}
|
|
|
|
std::string GeneratedRefId::toDebugString() const
|
|
{
|
|
std::ostringstream stream;
|
|
stream << *this;
|
|
return stream.str();
|
|
}
|
|
|
|
std::ostream& operator<<(std::ostream& stream, GeneratedRefId value)
|
|
{
|
|
return stream << "Generated{" << value.mValue << '}';
|
|
}
|
|
}
|