mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-16 21:29:56 +00:00
27 lines
596 B
C++
27 lines
596 B
C++
|
#include "indexrefid.hpp"
|
||
|
|
||
|
#include <ostream>
|
||
|
#include <sstream>
|
||
|
|
||
|
#include "esmcommon.hpp"
|
||
|
|
||
|
namespace ESM
|
||
|
{
|
||
|
std::string IndexRefId::toString() const
|
||
|
{
|
||
|
return ESM::NAME(mRecordType).toString() + ", " + std::to_string(mValue);
|
||
|
}
|
||
|
|
||
|
std::string IndexRefId::toDebugString() const
|
||
|
{
|
||
|
std::ostringstream stream;
|
||
|
stream << *this;
|
||
|
return stream.str();
|
||
|
}
|
||
|
|
||
|
std::ostream& operator<<(std::ostream& stream, IndexRefId value)
|
||
|
{
|
||
|
return stream << "Index{" << ESM::NAME(value.mRecordType).toStringView() << ", " << value.mValue << '}';
|
||
|
}
|
||
|
}
|