mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.uppdev
git-svn-id: svn://ultimatepp.org/upp/trunk@2249 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
33f872831f
commit
8bcad3230f
1 changed files with 3 additions and 22 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue