Home » Community » Newbie corner » xmlize (xmlize 3 tag problem in 8148)
xmlize [message #44947] |
Tue, 28 July 2015 13:51 |
varu
Messages: 21 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 #44949 is a reply to message #44948] |
Tue, 28 July 2015 15:18 |
|
deep
Messages: 263 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
|
|
|
Goto Forum:
Current Time: Tue Jun 04 00:07:40 CEST 2024
Total time taken to generate the page: 0.01541 seconds
|