Home » U++ Library support » U++ Core » ValueArray behaviour / inconsistantcy / BUG?
Re: ValueArray behaviour / inconsistantcy / BUG? [message #29550 is a reply to message #29537] |
Thu, 28 October 2010 07:45   |
 |
kohait00
Messages: 939 Registered: July 2009 Location: Germany
|
Experienced Contributor |
|
|
nice addition GetHash 
just a quick fix:
Xmlize.cpp:258
REGISTER_VALUE_XMLIZE(ValueArray);
REGISTER_VALUE_XMLIZE(ValueMap);
//now here comes the changed version for Index xmlize, with hash awareness
Xmlize.h:198
template<class K, class T>
void XmlizeIndex(XmlIO xml, const char *keytag, const char *valuetag, T& data)
{
if(xml.IsStoring()) {
for(int i = 0; i < data.GetCount(); i++)
if(!data.IsUnlinked(i)) {
XmlizeStore(xml.Add(keytag), (int64)data.GetHash(i));
XmlizeStore(xml.Add(valuetag), data[i]);
}
}
else {
data.Clear();
int i = 0;
while(i < xml->GetCount() - 1 && xml->Node(i).IsTag(keytag) && xml->Node(i + 1).IsTag(valuetag)) {
int64 hash;
Xmlize(xml.At(i++), hash);
K key;
Xmlize(xml.At(i++), key);
data.Add(key, (unsigned)hash);
}
}
}
|
|
|
 |
|
ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Wed, 20 October 2010 09:33
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Wed, 20 October 2010 10:45
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Wed, 20 October 2010 16:00
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Thu, 21 October 2010 22:40
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Thu, 21 October 2010 23:08
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Thu, 21 October 2010 23:12
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Thu, 21 October 2010 23:32
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Fri, 22 October 2010 00:09
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Fri, 22 October 2010 07:30
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Fri, 22 October 2010 09:53
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Fri, 22 October 2010 10:12
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Fri, 22 October 2010 10:17
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Fri, 22 October 2010 11:01
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Fri, 22 October 2010 13:52
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Mon, 25 October 2010 13:59
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Wed, 27 October 2010 19:32
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Thu, 28 October 2010 07:45
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Thu, 28 October 2010 10:10
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Thu, 28 October 2010 18:20
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: mirek on Fri, 29 October 2010 08:37
|
 |
|
Re: ValueArray behaviour / inconsistantcy / BUG?
By: kohait00 on Fri, 29 October 2010 12:13
|
Goto Forum:
Current Time: Thu Aug 28 06:38:27 CEST 2025
Total time taken to generate the page: 0.06726 seconds
|