|
From: Chris M. <zm...@us...> - 2001-12-14 23:31:22
|
Update of /cvsroot/kuml/kuml/libkuml/uml/tools
In directory usw-pr-cvs1:/tmp/cvs-serv26528
Modified Files:
gen_assoc_ccs.xsl gen_assoc_hs.xsl gen_package_ccs.xsl
Log Message:
Mods to assocs that came up during package mods.
Index: gen_assoc_ccs.xsl
===================================================================
RCS file: /cvsroot/kuml/kuml/libkuml/uml/tools/gen_assoc_ccs.xsl,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** gen_assoc_ccs.xsl 2001/12/01 19:25:23 1.3
--- gen_assoc_ccs.xsl 2001/12/14 23:31:18 1.4
***************
*** 154,157 ****
--- 154,165 ----
<xsl:param name="start_param_name"/>
+ <xsl:variable name="single_func_name">
+ <xsl:call-template name="reserved-word-processing">
+ <xsl:with-param name="the_word">
+ <xsl:value-of select="$func_name"/>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:variable>
[...481 lines suppressed...]
! <xsl:value-of select="$single_end2_name"/>
<xsl:text> ) </xsl:text>
<xsl:text>throw( </xsl:text>
***************
*** 963,969 ****
<xsl:text> i != fc_ref_all_links.end(); i++) </xsl:text>
<xsl:text> { if ((*i)[0] == </xsl:text>
! <xsl:value-of select="$assoc_end1_name"/>
<xsl:text> && (*i)[1] == </xsl:text>
! <xsl:value-of select="$assoc_end2_name"/>
<xsl:text>) </xsl:text>
<xsl:text> { fc_ref_all_links.erase(i); </xsl:text>
--- 1033,1039 ----
<xsl:text> i != fc_ref_all_links.end(); i++) </xsl:text>
<xsl:text> { if ((*i)[0] == </xsl:text>
! <xsl:value-of select="$single_end1_name"/>
<xsl:text> && (*i)[1] == </xsl:text>
! <xsl:value-of select="$single_end2_name"/>
<xsl:text>) </xsl:text>
<xsl:text> { fc_ref_all_links.erase(i); </xsl:text>
Index: gen_assoc_hs.xsl
===================================================================
RCS file: /cvsroot/kuml/kuml/libkuml/uml/tools/gen_assoc_hs.xsl,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** gen_assoc_hs.xsl 2001/12/01 19:25:23 1.5
--- gen_assoc_hs.xsl 2001/12/14 23:31:18 1.6
***************
*** 76,80 ****
<!-- The temp name of this ends function e.g. owned_element -->
! <xsl:variable name="tassoc_end1_name">
<xsl:call-template name="to_name">
<xsl:with-param name="text">
--- 76,80 ----
<!-- The temp name of this ends function e.g. owned_element -->
! <xsl:variable name="assoc_end1_name">
<xsl:call-template name="to_name">
<xsl:with-param name="text">
***************
*** 85,95 ****
</xsl:variable>
! <!-- The name of this ends function after reserverd word processing
! e.g. namespace becomes _cxx_namespace
! -->
! <xsl:variable name="assoc_end1_name">
<xsl:call-template name="reserved-word-processing">
<xsl:with-param name="the_word">
! <xsl:value-of select="$tassoc_end1_name"/>
</xsl:with-param>
</xsl:call-template>
--- 85,92 ----
</xsl:variable>
! <xsl:variable name="single_end1_name">
<xsl:call-template name="reserved-word-processing">
<xsl:with-param name="the_word">
! <xsl:value-of select="$assoc_end1_name"/>
</xsl:with-param>
</xsl:call-template>
***************
*** 195,199 ****
</xsl:variable>
! <xsl:variable name="tassoc_end2_name">
<xsl:call-template name="to_name">
<xsl:with-param name="text">
--- 192,196 ----
</xsl:variable>
! <xsl:variable name="assoc_end2_name">
<xsl:call-template name="to_name">
<xsl:with-param name="text">
***************
*** 204,211 ****
</xsl:variable>
! <xsl:variable name="assoc_end2_name">
<xsl:call-template name="reserved-word-processing">
<xsl:with-param name="the_word">
! <xsl:value-of select="$tassoc_end2_name"/>
</xsl:with-param>
</xsl:call-template>
--- 201,208 ----
</xsl:variable>
! <xsl:variable name="single_end2_name">
<xsl:call-template name="reserved-word-processing">
<xsl:with-param name="the_word">
! <xsl:value-of select="$assoc_end2_name"/>
</xsl:with-param>
</xsl:call-template>
***************
*** 399,403 ****
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end1_name"/>
<xsl:text> , </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
--- 396,400 ----
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end1_name"/>
<xsl:text> , </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
***************
*** 405,409 ****
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end2_name"/>
<xsl:text> ) </xsl:text>
--- 402,406 ----
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end2_name"/>
<xsl:text> ) </xsl:text>
***************
*** 429,433 ****
<xsl:text> </xsl:text>
! <xsl:value-of select="$assoc_end1_name"/>
<xsl:text>( </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
--- 426,430 ----
<xsl:text> </xsl:text>
! <xsl:value-of select="$single_end1_name"/>
<xsl:text>( </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
***************
*** 435,439 ****
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end2_name"/>
<xsl:text> ) </xsl:text>
<xsl:text> throw( </xsl:text>
--- 432,436 ----
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end2_name"/>
<xsl:text> ) </xsl:text>
<xsl:text> throw( </xsl:text>
***************
*** 460,464 ****
<xsl:text> </xsl:text>
! <xsl:value-of select="$assoc_end2_name"/>
<xsl:text>( </xsl:text>
<xsl:value-of select="$assocEnd1PackageName"/>
--- 457,461 ----
<xsl:text> </xsl:text>
! <xsl:value-of select="$single_end2_name"/>
<xsl:text>( </xsl:text>
<xsl:value-of select="$assocEnd1PackageName"/>
***************
*** 466,470 ****
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end1_name"/>
<xsl:text> ) </xsl:text>
<xsl:text> throw( </xsl:text>
--- 463,467 ----
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end1_name"/>
<xsl:text> ) </xsl:text>
<xsl:text> throw( </xsl:text>
***************
*** 489,493 ****
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end1_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
--- 486,490 ----
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end1_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
***************
*** 495,499 ****
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end2_name"/>
<xsl:text> ) </xsl:text>
<xsl:text> throw( </xsl:text>
--- 492,496 ----
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end2_name"/>
<xsl:text> ) </xsl:text>
<xsl:text> throw( </xsl:text>
***************
*** 525,529 ****
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end1_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
--- 522,526 ----
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end1_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
***************
*** 531,535 ****
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end2_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd1PackageName"/>
--- 528,532 ----
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end2_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd1PackageName"/>
***************
*** 566,570 ****
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end1_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
--- 563,567 ----
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end1_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
***************
*** 572,576 ****
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end2_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
--- 569,573 ----
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end2_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
***************
*** 604,608 ****
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end1_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
--- 601,605 ----
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end1_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
***************
*** 610,614 ****
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end2_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd1PackageName"/>
--- 607,611 ----
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end2_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd1PackageName"/>
***************
*** 640,654 ****
<xsl:value-of select="$assoc_end2_name"/>
<xsl:text>( </xsl:text>
! <xsl:value-of select="$assocEnd2PackageName"/>
<xsl:text>::</xsl:text>
! <xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end2_name"/>
<xsl:text>, </xsl:text>
! <xsl:value-of select="$assocEnd1PackageName"/>
<xsl:text>::</xsl:text>
! <xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end1_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
--- 637,651 ----
<xsl:value-of select="$assoc_end2_name"/>
<xsl:text>( </xsl:text>
! <xsl:value-of select="$assocEnd1PackageName"/>
<xsl:text>::</xsl:text>
! <xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end1_name"/>
<xsl:text>, </xsl:text>
! <xsl:value-of select="$assocEnd2PackageName"/>
<xsl:text>::</xsl:text>
! <xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end2_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
***************
*** 680,684 ****
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end1_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
--- 677,681 ----
<xsl:value-of select="$assocEnd1TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end1_name"/>
<xsl:text>, </xsl:text>
<xsl:value-of select="$assocEnd2PackageName"/>
***************
*** 686,690 ****
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$assoc_end2_name"/>
<xsl:text> ) </xsl:text>
<xsl:text> throw( </xsl:text>
--- 683,687 ----
<xsl:value-of select="$assocEnd2TypeName"/>
<xsl:text>_ptr </xsl:text>
! <xsl:value-of select="$single_end2_name"/>
<xsl:text> ) </xsl:text>
<xsl:text> throw( </xsl:text>
Index: gen_package_ccs.xsl
===================================================================
RCS file: /cvsroot/kuml/kuml/libkuml/uml/tools/gen_package_ccs.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** gen_package_ccs.xsl 2001/12/11 22:39:25 1.1
--- gen_package_ccs.xsl 2001/12/14 23:31:18 1.2
***************
*** 222,226 ****
<xsl:value-of select="$class_name"/>
<xsl:text>_ref() </xsl:text>
! <xsl:text>{ }; </xsl:text>
</xsl:template>
--- 222,253 ----
<xsl:value-of select="$class_name"/>
<xsl:text>_ref() </xsl:text>
!
! <xsl:text>{ if (CORBA::is_nil(fc_</xsl:text>
! <xsl:value-of select="$class_name"/>
! <xsl:text>)) </xsl:text>
!
! <xsl:text> { </xsl:text>
! <xsl:value-of select="$ClassName"/>
! <xsl:text>_impl* impl = new </xsl:text>
! <xsl:value-of select="$ClassName"/>
! <xsl:text>_impl; </xsl:text>
!
! <xsl:text> fc_</xsl:text>
! <xsl:value-of select="$class_name"/>
! <xsl:text> = impl->_this(); </xsl:text>
!
! <xsl:text> } </xsl:text>
!
! <xsl:text> return </xsl:text>
! <xsl:value-of select="$package_name"/>
! <xsl:text>::</xsl:text>
! <xsl:value-of select="$ClassName"/>
! <xsl:text>::_duplicate(fc_</xsl:text>
! <xsl:value-of select="$class_name"/>
! <xsl:text>); </xsl:text>
!
! <xsl:text>}; </xsl:text>
!
! <xsl:text> </xsl:text>
</xsl:template>
|