[GME-commit]
GMESRC/Paradigms/MetaGME/MetaMAid RawComponent.cpp, 1.2, 1.3
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Wed Aug 15 11:44:38 CDT 2007
Update of /project/gme-repository/GMESRC/Paradigms/MetaGME/MetaMAid
In directory escher:/tmp/cvs-serv3147
Modified Files:
RawComponent.cpp
Log Message:
MetaMaid avoids modifying library elements and already abstract fcos (obtained by copying existing ones).
CVS User: Zoltan Molnar, ISIS (zolmol)
Index: RawComponent.cpp
===================================================================
RCS file: /project/gme-repository/GMESRC/Paradigms/MetaGME/MetaMAid/RawComponent.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** RawComponent.cpp 20 Mar 2007 18:16:11 -0000 1.2
--- RawComponent.cpp 15 Aug 2007 16:44:36 -0000 1.3
***************
*** 182,186 ****
if( kind == L"FCO")
{
! COMTHROW( fco->put_BoolAttrByName( CComBSTR( L"IsAbstract"), VARIANT_TRUE));
}
else if( kind == L"BaseInheritance"
--- 182,190 ----
if( kind == L"FCO")
{
! VARIANT_BOOL var, lib;
! COMTHROW( fco->get_BoolAttrByName( CComBSTR( L"IsAbstract"), &var));
! COMTHROW( fco->get_IsLibObject( &lib));
! if( var != VARIANT_TRUE && lib != VARIANT_TRUE) // not abstract yet AND not a lib object (readonly)
! COMTHROW( fco->put_BoolAttrByName( CComBSTR( L"IsAbstract"), VARIANT_TRUE));
}
else if( kind == L"BaseInheritance"
More information about the GME-commit
mailing list