U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Library : Other (not classified elsewhere) » XmlRpc Bugfixes
XmlRpc Bugfixes [message #31980] Wed, 13 April 2011 23:14 Go to previous message
zsolt is currently offline  zsolt
Messages: 705
Registered: December 2005
Location: Budapest, Hungary
Contributor
I was not able to send array or vector of structs because of some missing functionalities.

These are the fixed functions in XmlRpc.h from line 111:

template <class T>
void ValuePut(Value& v, const Array<T>& x)
{
	ValueArray va;
	for(int i=0; i<x.GetCount(); i++){
		Value vs;
		ValuePut(vs, x[i]);
		va.Add(vs);
	}
	v = va;
}

template <class T>
void ValuePut(Value& v, const Vector<T>& x)
{
	ValueArray va;
	for(int i=0; i<x.GetCount(); i++){
		Value vs;
		ValuePut(vs, x[i]);
		va.Add(vs);
	}
	v = va;
}


I attached a demo demonstrating the fixes.

There is a server sending a struct with an array and a vector of struct and a client showing the received data.

These would be useful as reference examples, I think.
 
Read Message
Read Message
Read Message
Previous Topic: Web or HttpClient example?
Next Topic: FIXES/ADDS: CtrlLib: properties getters
Goto Forum:
  


Current Time: Tue Nov 10 03:03:22 GMT+1 2026

Total time taken to generate the page: 0.01592 seconds