本文整理汇总了C++中TestIntfPrx::sequenceTest方法的典型用法代码示例。如果您正苦于以下问题:C++ TestIntfPrx::sequenceTest方法的具体用法?C++ TestIntfPrx::sequenceTest怎么用?C++ TestIntfPrx::sequenceTest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestIntfPrx
的用法示例。
在下文中一共展示了TestIntfPrx::sequenceTest方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: tprintf
//.........这里部分代码省略.........
ss1d3->sd3 = "D3.sd3";
ss1d3->pb = ss1b;
BPtr ss2b = new B;
ss2b->sb = "B.sb";
ss2b->pb = ss1b;
D1Ptr ss2d1 = new D1;
ss2d1->sb = "D1.sb";
ss2d1->sd1 = "D1.sd1";
ss2d1->pb = ss2b;
D3Ptr ss2d3 = new D3;
ss2d3->sb = "D3.sb";
ss2d3->sd3 = "D3.sd3";
ss2d3->pb = ss2b;
ss1d1->pd1 = ss2b;
ss1d3->pd3 = ss2d1;
ss2d1->pd1 = ss1d3;
ss2d3->pd3 = ss1d1;
SS1Ptr ss1 = new SS1;
ss1->s.push_back(ss1b);
ss1->s.push_back(ss1d1);
ss1->s.push_back(ss1d3);
SS2Ptr ss2 = new SS2;
ss2->s.push_back(ss2b);
ss2->s.push_back(ss2d1);
ss2->s.push_back(ss2d3);
ss = test->sequenceTest(ss1, ss2);
}
test(ss.c1);
BPtr ss1b = ss.c1->s[0];
BPtr ss1d1 = ss.c1->s[1];
test(ss.c2);
BPtr ss1d3 = ss.c1->s[2];
test(ss.c2);
BPtr ss2b = ss.c2->s[0];
BPtr ss2d1 = ss.c2->s[1];
BPtr ss2d3 = ss.c2->s[2];
test(ss1b->pb == ss1b);
test(ss1d1->pb == ss1b);
test(ss1d3->pb == ss1b);
test(ss2b->pb == ss1b);
test(ss2d1->pb == ss2b);
test(ss2d3->pb == ss2b);
test(ss1b->ice_id() == "::Test::B");
test(ss1d1->ice_id() == "::Test::D1");
test(ss1d3->ice_id() == "::Test::B");
test(ss2b->ice_id() == "::Test::B");
test(ss2d1->ice_id() == "::Test::D1");
test(ss2d3->ice_id() == "::Test::B");
}
catch(const ::Ice::Exception&)
{
test(0);