8 #ifndef __SIM_RootDataId_h__
9 #define __SIM_RootDataId_h__
31 { myId = -1; myName =
""; }
33 {
return (myId == -1 && !myName.isstring()); }
37 return myId == other.myId && myName == other.myName;
42 return myId != other.myId || myName != other.myName;
48 SYShashCombine(hash, myId);
65 return f.
format(writer,
"{0}", {
id.getName()});
67 return f.
format(writer,
"{0}", {
id.getId()});
SYS_HashType hash_value(const SIM_RootDataId &id)
size_t format(char *buffer, size_t buffer_size, const SIM_RootDataId &id)
std::size_t SYS_HashType
Define the type for hash values.
UT_StringHolder getName() const
PXL_API const char * getName(const ColorSpace *space)
Return the name of the color space.
SYS_HashType hash() const
bool operator!=(const SIM_RootDataId &other) const
GLuint const GLchar * name
bool operator==(const SIM_RootDataId &other) const
SIM_RootDataId(const UT_StringHolder &name)