summaryrefslogtreecommitdiff
path: root/src/test/serializetext.cpp
diff options
context:
space:
mode:
authorDavid <david@xagasoft.com>2006-05-13 01:52:31 +0000
committerDavid <david@xagasoft.com>2006-05-13 01:52:31 +0000
commit3df557a87b39fc4c2ff14006506e6992d1620ab0 (patch)
treeeb9a3fe0be541fed4acd07794b7d64157ea429d3 /src/test/serializetext.cpp
parent632e1d1dbe6ac35eba93523dd144129af1122ca2 (diff)
downloadlibbu++-3df557a87b39fc4c2ff14006506e6992d1620ab0.tar.gz
libbu++-3df557a87b39fc4c2ff14006506e6992d1620ab0.tar.bz2
libbu++-3df557a87b39fc4c2ff14006506e6992d1620ab0.tar.xz
libbu++-3df557a87b39fc4c2ff14006506e6992d1620ab0.zip
david - initial NOT WORKING commit of SerializerText stuff...
Diffstat (limited to '')
-rw-r--r--src/test/serializetext.cpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/test/serializetext.cpp b/src/test/serializetext.cpp
new file mode 100644
index 0000000..e7e92d2
--- /dev/null
+++ b/src/test/serializetext.cpp
@@ -0,0 +1,25 @@
1#include "serializertext.h"
2
3int main()
4{
5 SerializerText ar("hello.dat", false);
6
7 ar << 4;
8 ar << 3.993;
9 ar << true;
10
11 ar.close();
12
13 int one=0;float two=0.0;bool three=false;
14
15 SerializerText ar2("hello.dat", true);
16
17 ar2 >> one;
18 ar2 >> two;
19 ar2 >> three;
20
21 printf("out: %d, %d, %s\n", one, two, three);
22
23 return 0;
24}
25