本文整理汇总了C++中Param_Test_ptr类的典型用法代码示例。如果您正苦于以下问题:C++ Param_Test_ptr类的具体用法?C++ Param_Test_ptr怎么用?C++ Param_Test_ptr使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Param_Test_ptr类的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: catch
int
Test_Objref_Struct::init_parameters (Param_Test_ptr objref)
{
try
{
Generator *gen = GENERATOR::instance (); // value generator
// Set the long member.
this->in_.x = gen->gen_long ();
this->in_.y = objref->make_coffee ();
Coffee::Desc d;
d.name = gen->gen_string ();
this->in_.y->description (d);
this->inout_->x = 0;
this->inout_->y = Coffee::_nil ();
Coffee::Desc dd;
dd.name = CORBA::string_dup ("");
return 0;
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Test_Objref_Struct::init_parameters\n");
}
return -1;
}
示例2: out
int
Test_Unbounded_Struct_Sequence::run_sii_test (Param_Test_ptr objref)
{
Param_Test::PathSpec_out out (this->out_.out ());
this->ret_ = objref->test_unbounded_struct_sequence (this->in_,
this->inout_.inout (),
out);
return 0;
}
示例3: catch
int
Test_Any::init_parameters (Param_Test_ptr objref)
{
try
{
// get access to a Coffee Object
this->cobj_ = objref->make_coffee ();
this->reset_parameters ();
return 0;
}
catch (const CORBA::SystemException& sysex)
{
sysex._tao_print_exception ("System Exception doing make_coffee");
}
return -1;
}
示例4: catch
int
Test_Fixed_Struct::run_sii_test (Param_Test_ptr objref)
{
try
{
this->ret_ = objref->test_fixed_struct (this->in_,
this->inout_,
this->out_);
return 0;
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Test_Fixed_Struct::run_sii_test\n");
}
return -1;
}
示例5: catch
int
Test_Small_Union::run_sii_test (Param_Test_ptr objref)
{
try
{
this->ret_ = objref->test_small_union (this->in_,
this->inout_,
this->out_);
return 0;
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Test_Small_Union::run_sii_test\n");
}
return -1;
}
示例6: out_arr
int
Test_Var_Array::run_sii_test (Param_Test_ptr objref)
{
try
{
Param_Test::Var_Array_out out_arr (this->out_.out ());
this->ret_ = objref->test_var_array (this->in_,
this->inout_,
out_arr);
return 0;
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Test_Var_Array::run_sii_test\n");
}
return -1;
}
示例7: out
int
Test_Nested_Struct::run_sii_test (Param_Test_ptr objref)
{
try
{
Param_Test::Nested_Struct_out out (this->out_.out ());
this->ret_ = objref->test_nested_struct (this->in_,
this->inout_.inout (),
out);
return 0;
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Test_Nested_Struct::run_sii_test\n");
}
return -1;
}
示例8: out
int
Test_Bounded_Long_Sequence::run_sii_test (Param_Test_ptr objref)
{
try
{
Param_Test::Bounded_Long_Seq_out out (this->out_.out ());
this->ret_ = objref->test_bounded_long_sequence (this->in_.in (),
this->inout_.inout (),
out);
return 0;
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Test_Bounded_Long_Sequence::run_sii_test\n");
}
return -1;
}
示例9: out
int
Test_String_Sequence::run_sii_test (Param_Test_ptr objref)
{
try
{
CORBA::StringSeq_out out (this->out_.out ());
this->ret_ = objref->test_strseq (this->in_.in (),
this->inout_.inout (),
out);
return 0;
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Test_String_Sequence::run_sii_test\n");
}
return -1;
}
示例10: str_out
int
Test_Bounded_WString::run_sii_test (Param_Test_ptr objref)
{
try
{
CORBA::WString_out str_out (this->out_);
this->ret_ = objref->test_bounded_wstring (this->in_,
this->inout_,
str_out);
return 0;
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Test_Bounded_WString::run_sii_test\n");
}
return -1;
}
示例11: out
int
Test_ObjRef_Sequence::run_sii_test (Param_Test_ptr objref)
{
try
{
Param_Test::Coffee_Mix_out out (this->out_.out ());
this->ret_ = objref->test_coffe_mix (this->in_,
this->inout_.inout (),
out);
return 0;
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Test_ObjRef_Sequence::run_sii_test\n");
}
return -1;
}
示例12: catch
int
Test_ObjRef_Sequence::init_parameters (Param_Test_ptr objref)
{
try
{
Coffee::Desc desc;
Generator *gen = GENERATOR::instance (); // value generator
// get some sequence length (not more than 10)
CORBA::ULong len = (CORBA::ULong) (gen->gen_long () % 5) + 5;
// set the length of the sequence
this->in_.length (len);
// now set each individual element
for (CORBA::ULong i = 0; i < this->in_.length (); i++)
{
// generate some arbitrary string to be filled into the ith location in
// the sequence
this->in_[i] = objref->make_coffee ();
// select a Coffee flavor at random
CORBA::ULong index = (CORBA::ULong) (gen->gen_long () % 6);
desc.name = Coffee_Flavor [index];
// set the attribute for the in object
Coffee_ptr tmp = this->in_[i];
tmp->description (desc);
}
return 0;
}
catch (const CORBA::Exception& ex)
{
ex._tao_print_exception ("Test_ObjRef_Sequence::init_parameters\n");
}
return -1;
}