aboutsummaryrefslogtreecommitdiff
path: root/src/test/serializetext.cpp
diff options
context:
space:
mode:
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