Update of /cvsroot/ccmtools/ccmtools/test/CppGenerator/receptacle_types/impl
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv20413/test/CppGenerator/receptacle_types/impl
Modified Files:
Test_impl.cc
Log Message:
bug fix: wrong use of local impl. interfaces
Index: Test_impl.cc
===================================================================
RCS file: /cvsroot/ccmtools/ccmtools/test/CppGenerator/receptacle_types/impl/Test_impl.cc,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** Test_impl.cc 5 Jan 2007 14:17:26 -0000 1.16
--- Test_impl.cc 6 Mar 2007 14:47:02 -0000 1.17
***************
*** 2,14 ****
/***
* Test component business logic implementation.
! *
! * // TODO: WRITE YOUR DESCRIPTION HERE!
*
* @author
! * @version
*
* This file structure was automatically generated by CCM Tools
* <http://ccmtools.sourceforge.net/> and contains a component's
! * implementation classes.
***/
--- 2,14 ----
/***
* Test component business logic implementation.
! *
! * // TODO: WRITE YOUR DESCRIPTION HERE!
*
* @author
! * @version
*
* This file structure was automatically generated by CCM Tools
* <http://ccmtools.sourceforge.net/> and contains a component's
! * implementation classes.
***/
***************
*** 45,50 ****
throw ( Components::CCMException )
{
! CCM_TypeTest::SmartPtr type_test = ctx->get_connection_type_test();
!
{
// basic types test cases
--- 45,50 ----
throw ( Components::CCMException )
{
! ::TypeTest::SmartPtr type_test = ctx->get_connection_type_test();
!
{
// basic types test cases
***************
*** 54,58 ****
assert(short_3 == 3);
assert(short_r == 3+7);
!
long long_2=3, long_3, long_r;
long_r = type_test->op_b2(7,long_2, long_3);
--- 54,58 ----
assert(short_3 == 3);
assert(short_r == 3+7);
!
long long_2=3, long_3, long_r;
long_r = type_test->op_b2(7,long_2, long_3);
***************
*** 60,64 ****
assert(long_3 == 3);
assert(long_r == 3+7);
!
unsigned short ushort_2=3, ushort_3, ushort_r;
ushort_r = type_test->op_b3(7,ushort_2, ushort_3);
--- 60,64 ----
assert(long_3 == 3);
assert(long_r == 3+7);
!
unsigned short ushort_2=3, ushort_3, ushort_r;
ushort_r = type_test->op_b3(7,ushort_2, ushort_3);
***************
*** 66,70 ****
assert(ushort_3 == 3);
assert(ushort_r == 3+7);
!
unsigned long ulong_2=3, ulong_3, ulong_r;
ulong_r = type_test->op_b4(7,ulong_2, ulong_3);
--- 66,70 ----
assert(ushort_3 == 3);
assert(ushort_r == 3+7);
!
unsigned long ulong_2=3, ulong_3, ulong_r;
ulong_r = type_test->op_b4(7,ulong_2, ulong_3);
***************
*** 72,76 ****
assert(ulong_3 == 3);
assert(ulong_r == 3+7);
!
float float_2=3.0, float_3, float_r;
float_r = type_test->op_b5(7.0,float_2, float_3);
--- 72,76 ----
assert(ulong_3 == 3);
assert(ulong_r == 3+7);
!
float float_2=3.0, float_3, float_r;
float_r = type_test->op_b5(7.0,float_2, float_3);
***************
*** 78,82 ****
assert(abs(float_3 - 3.0) < 0.001);
assert(abs(float_r - (3.0+7.0)) < 0.001);
!
double double_2=3.0, double_3, double_r;
double_r = type_test->op_b6(7.0,double_2, double_3);
--- 78,82 ----
assert(abs(float_3 - 3.0) < 0.001);
assert(abs(float_r - (3.0+7.0)) < 0.001);
!
double double_2=3.0, double_3, double_r;
double_r = type_test->op_b6(7.0,double_2, double_3);
***************
*** 103,107 ****
assert(bool_3 == false);
assert(bool_r == false && true);
!
unsigned char uchar_2=3, uchar_3, uchar_r;
uchar_r = type_test->op_b10(7,uchar_2, uchar_3);
--- 103,107 ----
assert(bool_3 == false);
assert(bool_r == false && true);
!
unsigned char uchar_2=3, uchar_3, uchar_r;
uchar_r = type_test->op_b10(7,uchar_2, uchar_3);
***************
*** 109,113 ****
assert(uchar_3 == 3);
assert(uchar_r == 3+7);
! }
--- 109,113 ----
assert(uchar_3 == 3);
assert(uchar_r == 3+7);
! }
***************
*** 119,124 ****
assert(time_t_3 == 3);
assert(time_t_r == 3+7);
!
! // Test case: enum Color {red, green, blue, black, orange};
Color Color_2,Color_3, Color_r;
Color_2 = Color(blue);
--- 119,124 ----
assert(time_t_3 == 3);
assert(time_t_r == 3+7);
!
! // Test case: enum Color {red, green, blue, black, orange};
Color Color_2,Color_3, Color_r;
Color_2 = Color(blue);
|