From: Robert L. <rle...@us...> - 2007-02-27 15:19:28
|
Update of /cvsroot/ccmtools/ccmtools/src/templates/CppLocalTemplates In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv27382/src/templates/CppLocalTemplates Modified Files: MComponentDef MProvidesDefGetFacetDefinition MAttributeDefImplDefinition Log Message: now support "provide" and "set attribute" after "configuration complete" Index: MAttributeDefImplDefinition =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/templates/CppLocalTemplates/MAttributeDefImplDefinition,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** MAttributeDefImplDefinition 2 Jan 2007 13:26:19 -0000 1.8 --- MAttributeDefImplDefinition 27 Feb 2007 15:19:23 -0000 1.9 *************** *** 11,14 **** --- 11,15 ---- { %(Identifier)s_ = value; + %(AssemblyAttributeSetterCode)s } Index: MProvidesDefGetFacetDefinition =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/templates/CppLocalTemplates/MProvidesDefGetFacetDefinition,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** MProvidesDefGetFacetDefinition 21 Feb 2007 16:04:48 -0000 1.8 --- MProvidesDefGetFacetDefinition 27 Feb 2007 15:19:23 -0000 1.9 *************** *** 8,11 **** --- 8,12 ---- %(ComponentType)s_%(Identifier)s_impl* facet = new %(ComponentType)s_%(Identifier)s_impl(this); + %(AssemblyGetFacetCode)s %(Identifier)s_ = dynamic_cast< %(CCMProvidesType)s* >(facet); return %(Identifier)s_; Index: MComponentDef =================================================================== RCS file: /cvsroot/ccmtools/ccmtools/src/templates/CppLocalTemplates/MComponentDef,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** MComponentDef 21 Feb 2007 16:04:48 -0000 1.25 --- MComponentDef 27 Feb 2007 15:19:23 -0000 1.26 *************** *** 428,431 **** --- 428,432 ---- %(MSupportsDefVariable)s %(AssemblyInnerComponentVariable)s + bool ccm_activate_ok; public: *************** *** 488,491 **** --- 489,493 ---- %(Identifier)s_impl::%(Identifier)s_impl() + : ccm_activate_ok(false) { %(MProvidesDefGetFacetPointerInit)s *************** *** 516,519 **** --- 518,522 ---- throw Components::CCMException(Components::CREATE_ERROR); } + ccm_activate_ok = true; } |