|
From: Frank V. C. <fr...@us...> - 2001-04-08 10:50:46
|
Update of /cvsroot/corelinux/clfw/src/libs/clfw
In directory usw-pr-cvs1:/tmp/cvs-serv10098/src/libs/clfw
Modified Files:
Concept.cpp Makefile.am
Added Files:
Catalog.cpp
Log Message:
Deeper infrastructure for persist
***** Error reading new file: [Errno 2] No such file or directory: 'Catalog.cpp'
Index: Concept.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/Concept.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** Concept.cpp 2001/04/04 00:43:09 1.5
--- Concept.cpp 2001/04/08 10:50:43 1.6
***************
*** 125,137 ****
throw ()
{
if( theProperties == NULLPTR )
{
! throw NullPointerException(LOCATION);
}
else
{
}
! return SetCollectionPtr( NULLPTR );
}
--- 125,161 ----
throw ()
{
+ SetCollectionPtr aKeySet( NULLPTR );
+
if( theProperties == NULLPTR )
{
! throw NullPointerException( LOCATION );
}
else
{
+ aKeySet = SetCollection::create();
+
+ //
+ // Iterator through the properties and
+ // stuff the set collection
+ //
+ Counter aSize = theProperties->getSize();
+ for( Counter aCnt = 0; aCnt < aSize; ++aCnt )
+ {
+ FrameworkEntityPtr aBasePtr( theProperties->getElementAt(aCnt) );
+ if( aBasePtr->getType()->isTypeOf( Attribute::getTypeDescriptor() ) )
+ {
+ AttributePtr aRetPtr( NULLPTR );
+ aRetPtr = Attribute::castDown( aBasePtr );
+ aKeySet->put( aRetPtr->getKey() );
+ }
+ else
+ {
+ throw IncompatibleClassException( LOCATION );
+ }
+ }
}
!
! return aKeySet;
}
***************
*** 145,149 ****
if( theProperties == NULLPTR || aPtr == NULLPTR )
{
! throw NullPointerException(LOCATION);
}
else
--- 169,173 ----
if( theProperties == NULLPTR || aPtr == NULLPTR )
{
! throw NullPointerException( LOCATION );
}
else
Index: Makefile.am
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/Makefile.am,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -r1.24 -r1.25
*** Makefile.am 2001/03/31 22:21:45 1.24
--- Makefile.am 2001/04/08 10:50:43 1.25
***************
*** 24,27 ****
--- 24,28 ----
Aggregate.cpp \
Sponsor.cpp \
+ Catalog.cpp \
Boolean.cpp \
Number.cpp \
|