Changeset 6922 for source/ariba/utility/serialization/TestSerialization.cpp
- Timestamp:
- Nov 13, 2009, 8:05:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/serialization/TestSerialization.cpp
r3690 r6922 37 37 // [License] 38 38 39 #include "TestSerialization.h" 39 40 #include "Data.hpp" 40 41 #include "DataStream.hpp" … … 54 55 Aclass* vclass; 55 56 bool vcls; 57 uint8_t* static_array; 56 58 57 59 Aclass(bool vcls = false) { 58 60 text = new char[80]; 61 static_array = new uint8_t[20]; 62 for (size_t i=0; i<20; i++) static_array[i] = i; 59 63 strcpy(text, "Hallo!"); 60 64 str = "std::string:)"; … … 94 98 95 99 sznBeginDefault( Aclass, X ){ 100 double xpos; 96 101 X && x && b && I(y,6) && T(text) && T(str) && A(v,4) && I(z) && vcls; 102 X && static_A(static_array,20); 103 X && static_A( (uint8_t*)&xpos, 8 ); 97 104 if (vcls) X && VO(vclass); 98 105 }sznEnd() … … 100 107 vsznDefault( Aclass ); 101 108 102 int main() {109 int test_serialization() { 103 110 using namespace std; 104 111
Note:
See TracChangeset
for help on using the changeset viewer.