3 #include "ace/OS_NS_stdlib.h"
4 #include "ace/OS_main.h"
7 int ACE_TMAIN(int, ACE_TCHAR
*[])
9 // No need to test the actual map works as it's just a typedef to std::map
12 RecurseStruct rStruct
;
13 rStruct
.iMapR
[10] = rStruct
;
14 // rStruct.rMapI[rStruct] = 10; // Structs as keys aren't really valid, as they fail to compile when generated via tao_idl
16 TestStruct testStruct
;
18 testStruct
.msg
= "Hello World!";
20 TestStructMap testStructMap
;
21 testStructMap
[42] = testStruct
;
23 TestIntStringMap testIntStringMap
;
24 testIntStringMap
[42] = "Hello World!";
26 TestStructSeq
testStructSeq(1, 1, TestStructSeq::allocbuf(1));
27 testStructSeq
[0] = testStruct
;
29 testData
.intIntMap
[4] = 100;
30 testData
.stringStructsMap
["test"] = testStruct
;
31 testData
.stringSequenceMap
["test"] = testStructSeq
;
32 testData
.stringMapMap
["test"] = testStructMap
;
33 testData
.mapStringMap
[testIntStringMap
] = "Hello World";