Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » xmlize (xmlize 3 tag problem in 8148)
xmlize [message #44947] Tue, 28 July 2015 13:51 Go to next message
varu is currently offline  varu
Messages: 17
Registered: March 2012
Location: Bangalore,India
Promising Member
Dear Sir,


Adding a 3rd tag to the Xml compiles to an error as following (in "Xmlize" Program of 8148 version ), but it works fine in 7357 version.




Core: 59 file(s) built in (0:31.75), 538 msecs / file, duration = 32835 msecs, parallelization 100%
/root/upp/reference/Xmlize/Xmlize.cpp: In member function 'void Data::Xmlize(Upp::XmlIO&)':
/root/upp/reference/Xmlize/Xmlize.cpp:25:29: error: no match for call to '(Upp::XmlIO) (const char [7], const char [7], Upp::Vector<Upp::Size_<int> >&)'
/root/upp/uppsrc/Core/Xmlize.h:15:7: note: candidates are:
/root/upp/uppsrc/Core/Xmlize.h:83:26: note: template<class T> Upp::XmlIO Upp::XmlIO::operator()(const char*, T&)
/root/upp/uppsrc/Core/Xmlize.h:35:27: note: template<class T> Upp::XmlIO Upp::XmlIO::operator()(const char*, T&, const T&)
Xmlize: 1 file(s) built in (0:00.51), 513 msecs / file, duration = 1077 msecs, parallelization 73%

There were errors. (0:33.06)

Regards
varun
Re: xmlize [message #44948 is a reply to message #44947] Tue, 28 July 2015 14:29 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 823
Registered: September 2012
Location: Poland, Kraków
Experienced Contributor
Hello varu,

Firstly you should update to the latest Ultimate++ stable release - 8227. For me reference/Xmlize compiles just fine, but I am using latest nightly version - 8760. You can try this version too.

I am not sure about one thing. Did you modify reference/Xmlize by adding 3rd tag? If yes please provide the code.

Sincerely,
Klugier


Ultimate++ - one framework to rule them all.
Re: xmlize [message #44949 is a reply to message #44948] Tue, 28 July 2015 15:18 Go to previous message
deep is currently offline  deep
Messages: 227
Registered: July 2011
Location: Bangalore
Experienced Member
In new version of "Xmlize.h" I see missing
template <class T> XmlIO operator()(const char *tag, const char *itemtag, T& var);

I am not sure from which version this change is there. In 8227 also it is List in place of operator()

template <class T> XmlIO operator()(const char *tag, const char *itemtag, T& var);

there is "List" in place of operator()

template <class T> XmlIO List(const char *tag, const char *itemtag, T& var);


With following changes to "Xmlize.h" one can get same functionality as per this thread
http:// www.ultimatepp.org/forums/index.php?t=msg&th=6032&go to=32484&#msg_32484

in class XmlIO
template <class T> XmlIO operator()(const char *tag, const char *itemtag, T& var);


In file
template <class T> XmlIO XmlIO::operator()(const char *tag, const char *itemtag, T& var) {
	XmlIO n(*this, tag);
	Xmlize(n, itemtag, var);
	return *this;
}


Above lines are from Xmlize.h file from link.

Probably XmlIO List may be doing same thing. But don't know how to use it.


Warm Regards

Deepak

[Updated on: Tue, 28 July 2015 15:22]

Report message to a moderator

Previous Topic: GeoFun compilation problem with MSVC12
Next Topic: Where is the debug window «memory» in TheIDE?
Goto Forum:
  


Current Time: Fri Jan 22 18:08:14 CET 2021

Total time taken to generate the page: 0.01709 seconds