git-svn-id: svn://ultimatepp.org/upp/trunk@2249 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2010-03-21 17:04:57 +00:00
parent 33f872831f
commit 8bcad3230f

View file

@ -1,24 +1,3 @@
#include <Core/Core.h>
using namespace Upp;
template <class T>
struct MyVector : public Vector<T> {
void Foo() {}
void Xmlize(XmlIO xml) {
Upp::Xmlize(xml, *this);
}
};
void CONSOLE_APP_MAIN0()
{
MyVector<int> x;
x.Add(10);
DDUMP(StoreAsXML(x, "test"));
LOG("XXX");
}
#include <Core/Core.h>
using namespace Upp;
@ -32,8 +11,10 @@ struct A
CONSOLE_APP_MAIN
{
A a;
a.v = "test";
a.v = "test\ntest";
StoreAsXMLFile(a, "XmlizeTest", "xmlizeTtest");
DDUMP(a.v);
a.v = 0;
LoadFromXMLFile(a, "xmlizeTtest");
DDUMP(a.v);
}