summaryrefslogtreecommitdiff
path: root/indra/llprimitive/llmaterialid.h
diff options
context:
space:
mode:
authorWilliam Todd Stinson <stinson@lindenlab.com>2012-12-04 15:46:10 -0800
committerWilliam Todd Stinson <stinson@lindenlab.com>2012-12-04 15:46:10 -0800
commite2b5e11820cf234d035bdb07f4b145c397fdf67b (patch)
tree4147194fa9f652ede4d08e035cee3e3bdd88d872 /indra/llprimitive/llmaterialid.h
parent1bfeddc0039c7a18cdd878c4fcc3a51529eb1019 (diff)
Implementing string conversion and comparison operator overrides for the LLMaterialID class.
Diffstat (limited to 'indra/llprimitive/llmaterialid.h')
-rw-r--r--indra/llprimitive/llmaterialid.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llprimitive/llmaterialid.h b/indra/llprimitive/llmaterialid.h
index 1578172aec..9db4065302 100644
--- a/indra/llprimitive/llmaterialid.h
+++ b/indra/llprimitive/llmaterialid.h
@@ -29,6 +29,8 @@
#define MATERIAL_ID_SIZE 16
+#include <string>
+
class LLMaterialID
{
public:
@@ -41,6 +43,12 @@ public:
bool operator == (const LLMaterialID& pOtherMaterialID) const;
bool operator != (const LLMaterialID& pOtherMaterialID) const;
+
+ bool operator < (const LLMaterialID& pOtherMaterialID) const;
+ bool operator <= (const LLMaterialID& pOtherMaterialID) const;
+ bool operator > (const LLMaterialID& pOtherMaterialID) const;
+ bool operator >= (const LLMaterialID& pOtherMaterialID) const;
+
LLMaterialID& operator = (const LLMaterialID& pOtherMaterialID);
bool isNull() const;
@@ -50,6 +58,7 @@ public:
void clear();
LLSD asLLSD() const;
+ std::string asString() const;
static const LLMaterialID null;