aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/lluuid.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-06 18:24:57 -0500
committerJacek Antonelli2008-09-06 18:25:07 -0500
commit798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch)
tree1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/llcommon/lluuid.h
parentSecond Life viewer sources 1.20.15 (diff)
downloadmeta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2
meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz
Second Life viewer sources 1.21.0-RC
Diffstat (limited to '')
-rw-r--r--linden/indra/llcommon/lluuid.h (renamed from linden/indra/llmath/lluuid.h)7
1 files changed, 4 insertions, 3 deletions
diff --git a/linden/indra/llmath/lluuid.h b/linden/indra/llcommon/lluuid.h
index 48308f2..3b057fb 100644
--- a/linden/indra/llmath/lluuid.h
+++ b/linden/indra/llcommon/lluuid.h
@@ -64,7 +64,7 @@ public:
64 // MANIPULATORS 64 // MANIPULATORS
65 // 65 //
66 void generate(); // Generate a new UUID 66 void generate(); // Generate a new UUID
67 void generate(std::string stream); //Generate a new UUID based on hash of input stream 67 void generate(const std::string& stream); //Generate a new UUID based on hash of input stream
68 BOOL set(const char *in_string, BOOL emit = TRUE); // Convert from string, if emit is FALSE, do not emit warnings 68 BOOL set(const char *in_string, BOOL emit = TRUE); // Convert from string, if emit is FALSE, do not emit warnings
69 BOOL set(const std::string& in_string, BOOL emit = TRUE); // Convert from string, if emit is FALSE, do not emit warnings 69 BOOL set(const std::string& in_string, BOOL emit = TRUE); // Convert from string, if emit is FALSE, do not emit warnings
70 void setNull(); // Faster than setting to LLUUID::null. 70 void setNull(); // Faster than setting to LLUUID::null.
@@ -106,7 +106,9 @@ public:
106 friend std::istream& operator>>(std::istream& s, LLUUID &uuid); 106 friend std::istream& operator>>(std::istream& s, LLUUID &uuid);
107 107
108 void toString(char *out) const; // Does not allocate memory, needs 36 characters (including \0) 108 void toString(char *out) const; // Does not allocate memory, needs 36 characters (including \0)
109 void toString(std::string& out) const;
109 void toCompressedString(char *out) const; // Does not allocate memory, needs 17 characters (including \0) 110 void toCompressedString(char *out) const; // Does not allocate memory, needs 17 characters (including \0)
111 void toCompressedString(std::string& out) const;
110 112
111 std::string asString() const; 113 std::string asString() const;
112 std::string getString() const; 114 std::string getString() const;
@@ -115,14 +117,13 @@ public:
115 U32 getCRC32() const; 117 U32 getCRC32() const;
116 118
117 static BOOL validate(const std::string& in_string); // Validate that the UUID string is legal. 119 static BOOL validate(const std::string& in_string); // Validate that the UUID string is legal.
118 static BOOL validate(const char *in_string); // Validate that the UUID string is legal.
119 120
120 static const LLUUID null; 121 static const LLUUID null;
121 122
122 static U32 getRandomSeed(); 123 static U32 getRandomSeed();
123 static S32 getNodeID(unsigned char * node_id); 124 static S32 getNodeID(unsigned char * node_id);
124 125
125 static BOOL parseUUID(const char* buf, LLUUID* value); 126 static BOOL parseUUID(const std::string& buf, LLUUID* value);
126 127
127 U8 mData[UUID_BYTES]; 128 U8 mData[UUID_BYTES];
128}; 129};