You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(9) |
Oct
(124) |
Nov
(120) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(6) |
Feb
(34) |
Mar
(49) |
Apr
(81) |
May
(25) |
Jun
(3) |
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(37) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Frank V. C. <fr...@us...> - 2001-04-17 09:59:46
|
Update of /cvsroot/corelinux/clfw/src/libs/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv12842/src/libs/Persist
Modified Files:
Makefile.am SchemaCatStore.cpp
Added Files:
SchemaStore.cpp
Log Message:
Updated Schema management
***** Error reading new file: [Errno 2] No such file or directory: 'SchemaStore.cpp'
Index: Makefile.am
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/Persist/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** Makefile.am 2001/04/15 16:36:08 1.5
--- Makefile.am 2001/04/17 09:59:43 1.6
***************
*** 21,25 ****
SchemaCatalog.cpp \
SchemaAbstractStore.cpp \
! SchemaCatStore.cpp
--- 21,26 ----
SchemaCatalog.cpp \
SchemaAbstractStore.cpp \
! SchemaCatStore.cpp \
! SchemaStore.cpp
Index: SchemaCatStore.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/Persist/SchemaCatStore.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** SchemaCatStore.cpp 2001/04/15 16:36:08 1.1
--- SchemaCatStore.cpp 2001/04/17 09:59:43 1.2
***************
*** 153,157 ****
{
aSd = SchemaAbstractStore::fetchDesc( gPrimaryKey );
! theDescriptor = *(CatalogDescriptorPtr(aSd.data));
}
else
--- 153,165 ----
{
aSd = SchemaAbstractStore::fetchDesc( gPrimaryKey );
! if( aSd.data != NULLPTR )
! {
! theDescriptor = *(CatalogDescriptorPtr(aSd.data));
! std::free( aSd.data );
! }
! else
! {
! throw NullPointerException( LOCATION );
! }
}
else
|
|
From: Frank V. C. <fr...@us...> - 2001-04-15 16:36:11
|
Update of /cvsroot/corelinux/clfw/src/libs/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv27968/src/libs/Persist
Modified Files:
Makefile.am SchemaCatalog.cpp SchemaSponsor.cpp Store.cpp
Added Files:
SchemaAbstractStore.cpp SchemaCatStore.cpp
Log Message:
115287 Schema persist incremental
--- NEW FILE ---
/*
CoreLinux++
Copyright (C) 1999,2000,2001 CoreLinux Consortium
The CoreLinux++ Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The CoreLinux++ Library Library is distributed in the hope that it will
be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
*/
#define PERSIST_FRAMEWORK
#if !defined(__CLFWCOMMON_HPP)
#include <ClfwCommon.hpp>
#endif
#if !defined(__SCHEMAABSTRACTSTORE_HPP)
#include INCL_SchemaAbstractStore
#endif
#include <gdbm.h>
namespace corelinux
{
SchemaAbstractStore::SchemaAbstractStore( void )
:
Store(),
theHandle( NULLPTR )
{
;
}
SchemaAbstractStore::SchemaAbstractStore( SchemaAbstractStoreCref aRef )
:
Store(aRef),
theHandle( NULLPTR )
{
;
}
SchemaAbstractStore::~SchemaAbstractStore( void )
{
this->closeStore();
}
//
// Equality operator
//
bool SchemaAbstractStore::operator==( SchemaAbstractStoreCref aSchemaStore ) const
{
return ( this == &aSchemaStore );
}
//
// Assignment operator
//
SchemaAbstractStoreRef SchemaAbstractStore::operator=( SchemaAbstractStoreCref )
{
return ( *this );
}
void SchemaAbstractStore::closeStore( void )
{
if( theHandle != NULLPTR )
{
gdbm_close((GDBM_FILE)theHandle);
theHandle = NULLPTR;
}
else
{
; // do nothing
}
}
Handle SchemaAbstractStore::openRead( CharPtr aName )
{
REQUIRE( aName != NULLPTR );
return (Handle) gdbm_open
(
aName,0, GDBM_READER,0666,NULLPTR
);
}
Handle SchemaAbstractStore::openWrite( CharPtr aName )
{
REQUIRE( aName != NULLPTR );
return (Handle) gdbm_open
(
aName,0, GDBM_WRCREAT,0666,NULLPTR
);
}
//
// Check for any key in system
//
bool SchemaAbstractStore::hasKey( CharPtr aKey )
{
datum key ={aKey, strlen(aKey)};
return gdbm_exists( (GDBM_FILE)theHandle, key );
}
//
// Update the toc record
//
void SchemaAbstractStore::updateDesc( CharPtr aKey, SchemaDataDescriptorCref aDesc )
{
datum key = {aKey, strlen(aKey)};
datum keyd = {aDesc.data,aDesc.dataSize};
gdbm_store((GDBM_FILE)theHandle,key,keyd,GDBM_REPLACE);
}
//
// Fetch the toc record
//
SchemaDataDescriptor SchemaAbstractStore::fetchDesc( CharPtr aKey )
{
datum key = { aKey, strlen(aKey) };
datum res = gdbm_fetch((GDBM_FILE)theHandle,key);
SchemaDataDescriptor ad = { res.dptr,res.dsize };
return ad;
}
//
// MetaType information block
//
// version SchemaCatStore for the MetaType
const DwordCref version(1);
// meta indentifier for the SchemaCatStore
const UniversalIdentifier metaIdentifier
(
"4fa40184-31ba-11d5-95f8-00500489272c"
);
// Define parents
OPEN_METATYPE_PARENTS( SchemaAbstractStore )
DEFINE_METATYPE_PARENT( Store )
CLOSE_METATYPE_PARENT;
// We construct the null values reference
OPEN_INSTANCEDATA( SchemaAbstractStore )
CLOSE_INSTANCEDATA;
// We construct the null dispatch table
DEFINE_DUMMY_DISPATCHTABLE( SchemaAbstractStore );
// we use the abstract macro for MetaTypeStore autonaming
DEFINE_ABSTRACT_METATYPE
(
SchemaAbstractStore,
metaIdentifier,
version,
NULLPTR ,
"SchemaAbstractStore is base abstraction for derived Schema store types"
);
}
***** Error reading new file: [Errno 2] No such file or directory: 'SchemaCatStore.cpp'
Index: Makefile.am
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/Persist/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Makefile.am 2001/04/12 11:56:53 1.4
--- Makefile.am 2001/04/15 16:36:08 1.5
***************
*** 14,22 ****
noinst_LTLIBRARIES = libclfwp.la
! libclfwp_la_SOURCES = StoreSponsor.cpp \
! SchemaSponsor.cpp \
! StoreCatalog.cpp \
! SchemaCatalog.cpp \
! Store.cpp
--- 14,26 ----
noinst_LTLIBRARIES = libclfwp.la
! libclfwp_la_SOURCES = \
! StoreSponsor.cpp \
! StoreCatalog.cpp \
! Store.cpp \
! SchemaSponsor.cpp \
! SchemaCatalog.cpp \
! SchemaAbstractStore.cpp \
! SchemaCatStore.cpp
!
Index: SchemaCatalog.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/Persist/SchemaCatalog.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** SchemaCatalog.cpp 2001/04/12 11:56:53 1.5
--- SchemaCatalog.cpp 2001/04/15 16:36:08 1.6
***************
*** 33,36 ****
--- 33,40 ----
#endif
+ #if !defined(__SCHEMACATSTORE_HPP)
+ #include INCL_SchemaCatStore
+ #endif
+
#if !defined(__SCHEMA_HPP)
#include <clfw/Schema.hpp>
***************
*** 56,71 ****
#include <unistd.h>
#include <errno.h>
- #include <gdbm.h>
}
namespace corelinux
{
- // Property constants
-
- static FrameworkString nameKey("Name");
- static FrameworkString locationKey("Location");
- static FrameworkString collectionType("Collection");
- static FrameworkString guidKey("GUID");
-
// Environmental constants
--- 60,67 ----
***************
*** 76,79 ****
--- 72,76 ----
const FrameworkString catName("schemcat");
const FrameworkString defCollection("SetCollection");
+ const FrameworkString catMode("Write");
//
***************
*** 83,92 ****
SchemaCatalog::SchemaCatalog( void )
:
! StoreCatalog()
{
//
// Initialize the catalog
//
resolveLocations();
}
--- 80,92 ----
SchemaCatalog::SchemaCatalog( void )
:
! StoreCatalog(),
! theCatalog( NULLPTR )
{
//
// Initialize the catalog
//
+
resolveLocations();
+ createCatalogStore();
}
***************
*** 97,101 ****
SchemaCatalog::SchemaCatalog( SchemaCatalogCref aType )
:
! StoreCatalog( aType )
{
//
--- 97,102 ----
SchemaCatalog::SchemaCatalog( SchemaCatalogCref aType )
:
! StoreCatalog( aType ),
! theCatalog( NULLPTR )
{
//
***************
*** 103,106 ****
--- 104,108 ----
//
resolveLocations();
+ createCatalogStore();
}
***************
*** 111,115 ****
SchemaCatalog::~SchemaCatalog( void )
{
! ; // do nothing
}
--- 113,125 ----
SchemaCatalog::~SchemaCatalog( void )
{
! if( theCatalog != NULLPTR )
! {
! delete theCatalog;
! theCatalog = NULLPTR;
! }
! else
! {
! ; // do nothing
! }
}
***************
*** 159,163 ****
FrameworkStringPtr aName
(
! this->resolveValueAssignment(aCollection,&nameKey)
);
--- 169,173 ----
FrameworkStringPtr aName
(
! Store::resolveValueAssignment(aCollection,&Store::getNameKey())
);
***************
*** 194,197 ****
--- 204,244 ----
// Make the catalog entry and persist
+ FrameworkStringPtr aLocation
+ (
+ Store::resolveValueAssignment(aCollection,& Store::getLocationKey())
+ );
+
+ if( aLocation == NULLPTR )
+ {
+ aLocation = &theStoresRoot;
+ }
+ else
+ {
+ ; // do nothing
+ }
+
+ //
+ // What we do here to make the entry is:
+ // Collection where:
+ // UuidAssignment -> uuid
+ // EntryInfo -> array
+ // Name -> name
+ // Location -> location
+ //
+
+ Array outer;
+ Array inner;
+ Attribute uid;
+
+ uid.setKey( FrameworkEntityPtr(&Store::getUniqueIdKey()) );
+ uid.setValue( FrameworkEntityPtr(&aUid) );
+ outer.put( &uid );
+
+ Attribute colInfo;
+ colInfo.setKey( FrameworkEntityPtr(&Store::getCollectionKey()) );
+ colInfo.setValue( &inner );
+
+ outer.put( &colInfo );
+
// Serialize the first part to the location
***************
*** 234,238 ****
FrameworkStringPtr aName
(
! this->resolveValueAssignment(aCollection,&nameKey)
);
--- 281,285 ----
FrameworkStringPtr aName
(
! Store::resolveValueAssignment(aCollection,&Store::getNameKey())
);
***************
*** 297,301 ****
UniversalIdentifier aSchmId( aKey.getValue() );
! anAttribute->setKey( new FrameworkString(nameKey) );
anAttribute->setValue( new FrameworkString(aName) );
--- 344,348 ----
UniversalIdentifier aSchmId( aKey.getValue() );
! anAttribute->setKey( new FrameworkString( Store::getNameKey() ) );
anAttribute->setValue( new FrameworkString(aName) );
***************
*** 320,324 ****
FrameworkStringPtr aResult
(
! this->resolveValueAssignment(aCollection,&guidKey)
);
--- 367,375 ----
FrameworkStringPtr aResult
(
! Store::resolveValueAssignment
! (
! aCollection,
! &Store::getUniqueIdKey()
! )
);
***************
*** 352,356 ****
FrameworkStringPtr aResult
(
! this->resolveValueAssignment(aCollection,&collectionType)
);
--- 403,411 ----
FrameworkStringPtr aResult
(
! Store::resolveValueAssignment
! (
! aCollection,
! &Store::getCollectionKey()
! )
);
***************
*** 385,417 ****
}
- //
- // Little workhorse
- //
-
- FrameworkStringPtr SchemaCatalog::resolveValueAssignment
- (
- CollectionPtr aCollection,
- FrameworkStringPtr aValue
- ) const
- {
- FrameworkStringPtr aResult(NULLPTR);
- Attribute aQueryAttr;
- ElementIndex anIndex(-1);
-
- aQueryAttr.setKey( aValue );
- AttributePtr aAttr( NULLPTR );
-
- if( ( anIndex = aCollection->indexOf( &aQueryAttr ) ) >= 0 )
- {
- aAttr = Attribute::castDown(aCollection->getElementAt( anIndex ));
- aResult = FrameworkString::castDown( aAttr->getValue() );
- }
- else
- {
- ; // do nothing
- }
-
- return aResult;
- }
//
--- 440,443 ----
***************
*** 488,491 ****
--- 514,582 ----
; // do nothing
}
+ }
+
+ //
+ // Fetch or create, if first time, the
+ // schema catalog
+ //
+
+ void SchemaCatalog::createCatalogStore( void )
+ {
+ Array anArray;
+
+ //
+ // Establish the location
+ //
+
+ Attribute aLoc;
+ aLoc.setKey( (FrameworkEntityPtr)&(Store::getLocationKey()) );
+ aLoc.setValue( (FrameworkEntityPtr)&theCatalogRoot );
+ anArray.put( &aLoc );
+
+ //
+ // Establish the name
+ //
+
+ Attribute aName;
+ aName.setKey( (FrameworkEntityPtr)&(Store::getNameKey()) );
+ aName.setValue( (FrameworkEntityPtr)&catName );
+ anArray.put( &aName );
+
+ //
+ // Establish mode
+ //
+
+ Attribute aMode;
+ aMode.setKey( (FrameworkEntityPtr)&(Store::getModeKey() ) );
+ aMode.setValue( (FrameworkEntityPtr)&catMode );
+ anArray.put( &aMode );
+
+ theCatalog = SchemaCatStore::create();
+ if( theCatalog != NULLPTR )
+ {
+ CollectionPtr aResult( NULLPTR );
+ theCatalog->open( &anArray );
+
+ aResult = theCatalog->read( NULLPTR );
+
+ if( aResult != NULLPTR )
+ {
+ Counter maxLoop( aResult->getSize() );
+ for( Counter x = 0; x < maxLoop; ++x )
+ {
+
+ }
+ theCatalog->returnReadCollection( aResult );
+ }
+ else
+ {
+ throw NullPointerException(LOCATION);
+ }
+ }
+ else
+ {
+ throw Exception("Can't open Schema Catalog",LOCATION);
+ }
+
}
Index: SchemaSponsor.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/Persist/SchemaSponsor.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** SchemaSponsor.cpp 2001/04/10 21:17:50 1.2
--- SchemaSponsor.cpp 2001/04/15 16:36:08 1.3
***************
*** 89,93 ****
if( theStoreCatalog == NULLPTR )
{
! theStoreCatalog = new SchemaCatalog;
}
else
--- 89,93 ----
if( theStoreCatalog == NULLPTR )
{
! theStoreCatalog = SchemaCatalog::create();
}
else
Index: Store.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/Persist/Store.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Store.cpp 2001/04/12 11:56:53 1.1
--- Store.cpp 2001/04/15 16:36:08 1.2
***************
*** 25,34 ****
--- 25,57 ----
#endif
+ #if !defined(__FRAMEWORKSTRING_HPP)
+ #include <clfw/FrameworkString.hpp>
+ #endif
+
+ #if !defined(__COLLECTION_HPP)
+ #include <clfw/Collection.hpp>
+ #endif
+
+ #if !defined(__ATTRIBUTE_HPP)
+ #include <clfw/Attribute.hpp>
+ #endif
+
#if !defined(__STORE_HPP)
#include INCL_Store
#endif
+
namespace corelinux
{
+ FrameworkString Store::theNameKey("Name");
+
+ FrameworkString Store::theModeKey("Mode");
+
+ FrameworkString Store::theLocationKey("Location");
+
+ FrameworkString Store::theUniqueIdKey("GUID");
+
+ FrameworkString Store::theCollectionKey("Collection");
+
//
// Constructor
***************
*** 77,80 ****
--- 100,158 ----
{
return ( *this );
+ }
+
+ //
+ // Little workhorse
+ //
+
+ FrameworkStringPtr Store::resolveValueAssignment
+ (
+ CollectionPtr aCollection,
+ FrameworkStringCptr aValue
+ )
+ {
+ FrameworkStringPtr aResult(NULLPTR);
+ Attribute aQueryAttr;
+ ElementIndex anIndex(-1);
+
+ aQueryAttr.setKey( FrameworkStringPtr(aValue) );
+ AttributePtr aAttr( NULLPTR );
+
+ if( ( anIndex = aCollection->indexOf( &aQueryAttr ) ) >= 0 )
+ {
+ aAttr = Attribute::castDown(aCollection->getElementAt( anIndex ));
+ aResult = FrameworkString::castDown( aAttr->getValue() );
+ }
+ else
+ {
+ ; // do nothing
+ }
+
+ return aResult;
+ }
+
+ FrameworkStringCref Store::getNameKey( void )
+ {
+ return theNameKey;
+ }
+
+ FrameworkStringCref Store::getModeKey( void )
+ {
+ return theModeKey;
+ }
+
+ FrameworkStringCref Store::getLocationKey( void )
+ {
+ return theLocationKey;
+ }
+
+ FrameworkStringCref Store::getUniqueIdKey( void )
+ {
+ return theUniqueIdKey;
+ }
+
+ FrameworkStringCref Store::getCollectionKey( void )
+ {
+ return theCollectionKey;
}
|
|
From: Frank V. C. <fr...@us...> - 2001-04-15 16:36:11
|
Update of /cvsroot/corelinux/clfw/clfw/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv27968/clfw/Persist
Modified Files:
Makefile.am Persist.hpp SchemaCatalog.hpp Store.hpp
Added Files:
SchemaAbstractStore.hpp SchemaCatStore.hpp
Log Message:
115287 Schema persist incremental
***** Error reading new file: [Errno 2] No such file or directory: 'SchemaAbstractStore.hpp'
***** Error reading new file: [Errno 2] No such file or directory: 'SchemaCatStore.hpp'
Index: Makefile.am
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/Makefile.am,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Makefile.am 2001/04/12 11:56:53 1.4
--- Makefile.am 2001/04/15 16:36:08 1.5
***************
*** 14,22 ****
includedir = @includedir@/Persist
include_HEADERS = Persist.hpp \
! StoreSponsor.hpp \
! SchemaSponsor.hpp \
! StoreCatalog.hpp \
! SchemaCatalog.hpp \
! Store.hpp
--- 14,25 ----
includedir = @includedir@/Persist
include_HEADERS = Persist.hpp \
! StoreSponsor.hpp \
! StoreCatalog.hpp \
! Store.hpp \
! SchemaSponsor.hpp \
! SchemaCatalog.hpp \
! SchemaAbstractStore.hpp \
! SchemaCatStore.hpp
!
Index: Persist.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/Persist.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** Persist.hpp 2001/04/12 11:56:53 1.4
--- Persist.hpp 2001/04/15 16:36:08 1.5
***************
*** 33,40 ****
#define INCL_StoreSponsor <clfw/Persist/StoreSponsor.hpp>
- #define INCL_SchemaSponsor <clfw/Persist/SchemaSponsor.hpp>
#define INCL_StoreCatalog <clfw/Persist/StoreCatalog.hpp>
- #define INCL_SchemaCatalog <clfw/Persist/SchemaCatalog.hpp>
#define INCL_Store <clfw/Persist/Store.hpp>
/*
--- 33,48 ----
#define INCL_StoreSponsor <clfw/Persist/StoreSponsor.hpp>
#define INCL_StoreCatalog <clfw/Persist/StoreCatalog.hpp>
#define INCL_Store <clfw/Persist/Store.hpp>
+
+ //
+ // Schema persistence
+ //
+
+ #define INCL_SchemaSponsor <clfw/Persist/SchemaSponsor.hpp>
+ #define INCL_SchemaCatalog <clfw/Persist/SchemaCatalog.hpp>
+ #define INCL_SchemaAbstractStore <clfw/Persist/SchemaAbstractStore.hpp>
+ #define INCL_SchemaCatStore <clfw/Persist/SchemaCatStore.hpp>
+ #define INCL_SchemaStore <clfw/Persist/SchemaStore.hpp>
/*
Index: SchemaCatalog.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/SchemaCatalog.hpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** SchemaCatalog.hpp 2001/04/12 11:56:53 1.5
--- SchemaCatalog.hpp 2001/04/15 16:36:08 1.6
***************
*** 41,44 ****
--- 41,45 ----
namespace corelinux
{
+ DECLARE_CLASS( Store );
DECLARE_CLASS( Schema );
DECLARE_CLASS( SchemaCatalog );
***************
*** 155,158 ****
--- 156,163 ----
void resolveLocations( void );
+ /// Create the catalog store
+
+ void createCatalogStore( void );
+
/**
createSchema is the workhorse which goes through
***************
*** 199,216 ****
);
- /**
- General function to resolve attribute from
- collection
- @param Collection from user
- @param FrameworkString for key to search on
- @returns FrameworkString value that goes
- with key
- */
-
- FrameworkStringPtr resolveValueAssignment
- (
- CollectionPtr,
- FrameworkStringPtr
- ) const;
--- 204,207 ----
***************
*** 228,231 ****
--- 219,226 ----
SetCollection theSchemas;
+
+ /// The catalog store itself
+
+ StorePtr theCatalog;
};
}
Index: Store.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/Store.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** Store.hpp 2001/04/12 11:56:53 1.1
--- Store.hpp 2001/04/15 16:36:08 1.2
***************
*** 32,35 ****
--- 32,37 ----
namespace corelinux
{
+ DECLARE_CLASS( Collection );
+ DECLARE_CLASS( FrameworkString );
DECLARE_CLASS( Store );
***************
*** 76,83 ****
--- 78,164 ----
//
+ /**
+ General function to resolve attribute from
+ collection
+ @param Collection from user
+ @param FrameworkString for key to search on
+ @returns FrameworkString value that goes
+ with key
+ */
+
+ static FrameworkStringPtr resolveValueAssignment
+ (
+ CollectionPtr,
+ FrameworkStringCptr
+ ) ;
+
+ static FrameworkStringCref getNameKey( void );
+ static FrameworkStringCref getModeKey( void );
+ static FrameworkStringCref getLocationKey( void );
+ static FrameworkStringCref getUniqueIdKey( void );
+ static FrameworkStringCref getCollectionKey( void );
+
+ //
+ // Mutators
+ //
+
+ //
+ // Forced interface
+ //
+
+ /**
+ open the store, using the arguments
+ @param Collection of corelinux::Attributes,
+ with common key/value pairs as:
+ "Name" - Name of Store
+ "Location" - Specific location details
+ "Mode" - "Read | Write | ReadWrite"
+ "Schema" - corelinux::Schema model for store
+ "UserId" - Identifiers the user
+ "AliasId" - As alias
+ "Password" - for activity
+ */
+
+ virtual void open( CollectionPtr ) = 0;
+
+ /**
+ close the store
+ */
+
+ virtual void close( void ) = 0;
+
+ /**
+ Read one or more objects from a store
+ @param Collection pointer to identifications
+ @returns Collection of resolutions
+ */
+
+ virtual CollectionPtr read( CollectionPtr ) = 0;
+
+ /**
+ Returns a collection created by virtue of calling
+ a read operation
+ @param Collection pointer from Store::read
+ */
+
+ virtual void returnReadCollection( CollectionPtr ) = 0;
+
+
+ /**
+ Write one or more objects to a store
+ @param Collection pointer to identifications and objects
+ */
+
+ virtual void write( CollectionPtr ) = 0;
+
protected:
private:
+ static FrameworkString theNameKey;
+ static FrameworkString theModeKey;
+ static FrameworkString theLocationKey;
+ static FrameworkString theUniqueIdKey;
+ static FrameworkString theCollectionKey;
};
|
|
From: Frank V. C. <fr...@us...> - 2001-04-15 16:36:11
|
Update of /cvsroot/corelinux/clfw In directory usw-pr-cvs1:/tmp/cvs-serv27968 Modified Files: ChangeLog config.h.in configure.in Log Message: 115287 Schema persist incremental Index: ChangeLog =================================================================== RCS file: /cvsroot/corelinux/clfw/ChangeLog,v retrieving revision 1.22 retrieving revision 1.23 diff -C2 -r1.22 -r1.23 *** ChangeLog 2001/04/08 10:50:42 1.22 --- ChangeLog 2001/04/15 16:36:08 1.23 *************** *** 1,2 **** --- 1,7 ---- + 2001-04-15 Frank V. Castellucci <fr...@ca...> + + * Feature 115287 - Schema catalog working, factoring and + preparing for schema stores. + 2001-04-08 Frank V. Castellucci <fr...@ca...> Index: config.h.in =================================================================== RCS file: /cvsroot/corelinux/clfw/config.h.in,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** config.h.in 2000/10/05 21:11:29 1.2 --- config.h.in 2001/04/15 16:36:08 1.3 *************** *** 4,7 **** --- 4,10 ---- #undef STDC_HEADERS + /* Define if you have the gdbm library (-lgdbm). */ + #undef HAVE_LIBGDBM + /* Define if you have the uuid library (-luuid). */ #undef HAVE_LIBUUID Index: configure.in =================================================================== RCS file: /cvsroot/corelinux/clfw/configure.in,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -r1.24 -r1.25 *** configure.in 2001/04/04 00:43:09 1.24 --- configure.in 2001/04/15 16:36:08 1.25 *************** *** 101,104 **** --- 101,110 ---- ],-lstdc++) + AC_CHECK_LIB(gdbm,gdbm_open,,[ + echo "You need to install gdbm" + exit; + ],-lstdc++) + + AC_SUBST(LIBS) |
|
From: Frank V. C. <fr...@us...> - 2001-04-15 11:18:03
|
Update of /cvsroot/corelinux/htdocs
In directory usw-pr-cvs1:/tmp/cvs-serv23770
Modified Files:
news.php download.php
Log Message:
Release 0.4.32
Index: news.php
===================================================================
RCS file: /cvsroot/corelinux/htdocs/news.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** news.php 2001/04/14 11:40:18 1.34
--- news.php 2001/04/15 11:18:00 1.35
***************
*** 41,44 ****
--- 41,49 ----
<?
+ add_breaking_news("04/15/2001",
+ "CoreLinux++ 0.4.32 released!",
+ "Library refresh available",
+ "rel-0-4-32",
+ "Fixed bugs in use of memset (SemaphoreGroup and Memory).");
add_breaking_news("04/14/2001",
***************
*** 251,254 ****
--- 256,260 ----
echo "<table compact width=100% border=0>\n";
+ add_small_news("04/15/01","rel-0-4-32","libcorelinux++ 0.4.32");
add_small_news("04/14/01","rel-0-4-31","libcorelinux++ 0.4.31");
add_small_news("11/24","rel-0-1-0","libclfll++ 0.1.0");
***************
*** 257,258 ****
--- 263,270 ----
}
?>
+
+
+
+
+
+
Index: download.php
===================================================================
RCS file: /cvsroot/corelinux/htdocs/download.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -r1.27 -r1.28
*** download.php 2001/04/14 11:47:12 1.27
--- download.php 2001/04/15 11:18:00 1.28
***************
*** 4,8 ****
$cldoc_release="0.4.29";
! $cl_release="0.4.31";
$cldeb_release="0.4.30";
$cl_release_rpm=1;
--- 4,8 ----
$cldoc_release="0.4.29";
! $cl_release="0.4.32";
$cldeb_release="0.4.30";
$cl_release_rpm=1;
|
|
From: Frank V. C. <fr...@us...> - 2001-04-15 11:02:43
|
Update of /cvsroot/corelinux/corelinux In directory usw-pr-cvs1:/tmp/cvs-serv22354 Modified Files: ChangeLog Log Message: Release 0.4.32 Index: ChangeLog =================================================================== RCS file: /cvsroot/corelinux/corelinux/ChangeLog,v retrieving revision 1.34 retrieving revision 1.35 diff -C2 -r1.34 -r1.35 *** ChangeLog 2001/04/14 13:50:55 1.34 --- ChangeLog 2001/04/15 11:02:40 1.35 *************** *** 1,2 **** --- 1,6 ---- + 2001-04-15 Frank V. Castellucci <fr...@ca...> + + * Fixes for defect 416191 + 2001-04-14 frankc <fr...@c9...> |
|
From: Frank V. C. <fr...@us...> - 2001-04-15 01:10:44
|
Update of /cvsroot/corelinux/corelinux In directory usw-pr-cvs1:/tmp/cvs-serv31158 Modified Files: configure.in Log Message: 416212 Release 0.4.32 Index: configure.in =================================================================== RCS file: /cvsroot/corelinux/corelinux/configure.in,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -r1.29 -r1.30 *** configure.in 2001/04/14 10:34:18 1.29 --- configure.in 2001/04/15 01:10:41 1.30 *************** *** 10,14 **** CORELINUX_MAJOR_VERSION=0 CORELINUX_MINOR_VERSION=4 ! CORELINUX_MICRO_VERSION=31 dnl --- 10,14 ---- CORELINUX_MAJOR_VERSION=0 CORELINUX_MINOR_VERSION=4 ! CORELINUX_MICRO_VERSION=32 dnl |
|
From: Frank V. C. <fr...@us...> - 2001-04-15 01:09:31
|
Update of /cvsroot/corelinux/corelinux/src/classlibs/corelinux
In directory usw-pr-cvs1:/tmp/cvs-serv31000
Modified Files:
SemaphoreGroup.cpp Memory.cpp
Log Message:
416191 memset had transposed arguments
Index: SemaphoreGroup.cpp
===================================================================
RCS file: /cvsroot/corelinux/corelinux/src/classlibs/corelinux/SemaphoreGroup.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -r1.14 -r1.15
*** SemaphoreGroup.cpp 2000/10/07 12:15:31 1.14
--- SemaphoreGroup.cpp 2001/04/15 01:09:28 1.15
***************
*** 66,70 ****
REQUIRE( aSemCount >= 1 );
! memset(theName,NAMEBUFFERSIZE,0);
strcpy(theName,tmpName);
struct timeval tv;
--- 66,70 ----
REQUIRE( aSemCount >= 1 );
! memset(theName,0,NAMEBUFFERSIZE);
strcpy(theName,tmpName);
struct timeval tv;
***************
*** 160,164 ****
Int createFlag(0);
! memset(theName,NAMEBUFFERSIZE,0);
//
--- 160,164 ----
Int createFlag(0);
! memset(theName,0,NAMEBUFFERSIZE);
//
***************
*** 255,259 ****
Int createFlag(0);
! memset(theName,NAMEBUFFERSIZE,0);
//
--- 255,259 ----
Int createFlag(0);
! memset(theName,0,NAMEBUFFERSIZE);
//
***************
*** 294,298 ****
if( setupResults == -1 )
{
! memset(theName,NAMEBUFFERSIZE,0);
throw SemaphoreException
(
--- 294,298 ----
if( setupResults == -1 )
{
! memset(theName,0,NAMEBUFFERSIZE);
throw SemaphoreException
(
***************
*** 322,326 ****
}
! memset(theName,NAMEBUFFERSIZE,0);
throw SemaphoreException
(
--- 322,326 ----
}
! memset(theName,0,NAMEBUFFERSIZE);
throw SemaphoreException
(
***************
*** 360,364 ****
; // do nothing
}
! memset(theName,NAMEBUFFERSIZE,0);
theNumberOfSemaphores = 0;
--- 360,364 ----
; // do nothing
}
! memset(theName,0,NAMEBUFFERSIZE);
theNumberOfSemaphores = 0;
Index: Memory.cpp
===================================================================
RCS file: /cvsroot/corelinux/corelinux/src/classlibs/corelinux/Memory.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** Memory.cpp 2000/06/06 12:04:12 1.5
--- Memory.cpp 2001/04/15 01:09:28 1.6
***************
*** 169,173 ****
CharPtr theName = new Char[NAMEBUFFERSIZE];
! memset(theName,NAMEBUFFERSIZE,0);
strcpy(theName,tmpName);
struct timeval tv;
--- 169,173 ----
CharPtr theName = new Char[NAMEBUFFERSIZE];
! memset(theName,0,NAMEBUFFERSIZE);
strcpy(theName,tmpName);
struct timeval tv;
***************
*** 344,348 ****
CharPtr theName = new Char[NAMEBUFFERSIZE];
! memset(theName,NAMEBUFFERSIZE,0);
strcpy(theName,tmpName);
strcat(theName,aName);
--- 344,348 ----
CharPtr theName = new Char[NAMEBUFFERSIZE];
! memset(theName,0,NAMEBUFFERSIZE);
strcpy(theName,tmpName);
strcat(theName,aName);
|
|
From: Hans D. <dul...@us...> - 2001-04-14 13:51:05
|
Update of /cvsroot/corelinux/corelinux
In directory usw-pr-cvs1:/tmp/cvs-serv11916
Modified Files:
ChangeLog
Added Files:
ChangeLog.old
Log Message:
ChangeLog updates
--- NEW FILE ---
Change Log
----------
Requirement number refers to the Forum message ID where the
requirement was first requested.
Feature number refers to CoreLinux Feature ID in Bug Tracking.
Defect number refers to CoreLinux Defect ID in Bug Tracking.
Task number refers to Task ID in project plan.
libcorelinux
------------
0.4.30 to 0.4.31
----------------
Feature 202427 : Added minor level of Thread signal management
Feature 232543 : doc-base support in Debian builds
Feature 206142 : Enhanced Environment statics
0.4.29 to 0.4.30
----------------
Defect 113184 : Removed sigaction (not currently used) to allow glibc2.0 systems
Defect 113985 : EventSemaphore change protection
Defect 115535 : Deadlock in example 22 code
0.4.28 to 0.4.29
----------------
Defect 116319 : gcc 2.97 requires std::string instead of using string
Defect 116320 : replace std::cout with SemaphoreException in SemaphoreGroup.cpp
Defect 116321 : replace const iterator with iterator in exmplsupport/MazeFactory.cpp.
0.4.27 to 0.4.28
----------------
Feature 101873 : With the addition of EventSemaphore, the Semaphore Requirement
is now completed. Thanks Hans!
Defect 113103 : semun is now defined if _SEM_SEMUN_UNDEFINED (bits/sem.h) is set
Defect 113736 : Thread.cpp include ordering prevented resolution of clone
0.4.26 to 0.4.27
----------------
Feature 113271 : added a libcorelinux-dbg package for debian
Feature 112855 : Conformance of libcorelinux macros
Defect 112703 : Changes for gcc 2.96.x conformance
0.4.25 to 0.4.26
----------------
Defect 110245 : Shorter library name (libcl++).
Feature 110459 : Changes for RPM packaging.
0.4.24 to 0.4.25
----------------
Defect 108017 : Fixed defect in Common.hpp inclusion order.
0.4.23 to 0.4.24
----------------
Feature 107314 : Added csamon, a utility to snapshot the SemaphoreCommon
CSA. This is only a skeleton with little functionality
other than a straight dump.
Feature 104120 : Added forEach interface for MemoryStorage
Defect 107055 : Added ability to subset and combine unused group areas
in SemaphoreCommon CSA. Recursive cleanup rejected due
to stack constraints (perceived).
0.4.22 to 0.4.33
----------------
Feature 101873 : MutexSemaphore cross process sharing using the
Semaphore Common Storage area.
0.4.21 to 0.4.22
----------------
Feature 101837 : State pattern implementation.
Feature 101838 : Strategy pattern implementation. This is currently
used by Allocator.hpp, refer to the GoF for solution
space applicability.
0.4.20 to 0.4.21
----------------
Feature 101840 : Visitor pattern implementation. Currently this is used
by Component with a nop implementation. Refer to GoF
to use in the solution space where applicable.
Feature 101836 : Subject/Observer pattern and test code implementation.
Defect 105472 : ex18 to ex20 compile now.
0.4.19 to 0.4.20
----------------
Feature 101834 : Mediator pattern and test code implementation
Feature 101835 : Memento pattern and test code implementation
Feature 105353 : Added NullPointerException type
Defect 105355 : Added missing directives in configure.in
0.4.18 to 0.4.19
----------------
Feature 101833 : Command pattern analysis, design, implementation
and test code (ex18) added.
0.4.17 to 0.4.18
----------------
Feature 101832 : Chain of Responsibility analysis, design, implementation
and test code (ex17) added.
0.4.16 to 0.4.17
----------------
Feature 104652 : Moved release builds to automake, autoconf,
and libtool standards.
0.4.15 to 0.4.16
----------------
Feature 104120 : Changes to Memory implementation include:
Added absolute positioning
Added templated write operator
Added BoundsException
Updated MemoryStorage to use BoundsException
Updated examp16 for testing simple and complex
read/write operations.
Defect 104480 : Added getParentThreadIdentifier to Thread.
0.4.14 to 0.4.15
----------------
Feature 104120 : Includes initial Memory implementation, and test
application.
Defect 103993 : ThreadContext now has immutable frame entry
point to insure default handling of thread
state and exception management. This removes
the owness to do same from the user when the
thread frame is substituted.
The implementation still calls the default
or user frame function as before.
Updated ex15 to reflect new work.
Feature 102427 : Added method to remove ThreadContext records.
Added instrumentation for active thread count.
Added instrumentation for inactive thread count.
Defect 103764 : Cleaned up Assertion.hpp to remove compiler warnings.
0.4.13 to 0.4.14
----------------
Feature 103526 : There is the potential for heterogenous replacement
for the handlers between a contexts birth and death.
Context metaphore is better suited for the context
itself, not the manager. This removes the danger
of mixing types during execution.
0.4.12 to 0.4.13
----------------
Feature 102427 : Thread and ThreadContext implementations, replete with
test source (corelinux/src/testdrivers/ex15). This is
considered a developers implementation so that we can
start getting feedback. Implementation is to design.
0.4.11 to 0.4.12
----------------
Defect 103316 : Corrected examp7 compile error in g++ 2.95.2.
Feature 103252 : Upgrade to g++ 2.95.2
0.4.10 to 0.4.11
----------------
Feature 101873 : All default values for Recursion in SemaphoreGroup(s) and
Semaphore(s) has been changed to 'false'.
Rationale: To enable recursion it was felt that it should
be a deliberate implementation choice by the developer using
the class library. Unexpected behavior of type is therefore
avoided.
Implementation of recursive behavior on Semaphores.
For MutexSemaphore this means that, if enabled, recursive will
allow the same thread to "relock" the semaphore. The semaphore
will not be unlocked until the recursion owner "releases" the
semaphore until the queue length is 0.
For GatewaySemaphores each owner of a resource is maintained
along with a recursion queue length. Refer to class referencee
or source code for details.
Added GuardSemaphore as per the original design which is a
Mutex "like" Semaphore without recursion, balking, etc.
Added example 14 for GatewaySemaphores.
Defect 102674 : MutexSemaphoreGroup potential deadlock condition
Defect 102720 : Changed using errno to (*__errno_location) for threads.
0.4.9 to 0.4.10
---------------
Feature 101873 : Synchronized, CoreLinuxGuardPool, and CoreLinuxGuardGroup
added to support class instance monitors. See
MutexSemaphoreGroup.cpp for example using the GUARD macro.
Added GatewaySemaphore and GatewaySemaphoreGroup.
Updates to MutexSemaphoreGroup to clean up memory leak
Updates to SemaphoreGroup to correct semget handling.
0.4.8 to 0.4.9
--------------
Feature 101873 : AbstractSemaphore, Semaphore, MutexSemaphore,
SemaphoreGroup, MutexSemaphoreGroup partial
implementation (see preamble in README)
Updated /corelinux/src/testdrivers/ex8
0.4.7 to 0.4.8
--------------
Feature 101185 : Prototype analysis, design, implementation and
test code. /corelinux/src/testdrivers/ex5
Feature 101186 : Singleton analysis, design, implementation and
test code. /corelinux/src/testdirvers/ex6
Defect 101801 : Common.hpp DEFINE_CLASS and DEFINE_TYPE macros
changed to DECLARE_CLASS and DECLARE_TYPE. All
source code changed to new macro.
Defect 101800 : CoreLinux++ Code Standards changed to reflect
defect 101801
Defect 101799 : CoreLinux++ Code Standards refers to DECLARE_XXXX
macros as adding prefix, they are postfixed.
Defect 101798 : Spaces and seperators description cleaned up.
Defect 101797 : Comma as a seperator reworded to recognize it
as an operator.
Defect 101796 : In 6.0 Usage, clarify the define vs. const
Feature 101382 : Added requirement 6587 - Chain of Responsibility Pattern
Feature 101383 : Added requirement 6588 - Command Pattern
Feature 101384 : Added requirement 6590 - Mediator Pattern
Feature 101385 : Added requirement 6591 - Memento Pattern
Feature 101386 : Added requirement 6592 - Observer Pattern
Feature 101387 : Added requirement 6594 - State Pattern
Feature 101388 : Added requirement 6595 - Strategy Pattern
Feature 101389 : Added requirement 6598 - Template Method Pattern
Feature 101340 : Added requirement 6599 - Visitor Pattern
0.4.6 to 0.4.7
--------------
Feature 101682 : Added CoreLinux++ Developers forum to capture
requirements for tools to support team and
user CoreLinux++ development efforts.
Feature 100595 : Flyweight analysis, design, implementation and
test code.
Feature 100596 : Proxy analysis, design, implementation and test
code.
Feature 101183 : Builder analysis, design, implementation and test
code.
Feature 101184 : Factory method analysis and design. Implemented as
Allocator and AbstractAllocator from feature 101182
AbstractFactory.
Defect 101628 : MazeFactory implementation in ex9 does not return
AllocatorPtr in removeAllocator method.
0.4.5 to 0.4.6
--------------
Feature 101182 : AbstractFactory Analysis, Design, Implementation and
test code.
Defect 101329 : Missing associative Iterator interface. Now included
and used by AbstractFactory. See ex9 for examples.
Feature 100334 : Updated index.html for links to CVS tree archive
download.
Feature 101333 : Updated index.html for links to Patch Manager
Feature 101332 : Updated FAQ for information on Patch Manager and
defect reporting.
0.4.4 to 0.4.5
--------------
Feature 100546 : Decorator Analysis, Design, Implementation, test code.
Feature 100547 : Facade Analysis, Design, Implementation test code.
Feature 100707 : String requirement (4568) document posted. Discussions
in mailing list ongoing.
0.4.3 to 0.4.4
--------------
Feature 101018 : Changed Bridge Design, Implementation, and test source
to use templates. See 101017.
Feature 101017 : Added namespace macro and changed test source to use.
Updated namespace and RTTI information in Code Standards
document.
Feature 100545 : Composite Analysis, Design, Implementation, test code.
0.4.2 to 0.4.3
--------------
Nothing, I message up with tar ball (FC)
0.4.1 to 0.4.2
--------------
Defect 100979 : List definitions malformed during expansion
Feature 100945 : Iterator Analysis, Design, Implementation, test code
Feature 100932 : Coding standard document change to detail Exception
signature and type information.
Feature 100930 : Process document changed to more granular approach splitting
up Requirement from Analysis from Design from Implementation.
0.4.0 to 0.4.1
--------------
Feature 100685 : Update process documentation (Requirements) Completed
Feature 100795 : Update process documentation (Design) Completed
Feature 100796 : Update process documentation (Implementation) Completed
Feature 100547 : Adapter Analysis, Design, Implementation , and test code
Feature 100531 : Bridge Analysis, Design, Implementation , and test code
Feature 100545 : Added requirement 3143 - Composite Pattern
Feature 100546 : Added requirement 3144 - Decorator Pattern
Feature 100594 : Added requirement 3145 - Facade Pattern
Feature 100595 : Added requirement 3146 - Flyweight Pattern
Feature 100595 : Added requirement 3147 - Proxy Pattern
0.3.0 to 0.4.0
--------------
Task 10478 and 10479: Added the process overview by which CoreLinux++ brings
requirements to implementation. Included SRS HTML template.
Task 10471 : Add modified dates to html pages
Defect 100530 : Error in FAQ
Feature 100547 : Added requirement 2872 - Adapter Pattern
Feature 100531 : Added requirement 3142 - Bridge Pattern
Feature 100532 : Changes to process.html
0.2.0 to 0.3.0
--------------
Changed release information in README to track with SourceForge defects,
features, or tasks.
Tasks
=====
10242 : README change policy (The line above this)
10335 : Provide FAQ
10356 : Add Class Reference Documentation (Taged Headers)
classref/index.html or via clfaq.html
Defects
=======
100372 : Fixed STL wrapper argument identifier order
0.1.0 to 0.2.0
---------------
Deprecated String
Added AbstractString which is the abstract base interface enforcing
reflective information so that later frameworks, etc, can plug-in
string implementations of choice.
Added StringUtf8 which derives from AbstractString and std::string
and implements AbstractString pure virtual methods.
Changed all code to conform to the update C++ Standards and Guidelines
Revision 1.2 document.
0.0.0 to 0.1.0
Initial release
CoreLinux++Doc
--------------
0.4.30 to 0.4.31
----------------
Republishd since 0.4.29
0.4.29 to 0.4.30
----------------
Feature 113873 : More docs on frameworks (not released)
0.4.28 to 0.4.29
----------------
Feature 113873 : More docs on frameworks
0.4.27 to 0.4.28 (Never released)
----------------
Feature 113871 : add Linux care and handling to cppstnd
Feature 113872 : cppstnd typos and dated information fixed
0.4.26 to 0.4.27
----------------
Feature 112020 : added the examples documentation into the ref manual
0.4.25 to 0.4.26
----------------
Feature 110459 : [packaging] new redhat packaging system
Feature 110443 : [packaging] new debian packages creation
Defect 110245 : Shared library naming convention and shorter name
Feature 110230 : Porting libcorelinux++ to doxygen
Feature 110440 : Checking corelinux existence using autoconf
Feature 107424 : Library and Loader analysis and design added.
0.4.23 to 0.4.25
----------------
Defect 109335 : Corrected bibliography file
Defect 109336 : Inconsistent examples in C++ coding standard.
Defect 109516 : Missing year attribute in corelinux.bib
Feature 109596 : Added Hans to Web page.
0.4.22 to 0.4.23
----------------
Feature 101873 : MutexSemaphores can now be shared across
multiple separate processes via the
CoreLinux++ Semaphore Common Storage Area.
Class reference updated.
0.4.21 to 0.4.22
----------------
Feature 104841 : Web site redesign complete. DVI, PDF, and
TeX documentation generated.
Feature 101837 : State pattern analysis, design and class
reference updated.
Feature 101838 : Strategy pattern, added to the AbstractFactory
design. Class reference updated.
0.4.20 to 0.4.21
----------------
Feature 101840 : Visitor pattern, added to the Composite
design and class reference updated.
Feature 101836 : Subject Observer pattern analysis, design
and class reference updates.
Feature 104841 : Web site improvements include use of php
and documentation into PDF.
0.4.19 to 0.4.20
----------------
Feature 101834 : Mediator pattern analysis, design and
class reference added.
Feature 101835 : Memento pattern analysis, design and
class reference added.
0.4.18 to 0.4.19
----------------
Feature 101833 : Command pattern analysis, design, and
class reference added.
0.4.17 to 0.4.18
----------------
Feature 101832 : Chain of Responsibility analysis, design, and
class reference added.
0.4.16 to 0.4.17
----------------
Feature 104652 : Moved release builds to automake, autoconf,
and libtool standards.
0.4.15 to 0.4.16
----------------
Feature 104120 : Updates for Memory Design and Class Report
Class Reference updates.
Feature 104482 : Moved changes to ChangeLog
0.4.14 to 0.4.15
----------------
Feature 104120 : Includes Memory Analysis and Design
Updated class reference documentation
Feature 103790 : Moved UML models to its own CVSROOT path (models)
Feature 103781 : Moved webpage documentation to its own CVSROOT
path (htdocs)
Feature 102427 : Updated class reference documentation.
0.4.13 to 0.4.14
----------------
Feature 102427 : Updated class reference documentation.
0.4.12 to 0.4.13
----------------
Feature 102427 : Inclusion of initial Thread Design model
(corelinux/doc/requirements/req1588.html,
corelinux/doc/design/1588*.*).
Updated class reference documentation.
0.4.11 to 0.4.12
----------------
Feature 102427 : Inclusion of initial Thread Requirements and Use Case
model (corelinux/doc/requirements/req1588.html,
corelinux/doc/analysis/1588*.*).
0.4.10 to 0.4.11
----------------
Feature 101873 : Updates to a number of the Semaphore and SemaphoreGroup
models.
Addtion of CoreLinuxGuardPool, CoreLinuxGuardGroup,
GatewaySemaphoreGroup, and GuardSemaphore.
0.4.9 to 0.4.10
---------------
Feature 101873 : Updates to the Semaphore model and respective html
reports/images.
Updated classref to include new class documentation and
changes to existing documentation.
Index: ChangeLog
===================================================================
RCS file: /cvsroot/corelinux/corelinux/ChangeLog,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** ChangeLog 2001/04/14 10:42:01 1.33
--- ChangeLog 2001/04/14 13:50:55 1.34
***************
*** 1,546 ****
! Change Log
! ----------
!
! Requirement number refers to the Forum message ID where the
! requirement was first requested.
!
! Feature number refers to CoreLinux Feature ID in Bug Tracking.
!
! Defect number refers to CoreLinux Defect ID in Bug Tracking.
!
[...1886 lines suppressed...]
!
! * /cvsroot/corelinux/corelinux/COPYING.DOC:
! Initial import
!
! * /cvsroot/corelinux/corelinux/COPYING.DOC: New file.
!
! * /cvsroot/corelinux/corelinux/project.tm:
! Initial import
!
! * /cvsroot/corelinux/corelinux/project.tm: New file.
!
! * /cvsroot/corelinux/corelinux/dirs.tm:
! Initial import
!
! * /cvsroot/corelinux/corelinux/dirs.tm: New file.
!
! * /cvsroot/corelinux/corelinux/README:
! Initial import
!
! * /cvsroot/corelinux/corelinux/README: New file.
|
|
From: Frank V. C. <fr...@us...> - 2001-04-14 11:47:15
|
Update of /cvsroot/corelinux/htdocs In directory usw-pr-cvs1:/tmp/cvs-serv30223 Modified Files: download.php Log Message: Updated for 0.4.31 Index: download.php =================================================================== RCS file: /cvsroot/corelinux/htdocs/download.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -r1.26 -r1.27 *** download.php 2001/04/14 11:43:31 1.26 --- download.php 2001/04/14 11:47:12 1.27 *************** *** 17,21 **** $clfll_release_deb=1; ! $prefix="http://download.sourceforge.net/corelinux"; ?> <p> --- 17,21 ---- $clfll_release_deb=1; ! $prefix="http://prdownloads.sourceforge.net/corelinux"; ?> <p> |
|
From: Frank V. C. <fr...@us...> - 2001-04-14 11:43:34
|
Update of /cvsroot/corelinux/htdocs In directory usw-pr-cvs1:/tmp/cvs-serv29883 Modified Files: download.php Log Message: Updated for 0.4.31 Index: download.php =================================================================== RCS file: /cvsroot/corelinux/htdocs/download.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -r1.25 -r1.26 *** download.php 2000/11/24 19:01:47 1.25 --- download.php 2001/04/14 11:43:31 1.26 *************** *** 4,8 **** $cldoc_release="0.4.29"; ! $cl_release="0.4.30"; $cldeb_release="0.4.30"; $cl_release_rpm=1; --- 4,8 ---- $cldoc_release="0.4.29"; ! $cl_release="0.4.31"; $cldeb_release="0.4.30"; $cl_release_rpm=1; |
|
From: Frank V. C. <fr...@us...> - 2001-04-14 11:40:21
|
Update of /cvsroot/corelinux/htdocs
In directory usw-pr-cvs1:/tmp/cvs-serv29466
Modified Files:
news.php
Log Message:
Updated for 0.4.31
Index: news.php
===================================================================
RCS file: /cvsroot/corelinux/htdocs/news.php,v
retrieving revision 1.33
retrieving revision 1.34
diff -C2 -r1.33 -r1.34
*** news.php 2000/11/24 14:09:17 1.33
--- news.php 2001/04/14 11:40:18 1.34
***************
*** 42,45 ****
--- 42,51 ----
<?
+ add_breaking_news("04/14/2001",
+ "CoreLinux++ 0.4.31 released!",
+ "Library refresh available",
+ "rel-0-4-31",
+ "Added some degree of signal handling to thread, minor changes.");
+
add_breaking_news("11/24/2000",
"libclfll++ 0.1.0 Released!",
***************
*** 245,251 ****
echo "<table compact width=100% border=0>\n";
add_small_news("11/24","rel-0-1-0","libclfll++ 0.1.0");
add_small_news("11/24","rel-0-2-6","libclfw++ 0.2.6");
- add_small_news("11/16","rel-0-4-30","libcorelinux++ 0.4.30");
echo "</table>";
}
--- 251,257 ----
echo "<table compact width=100% border=0>\n";
+ add_small_news("04/14/01","rel-0-4-31","libcorelinux++ 0.4.31");
add_small_news("11/24","rel-0-1-0","libclfll++ 0.1.0");
add_small_news("11/24","rel-0-2-6","libclfw++ 0.2.6");
echo "</table>";
}
|
|
From: Frank V. C. <fr...@us...> - 2001-04-14 10:42:04
|
Update of /cvsroot/corelinux/corelinux
In directory usw-pr-cvs1:/tmp/cvs-serv24242
Modified Files:
ChangeLog
Log Message:
Updated for 0.4.31 release
Index: ChangeLog
===================================================================
RCS file: /cvsroot/corelinux/corelinux/ChangeLog,v
retrieving revision 1.32
retrieving revision 1.33
diff -C2 -r1.32 -r1.33
*** ChangeLog 2001/04/14 10:31:56 1.32
--- ChangeLog 2001/04/14 10:42:01 1.33
***************
*** 17,20 ****
--- 17,23 ----
0.4.30 to 0.4.31
----------------
+ Feature 202427 : Added minor level of Thread signal management
+ Feature 232543 : doc-base support in Debian builds
+ Feature 206142 : Enhanced Environment statics
0.4.29 to 0.4.30
***************
*** 398,401 ****
--- 401,408 ----
--------------
+ 0.4.30 to 0.4.31
+ ----------------
+ Republishd since 0.4.29
+
0.4.29 to 0.4.30
----------------
|
|
From: Frank V. C. <fr...@us...> - 2001-04-14 10:34:20
|
Update of /cvsroot/corelinux/corelinux In directory usw-pr-cvs1:/tmp/cvs-serv23493 Modified Files: configure.in Log Message: 0.4.31 prep Index: configure.in =================================================================== RCS file: /cvsroot/corelinux/corelinux/configure.in,v retrieving revision 1.28 retrieving revision 1.29 diff -C2 -r1.28 -r1.29 *** configure.in 2000/10/24 17:07:40 1.28 --- configure.in 2001/04/14 10:34:18 1.29 *************** *** 10,14 **** CORELINUX_MAJOR_VERSION=0 CORELINUX_MINOR_VERSION=4 ! CORELINUX_MICRO_VERSION=30 dnl --- 10,14 ---- CORELINUX_MAJOR_VERSION=0 CORELINUX_MINOR_VERSION=4 ! CORELINUX_MICRO_VERSION=31 dnl |
|
From: Frank V. C. <fr...@us...> - 2001-04-14 10:32:11
|
Update of /cvsroot/corelinux/corelinux
In directory usw-pr-cvs1:/tmp/cvs-serv23167
Modified Files:
ChangeLog
Log Message:
Minor restruct of ChangeLog, should be eradicated
Index: ChangeLog
===================================================================
RCS file: /cvsroot/corelinux/corelinux/ChangeLog,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -r1.31 -r1.32
*** ChangeLog 2000/11/16 11:39:33 1.31
--- ChangeLog 2001/04/14 10:31:56 1.32
***************
*** 11,161 ****
Task number refers to Task ID in project plan.
- CoreLinux++Doc
- --------------
- 0.4.29 to 0.4.30
- ----------------
- Feature 113873 : More docs on frameworks (not released)
-
- 0.4.28 to 0.4.29
- ----------------
- Feature 113873 : More docs on frameworks
-
- 0.4.27 to 0.4.28 (Never released)
- ----------------
- Feature 113871 : add Linux care and handling to cppstnd
- Feature 113872 : cppstnd typos and dated information fixed
-
- 0.4.26 to 0.4.27
- ----------------
- Feature 112020 : added the examples documentation into the ref manual
-
- 0.4.25 to 0.4.26
- ----------------
- Feature 110459 : [packaging] new redhat packaging system
- Feature 110443 : [packaging] new debian packages creation
- Defect 110245 : Shared library naming convention and shorter name
- Feature 110230 : Porting libcorelinux++ to doxygen
- Feature 110440 : Checking corelinux existence using autoconf
- Feature 107424 : Library and Loader analysis and design added.
-
- 0.4.23 to 0.4.25
- ----------------
- Defect 109335 : Corrected bibliography file
- Defect 109336 : Inconsistent examples in C++ coding standard.
- Defect 109516 : Missing year attribute in corelinux.bib
- Feature 109596 : Added Hans to Web page.
-
- 0.4.22 to 0.4.23
- ----------------
- Feature 101873 : MutexSemaphores can now be shared across
- multiple separate processes via the
- CoreLinux++ Semaphore Common Storage Area.
- Class reference updated.
-
- 0.4.21 to 0.4.22
- ----------------
- Feature 104841 : Web site redesign complete. DVI, PDF, and
- TeX documentation generated.
-
- Feature 101837 : State pattern analysis, design and class
- reference updated.
-
- Feature 101838 : Strategy pattern, added to the AbstractFactory
- design. Class reference updated.
-
- 0.4.20 to 0.4.21
- ----------------
- Feature 101840 : Visitor pattern, added to the Composite
- design and class reference updated.
-
- Feature 101836 : Subject Observer pattern analysis, design
- and class reference updates.
-
- Feature 104841 : Web site improvements include use of php
- and documentation into PDF.
-
- 0.4.19 to 0.4.20
- ----------------
- Feature 101834 : Mediator pattern analysis, design and
- class reference added.
-
- Feature 101835 : Memento pattern analysis, design and
- class reference added.
-
- 0.4.18 to 0.4.19
- ----------------
- Feature 101833 : Command pattern analysis, design, and
- class reference added.
-
- 0.4.17 to 0.4.18
- ----------------
- Feature 101832 : Chain of Responsibility analysis, design, and
- class reference added.
-
- 0.4.16 to 0.4.17
- ----------------
- Feature 104652 : Moved release builds to automake, autoconf,
- and libtool standards.
-
- 0.4.15 to 0.4.16
- ----------------
-
- Feature 104120 : Updates for Memory Design and Class Report
-
- Class Reference updates.
-
- Feature 104482 : Moved changes to ChangeLog
-
- 0.4.14 to 0.4.15
- ----------------
-
- Feature 104120 : Includes Memory Analysis and Design
-
- Updated class reference documentation
-
- Feature 103790 : Moved UML models to its own CVSROOT path (models)
-
- Feature 103781 : Moved webpage documentation to its own CVSROOT
- path (htdocs)
-
- Feature 102427 : Updated class reference documentation.
-
- 0.4.13 to 0.4.14
- ----------------
- Feature 102427 : Updated class reference documentation.
-
- 0.4.12 to 0.4.13
- ----------------
- Feature 102427 : Inclusion of initial Thread Design model
- (corelinux/doc/requirements/req1588.html,
- corelinux/doc/design/1588*.*).
-
- Updated class reference documentation.
-
- 0.4.11 to 0.4.12
- ----------------
- Feature 102427 : Inclusion of initial Thread Requirements and Use Case
- model (corelinux/doc/requirements/req1588.html,
- corelinux/doc/analysis/1588*.*).
-
-
- 0.4.10 to 0.4.11
- ----------------
- Feature 101873 : Updates to a number of the Semaphore and SemaphoreGroup
- models.
- Addtion of CoreLinuxGuardPool, CoreLinuxGuardGroup,
- GatewaySemaphoreGroup, and GuardSemaphore.
-
- 0.4.9 to 0.4.10
- ---------------
- Feature 101873 : Updates to the Semaphore model and respective html
- reports/images.
- Updated classref to include new class documentation and
- changes to existing documentation.
-
libcorelinux
------------
0.4.29 to 0.4.30
----------------
--- 11,21 ----
Task number refers to Task ID in project plan.
libcorelinux
------------
+ 0.4.30 to 0.4.31
+ ----------------
+
0.4.29 to 0.4.30
----------------
***************
*** 534,536 ****
Initial release
!
\ No newline at end of file
--- 394,539 ----
Initial release
!
! CoreLinux++Doc
! --------------
!
! 0.4.29 to 0.4.30
! ----------------
! Feature 113873 : More docs on frameworks (not released)
!
! 0.4.28 to 0.4.29
! ----------------
! Feature 113873 : More docs on frameworks
!
! 0.4.27 to 0.4.28 (Never released)
! ----------------
! Feature 113871 : add Linux care and handling to cppstnd
! Feature 113872 : cppstnd typos and dated information fixed
!
! 0.4.26 to 0.4.27
! ----------------
! Feature 112020 : added the examples documentation into the ref manual
!
! 0.4.25 to 0.4.26
! ----------------
! Feature 110459 : [packaging] new redhat packaging system
! Feature 110443 : [packaging] new debian packages creation
! Defect 110245 : Shared library naming convention and shorter name
! Feature 110230 : Porting libcorelinux++ to doxygen
! Feature 110440 : Checking corelinux existence using autoconf
! Feature 107424 : Library and Loader analysis and design added.
!
! 0.4.23 to 0.4.25
! ----------------
! Defect 109335 : Corrected bibliography file
! Defect 109336 : Inconsistent examples in C++ coding standard.
! Defect 109516 : Missing year attribute in corelinux.bib
! Feature 109596 : Added Hans to Web page.
!
! 0.4.22 to 0.4.23
! ----------------
! Feature 101873 : MutexSemaphores can now be shared across
! multiple separate processes via the
! CoreLinux++ Semaphore Common Storage Area.
! Class reference updated.
!
! 0.4.21 to 0.4.22
! ----------------
! Feature 104841 : Web site redesign complete. DVI, PDF, and
! TeX documentation generated.
!
! Feature 101837 : State pattern analysis, design and class
! reference updated.
!
! Feature 101838 : Strategy pattern, added to the AbstractFactory
! design. Class reference updated.
!
! 0.4.20 to 0.4.21
! ----------------
! Feature 101840 : Visitor pattern, added to the Composite
! design and class reference updated.
!
! Feature 101836 : Subject Observer pattern analysis, design
! and class reference updates.
!
! Feature 104841 : Web site improvements include use of php
! and documentation into PDF.
!
! 0.4.19 to 0.4.20
! ----------------
! Feature 101834 : Mediator pattern analysis, design and
! class reference added.
!
! Feature 101835 : Memento pattern analysis, design and
! class reference added.
!
! 0.4.18 to 0.4.19
! ----------------
! Feature 101833 : Command pattern analysis, design, and
! class reference added.
!
! 0.4.17 to 0.4.18
! ----------------
! Feature 101832 : Chain of Responsibility analysis, design, and
! class reference added.
!
! 0.4.16 to 0.4.17
! ----------------
! Feature 104652 : Moved release builds to automake, autoconf,
! and libtool standards.
!
! 0.4.15 to 0.4.16
! ----------------
!
! Feature 104120 : Updates for Memory Design and Class Report
!
! Class Reference updates.
!
! Feature 104482 : Moved changes to ChangeLog
!
! 0.4.14 to 0.4.15
! ----------------
!
! Feature 104120 : Includes Memory Analysis and Design
!
! Updated class reference documentation
!
! Feature 103790 : Moved UML models to its own CVSROOT path (models)
!
! Feature 103781 : Moved webpage documentation to its own CVSROOT
! path (htdocs)
!
! Feature 102427 : Updated class reference documentation.
!
! 0.4.13 to 0.4.14
! ----------------
! Feature 102427 : Updated class reference documentation.
!
! 0.4.12 to 0.4.13
! ----------------
! Feature 102427 : Inclusion of initial Thread Design model
! (corelinux/doc/requirements/req1588.html,
! corelinux/doc/design/1588*.*).
!
! Updated class reference documentation.
!
! 0.4.11 to 0.4.12
! ----------------
! Feature 102427 : Inclusion of initial Thread Requirements and Use Case
! model (corelinux/doc/requirements/req1588.html,
! corelinux/doc/analysis/1588*.*).
!
!
! 0.4.10 to 0.4.11
! ----------------
! Feature 101873 : Updates to a number of the Semaphore and SemaphoreGroup
! models.
! Addtion of CoreLinuxGuardPool, CoreLinuxGuardGroup,
! GatewaySemaphoreGroup, and GuardSemaphore.
!
! 0.4.9 to 0.4.10
! ---------------
! Feature 101873 : Updates to the Semaphore model and respective html
! reports/images.
! Updated classref to include new class documentation and
! changes to existing documentation.
|
|
From: Frank V. C. <fr...@us...> - 2001-04-12 11:58:15
|
Update of /cvsroot/corelinux/clfw/src/libs/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv13585/src/libs/Persist
Modified Files:
Makefile.am SchemaCatalog.cpp
Added Files:
Store.cpp
Log Message:
Adding last piece to Schema and Persist Puzzle, the real deal interfaces to storage
***** Error reading new file: [Errno 2] No such file or directory: 'Store.cpp'
Index: Makefile.am
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/Persist/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Makefile.am 2001/04/08 10:50:43 1.3
--- Makefile.am 2001/04/12 11:56:53 1.4
***************
*** 17,21 ****
SchemaSponsor.cpp \
StoreCatalog.cpp \
! SchemaCatalog.cpp
--- 17,22 ----
SchemaSponsor.cpp \
StoreCatalog.cpp \
! SchemaCatalog.cpp \
! Store.cpp
Index: SchemaCatalog.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/Persist/SchemaCatalog.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** SchemaCatalog.cpp 2001/04/11 01:39:25 1.4
--- SchemaCatalog.cpp 2001/04/12 11:56:53 1.5
***************
*** 148,151 ****
--- 148,153 ----
void SchemaCatalog::createEntry( CollectionPtr aCollection )
{
+ REQUIRE( aCollection != NULLPTR );
+
CollectionPtr aSchemaCol( NULLPTR );
FrameworkString aUid;
***************
*** 170,205 ****
//
! // Get the collection instance
//
! aSchemaCol = this->resolveCollectionAssignment(aCollection);
! //
! // Get unique identifier for schema
! //
! aUid = this->resolveUuidAssignment(aCollection);
! //
! // Create and assign name and collection
! //
! SchemaPtr aSchema = this->createSchema( aUid, *aName, aSchemaCol );
! //
! // Serialize the first part to the location
! //
! this->saveSchema( aSchema );
! //
! // Make the catalog entry and persist
! //
! //
! // Get rid of the Schema
! //
! Schema::destroy( aSchema );
}
--- 172,205 ----
//
! // Find and resuse if possible
//
! Attribute catSearch;
! catSearch.setKey( aName );
! if( theSchemas.containsElement(&catSearch) == false )
! {
! // Get the collection instance
! aSchemaCol = this->resolveCollectionAssignment(aCollection);
! // Get unique identifier for schema
! aUid = this->resolveUuidAssignment(aCollection);
! // Create and assign name and collection
! SchemaPtr aSchema = this->createSchema( aUid, *aName, aSchemaCol );
! // Make the catalog entry and persist
! // Serialize the first part to the location
! this->saveSchema( aSchema );
! }
! else
! {
! ; // do nothing, already exists
! }
}
***************
*** 208,213 ****
//
! void SchemaCatalog::deleteEntry( CollectionPtr )
{
}
--- 208,214 ----
//
! void SchemaCatalog::deleteEntry( CollectionPtr aCollection )
{
+ REQUIRE( aCollection != NULLPTR );
}
***************
*** 218,227 ****
//
! FrameworkEntityPtr SchemaCatalog::getEntry( CollectionPtr ) const
{
SchemaPtr aSchm( NULLPTR );
return aSchm;
}
void SchemaCatalog::saveSchema( SchemaPtr )
{
--- 219,267 ----
//
! FrameworkEntityPtr SchemaCatalog::getEntry
! (
! CollectionPtr aCollection
! ) const
{
+ REQUIRE( aCollection != NULLPTR );
+
SchemaPtr aSchm( NULLPTR );
+
+ //
+ // Check for instance based on name or uuid
+ //
+
+ FrameworkStringPtr aName
+ (
+ this->resolveValueAssignment(aCollection,&nameKey)
+ );
+
+ if( aName != NULLPTR )
+ {
+ Attribute srchAttr;
+ srchAttr.setKey(aName);
+
+ if( theSchemas.containsElement( &srchAttr ) == true )
+ {
+
+ }
+ else
+ {
+ ; // return null, not found
+ }
+ }
+ else
+ {
+
+ }
+
+
return aSchm;
}
+ //
+ // Save the schema
+ //
+
void SchemaCatalog::saveSchema( SchemaPtr )
{
***************
*** 229,232 ****
--- 269,276 ----
}
+ //
+ // Close the schema and remove from memory
+ //
+
void SchemaCatalog::closeSchema( SchemaPtr )
{
***************
*** 294,297 ****
--- 338,345 ----
}
+ //
+ // Resolve or default the schema collection type
+ //
+
CollectionPtr SchemaCatalog::resolveCollectionAssignment
(
***************
*** 345,349 ****
CollectionPtr aCollection,
FrameworkStringPtr aValue
! )
{
FrameworkStringPtr aResult(NULLPTR);
--- 393,397 ----
CollectionPtr aCollection,
FrameworkStringPtr aValue
! ) const
{
FrameworkStringPtr aResult(NULLPTR);
|
|
From: Frank V. C. <fr...@us...> - 2001-04-12 11:58:15
|
Update of /cvsroot/corelinux/clfw/src/testdrivers/exf2
In directory usw-pr-cvs1:/tmp/cvs-serv13585/src/testdrivers/exf2
Modified Files:
examp2.cpp
Log Message:
Adding last piece to Schema and Persist Puzzle, the real deal interfaces to storage
Index: examp2.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/testdrivers/exf2/examp2.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** examp2.cpp 2001/04/11 01:39:25 1.4
--- examp2.cpp 2001/04/12 11:56:53 1.5
***************
*** 92,96 ****
int main( void );
! SchemaPtr createSchemaAndPopulate( void ) throw ();
void initializeConcept( ConceptPtr, CharCptr, CharCptr ) throw ();
void assignCollection( ConceptPtr, CharCptr ) throw ();
--- 92,96 ----
int main( void );
! SchemaPtr createSchemaAndPopulate( StoreCatalogPtr ) throw ();
void initializeConcept( ConceptPtr, CharCptr, CharCptr ) throw ();
void assignCollection( ConceptPtr, CharCptr ) throw ();
***************
*** 137,141 ****
// load a schema -or-
! SchemaPtr aSchema( createSchemaAndPopulate() );
Schema::destroy(aSchema);
--- 137,141 ----
// load a schema -or-
! SchemaPtr aSchema( createSchemaAndPopulate(aCatalog) );
Schema::destroy(aSchema);
***************
*** 168,175 ****
//
! SchemaPtr createSchemaAndPopulate( void ) throw ()
{
! Schema *aSchema = Schema::create();
! initializeConcept( aSchema, "SchemaTest","SetCollection");
return aSchema;
}
--- 168,180 ----
//
! SchemaPtr createSchemaAndPopulate( StoreCatalog *aCatalog ) throw ()
{
! SetCollection args;
!
! args.put( buildStringAttribute("Name","SchemaTest") );
! args.put( buildStringAttribute("Collection","SetCollection") );
! aCatalog->createEntry(&args);
!
! SchemaPtr aSchema(NULLPTR);
return aSchema;
}
|
|
From: Frank V. C. <fr...@us...> - 2001-04-12 11:58:15
|
Update of /cvsroot/corelinux/clfw/clfw/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv13585/clfw/Persist
Modified Files:
Makefile.am Persist.hpp SchemaCatalog.hpp
Added Files:
Store.hpp
Log Message:
Adding last piece to Schema and Persist Puzzle, the real deal interfaces to storage
***** Error reading new file: [Errno 2] No such file or directory: 'Store.hpp'
Index: Makefile.am
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Makefile.am 2001/04/08 10:50:43 1.3
--- Makefile.am 2001/04/12 11:56:53 1.4
***************
*** 17,21 ****
SchemaSponsor.hpp \
StoreCatalog.hpp \
! SchemaCatalog.hpp
--- 17,22 ----
SchemaSponsor.hpp \
StoreCatalog.hpp \
! SchemaCatalog.hpp \
! Store.hpp
Index: Persist.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/Persist.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Persist.hpp 2001/04/08 10:50:43 1.3
--- Persist.hpp 2001/04/12 11:56:53 1.4
***************
*** 36,39 ****
--- 36,40 ----
#define INCL_StoreCatalog <clfw/Persist/StoreCatalog.hpp>
#define INCL_SchemaCatalog <clfw/Persist/SchemaCatalog.hpp>
+ #define INCL_Store <clfw/Persist/Store.hpp>
/*
Index: SchemaCatalog.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/SchemaCatalog.hpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** SchemaCatalog.hpp 2001/04/11 01:39:25 1.4
--- SchemaCatalog.hpp 2001/04/12 11:56:53 1.5
***************
*** 30,33 ****
--- 30,37 ----
#endif
+ #if !defined(__SETCOLLECTION_HPP)
+ #include <clfw/SetCollection.hpp>
+ #endif
+
#if !defined(__STORECATALOG_HPP)
#include <clfw/Persist/StoreCatalog.hpp>
***************
*** 90,94 ****
void saveSchema( SchemaPtr );
! /// Close the instance
void closeSchema( SchemaPtr );
--- 94,98 ----
void saveSchema( SchemaPtr );
! /// Close the instance
void closeSchema( SchemaPtr );
***************
*** 142,146 ****
-
protected:
--- 146,149 ----
***************
*** 169,172 ****
--- 172,184 ----
) throw ();
+ /**
+ Creates a collection for a instantiating schema. This
+ allows the user to override the default SetCollection
+ with their own choice using the "Collection" attribute
+ in createEntry
+ @param Collection from user initiated call
+ @returns Collection instance for new schema
+ */
+
CollectionPtr resolveCollectionAssignment
(
***************
*** 174,177 ****
--- 186,197 ----
);
+ /**
+ Creates a UniversalIdentifier for the instantiating
+ schema or allows the user to override with "GUID"
+ attribute in createEntry
+ @param Collection from user initiated call
+ @returns FrameworkString with stringified uuid
+ */
+
FrameworkString resolveUuidAssignment
(
***************
*** 179,187 ****
);
FrameworkStringPtr resolveValueAssignment
(
CollectionPtr,
FrameworkStringPtr
! );
private:
--- 199,217 ----
);
+ /**
+ General function to resolve attribute from
+ collection
+ @param Collection from user
+ @param FrameworkString for key to search on
+ @returns FrameworkString value that goes
+ with key
+ */
+
FrameworkStringPtr resolveValueAssignment
(
CollectionPtr,
FrameworkStringPtr
! ) const;
!
private:
***************
*** 195,198 ****
--- 225,231 ----
FrameworkString theStoresRoot;
+ /// The in memory catalog of schemas
+
+ SetCollection theSchemas;
};
}
|
|
From: Frank V. C. <fr...@us...> - 2001-04-11 01:39:28
|
Update of /cvsroot/corelinux/clfw/clfw
In directory usw-pr-cvs1:/tmp/cvs-serv11136/clfw
Modified Files:
Ontology.hpp
Log Message:
Getting ready for gdbm in the schema catalog implementation
Index: Ontology.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Ontology.hpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** Ontology.hpp 2000/11/15 23:07:20 1.6
--- Ontology.hpp 2001/04/11 01:39:25 1.7
***************
*** 89,92 ****
--- 89,106 ----
CharCptr getDomainName( void ) const;
+ /**
+ Get the metaclass as defined by the class and ontology
+ names
+ @param Char pointer to class name (i.e. "Integer")
+ @param Char pointer to ontology name (i.e. "MySpace")
+ defaults to "corelinux" in implementation
+ @returns MetaClass pointer to resolved class
+ @exception NullPointerException and/or
+ DescriptorNotFoundException if not resolvable
+ */
+
+ static MetaClassPtr getClassFor( CharCptr, CharCptr ontology=NULLPTR )
+ throw ( NullPointerException, DescriptorNotFound );
+
//
// Mutators
|
|
From: Frank V. C. <fr...@us...> - 2001-04-11 01:39:28
|
Update of /cvsroot/corelinux/clfw/src/testdrivers/exf2
In directory usw-pr-cvs1:/tmp/cvs-serv11136/src/testdrivers/exf2
Modified Files:
examp2.cpp
Log Message:
Getting ready for gdbm in the schema catalog implementation
Index: examp2.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/testdrivers/exf2/examp2.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** examp2.cpp 2001/04/10 21:17:50 1.3
--- examp2.cpp 2001/04/11 01:39:25 1.4
***************
*** 100,104 ****
//
! FrameworkEntityPtr getInstanceOf( CharCptr );
AttributePtr buildStringAttribute( CharCptr, CharCptr );
AttributePtr buildStringAttribute( CharCptr, UniversalIdentifierCref );
--- 100,104 ----
//
! FrameworkEntityPtr getInstanceOf( CharCptr, CharCptr domain=NULLPTR );
AttributePtr buildStringAttribute( CharCptr, CharCptr );
AttributePtr buildStringAttribute( CharCptr, UniversalIdentifierCref );
***************
*** 230,266 ****
//
! FrameworkEntityPtr getInstanceOf( CharCptr aClassTarget )
{
FrameworkEntityPtr aPtr( NULLPTR );
! Ontology *aOntology( MetaSpace::getOntology("corelinux") );
!
! if( aOntology != NULLPTR )
{
! Iterator<MetaClassCptr> *aIterator( aOntology->createIterator() );
!
! while( aIterator->isValid() == true && aPtr == NULLPTR )
! {
! MetaClassPtr aClass = (MetaClassPtr) aIterator->getElement();
! if( std::strcmp(aClassTarget,aClass->getInstanceTypeName()) == 0 )
! {
! aClass->dispatch("Construct" , (void **)NULLPTR,(void *)&aPtr);
! if( aPtr == NULLPTR )
! {
! throw NullPointerException( LOCATION );
! }
! else
! {
! ; // do nothing
! }
! }
! else
! {
! ; // do nothing
! }
! aIterator->setNext();
! }
!
! aOntology->destroyIterator( aIterator );
}
--- 230,246 ----
//
! FrameworkEntityPtr getInstanceOf( CharCptr aClassTarget, CharCptr domain )
{
FrameworkEntityPtr aPtr( NULLPTR );
! MetaClassPtr aClass( Ontology::getClassFor( aClassTarget, domain ) );
! aClass->dispatch( "Construct" , (void **)NULLPTR,(void *)&aPtr );
! if( aPtr == NULLPTR )
{
! throw NullPointerException( LOCATION );
! }
! else
! {
! ; // do nothing
}
|
|
From: Frank V. C. <fr...@us...> - 2001-04-11 01:39:28
|
Update of /cvsroot/corelinux/clfw/src/libs/clfw
In directory usw-pr-cvs1:/tmp/cvs-serv11136/src/libs/clfw
Modified Files:
Ontology.cpp
Log Message:
Getting ready for gdbm in the schema catalog implementation
Index: Ontology.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/Ontology.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** Ontology.cpp 2000/11/15 23:07:21 1.6
--- Ontology.cpp 2001/04/11 01:39:25 1.7
***************
*** 24,38 ****
#if !defined(__ONTOLOGY_HPP)
! #include <Ontology.hpp>
#endif
#if !defined(__METASPACE_HPP)
! #include <MetaSpace.hpp>
#endif
#if !defined(__METACLASS_HPP)
! #include <MetaClass.hpp>
#endif
#if !defined(__CORELINUXASSOCIATIVEITERATOR_HPP)
#include <corelinux/CoreLinuxAssociativeIterator.hpp>
--- 24,46 ----
#if !defined(__ONTOLOGY_HPP)
! #include <clfw/Ontology.hpp>
#endif
#if !defined(__METASPACE_HPP)
! #include <clfw/MetaSpace.hpp>
#endif
#if !defined(__METACLASS_HPP)
! #include <clfw/MetaClass.hpp>
#endif
+ #if !defined(__FRAMEWORKSTRING_HPP)
+ #include <clfw/FrameworkString.hpp>
+ #endif
+
+ #if !defined(__DESCRIPTORNOTFOUND_HPP)
+ #include <clfw/DescriptorNotFound.hpp>
+ #endif
+
#if !defined(__CORELINUXASSOCIATIVEITERATOR_HPP)
#include <corelinux/CoreLinuxAssociativeIterator.hpp>
***************
*** 139,142 ****
--- 147,202 ----
}
+ MetaClassPtr Ontology::getClassFor
+ (
+ CharCptr aClassName,
+ CharCptr anOntology
+ )
+ throw ( NullPointerException, DescriptorNotFound )
+ {
+ MetaClassPtr aPtr( NULLPTR );
+
+ if( aClassName == NULLPTR )
+ {
+ throw NullPointerException( LOCATION );
+ }
+ else
+ {
+ OntologyPtr aOPtr =
+ MetaSpace::getOntology
+ (
+ ( anOntology == NULLPTR ? "corelinux" : anOntology )
+ );
+ if( aOPtr != NULLPTR )
+ {
+ Iterator<MetaClassCptr> *aIterator( aOPtr->createIterator() );
+
+ while( aIterator->isValid() == true && aPtr == NULLPTR )
+ {
+ MetaClassPtr aClass = (MetaClassPtr) aIterator->getElement();
+ if( std::strcmp(aClassName,aClass->getInstanceTypeName()) == 0 )
+ {
+ aPtr = aClass;
+ }
+ else
+ {
+ ; // do nothing
+ }
+ aIterator->setNext();
+ }
+ aOPtr->destroyIterator( aIterator );
+
+ if( aPtr == NULLPTR )
+ {
+ throw DescriptorNotFound(aClassName, LOCATION );
+ }
+ }
+ else
+ {
+ throw DescriptorNotFound("Ontology not found", LOCATION );
+ }
+ }
+
+ return aPtr;
+ }
//
// Add a new type to the ontology
|
|
From: Frank V. C. <fr...@us...> - 2001-04-11 01:39:28
|
Update of /cvsroot/corelinux/clfw/src/libs/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv11136/src/libs/Persist
Modified Files:
SchemaCatalog.cpp
Log Message:
Getting ready for gdbm in the schema catalog implementation
Index: SchemaCatalog.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/libs/Persist/SchemaCatalog.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** SchemaCatalog.cpp 2001/04/10 21:17:50 1.3
--- SchemaCatalog.cpp 2001/04/11 01:39:25 1.4
***************
*** 25,28 ****
--- 25,32 ----
#endif
+ #if !defined(__ONTOLOGY_HPP)
+ #include <clfw/Ontology.hpp>
+ #endif
+
#if !defined(__SCHEMACATALOG_HPP)
#include INCL_SchemaCatalog
***************
*** 33,36 ****
--- 37,44 ----
#endif
+ #if !defined(__ATTRIBUTE_HPP)
+ #include <clfw/Attribute.hpp>
+ #endif
+
#if !defined(__SETCOLLECTION_HPP)
#include <clfw/SetCollection.hpp>
***************
*** 55,70 ****
// Property constants
! const FrameworkString nameKey("Name");
! const FrameworkString locationKey("Location");
! const FrameworkString collectionType("Collection");
! const FrameworkString guidKey("GUID");
// Environmental constants
! const FrameworkString homeEnviron("HOME");
! const FrameworkString catEnviron("CLFW++HOME");
! const FrameworkString catLocation("/.clfw++");
! const FrameworkString schemaLocation("/schemas");
! const FrameworkString catName("schemcat");
//
--- 63,79 ----
// Property constants
! static FrameworkString nameKey("Name");
! static FrameworkString locationKey("Location");
! static FrameworkString collectionType("Collection");
! static FrameworkString guidKey("GUID");
// Environmental constants
! const FrameworkString homeEnviron("HOME");
! const FrameworkString catEnviron("CLFW++HOME");
! const FrameworkString catLocation("/.clfw++");
! const FrameworkString schemaLocation("/schemas");
! const FrameworkString catName("schemcat");
! const FrameworkString defCollection("SetCollection");
//
***************
*** 137,143 ****
//
! void SchemaCatalog::createEntry( CollectionPtr )
{
}
--- 146,205 ----
//
! void SchemaCatalog::createEntry( CollectionPtr aCollection )
{
+ CollectionPtr aSchemaCol( NULLPTR );
+ FrameworkString aUid;
+
+ //
+ // Deal with the name first
+ //
+
+ FrameworkStringPtr aName
+ (
+ this->resolveValueAssignment(aCollection,&nameKey)
+ );
+
+ if( aName == NULLPTR )
+ {
+ throw NullPointerException( LOCATION );
+ }
+ else
+ {
+ ; // do nothing
+ }
+
+ //
+ // Get the collection instance
+ //
+
+ aSchemaCol = this->resolveCollectionAssignment(aCollection);
+
+ //
+ // Get unique identifier for schema
+ //
+
+ aUid = this->resolveUuidAssignment(aCollection);
+ //
+ // Create and assign name and collection
+ //
+
+ SchemaPtr aSchema = this->createSchema( aUid, *aName, aSchemaCol );
+
+ //
+ // Serialize the first part to the location
+ //
+
+ this->saveSchema( aSchema );
+
+ //
+ // Make the catalog entry and persist
+ //
+
+ //
+ // Get rid of the Schema
+ //
+
+ Schema::destroy( aSchema );
}
***************
*** 182,199 ****
SchemaPtr SchemaCatalog::createSchema
(
! FrameworkStringCref aKey,
! FrameworkStringCref aName,
! FrameworkStringCref aLocation
) throw ()
{
! SchemaPtr aSchm( NULLPTR );
return aSchm;
}
//
// Setup environmental information for this caller
//
! void SchemaCatalog::resolveLocations( void )
{
//
--- 244,375 ----
SchemaPtr SchemaCatalog::createSchema
(
! FrameworkStringCref aKey,
! FrameworkStringCref aName,
! CollectionPtr aCollection
) throw ()
{
! SchemaPtr aSchm( Schema::create() );
! AttributePtr anAttribute( Attribute::create() );
! UniversalIdentifier aSchmId( aKey.getValue() );
!
! anAttribute->setKey( new FrameworkString(nameKey) );
! anAttribute->setValue( new FrameworkString(aName) );
!
!
! aSchm->setOid( aSchmId );
! aSchm->setProperties( aCollection );
! aSchm->addAttribute( anAttribute );
!
return aSchm;
}
//
+ // Pull and resolve uuid assignment
+ //
+
+ FrameworkString SchemaCatalog::resolveUuidAssignment
+ (
+ CollectionPtr aCollection
+ )
+ {
+ FrameworkString aUid;
+ FrameworkStringPtr aResult
+ (
+ this->resolveValueAssignment(aCollection,&guidKey)
+ );
+
+ if( aResult != NULLPTR )
+ {
+ aUid = *aResult;
+ }
+ else
+ {
+ UniversalIdentifier aUUID;
+ UniversalIdentifier::setNewUid( aUUID );
+ Char buffer[40];
+ aUUID.getAsString( buffer );
+ aUid = buffer;
+ }
+ return aUid;
+ }
+
+ CollectionPtr SchemaCatalog::resolveCollectionAssignment
+ (
+ CollectionPtr aCollection
+ )
+ {
+ MetaClassPtr aClass( NULLPTR );
+ FrameworkEntityPtr aPtr( NULLPTR );
+
+ FrameworkStringPtr aResult
+ (
+ this->resolveValueAssignment(aCollection,&collectionType)
+ );
+
+ //
+ // Use the supplied or our default set collection
+ //
+
+ if( aResult != NULLPTR )
+ {
+ aClass = Ontology::getClassFor( aResult->getValue() );
+ }
+ else
+ {
+ aClass = Ontology::getClassFor( defCollection.getValue() );
+ }
+
+ //
+ // Instantiate it
+ //
+
+ aClass->dispatch( "Construct" , (void **)NULLPTR,(void *)&aPtr );
+ if( aPtr == NULLPTR )
+ {
+ throw NullPointerException( LOCATION );
+ }
+ else
+ {
+ ; // do nothing
+ }
+
+ return Collection::castDown( aPtr );
+ }
+
+ //
+ // Little workhorse
+ //
+
+ FrameworkStringPtr SchemaCatalog::resolveValueAssignment
+ (
+ CollectionPtr aCollection,
+ FrameworkStringPtr aValue
+ )
+ {
+ FrameworkStringPtr aResult(NULLPTR);
+ Attribute aQueryAttr;
+ ElementIndex anIndex(-1);
+
+ aQueryAttr.setKey( aValue );
+ AttributePtr aAttr( NULLPTR );
+
+ if( ( anIndex = aCollection->indexOf( &aQueryAttr ) ) >= 0 )
+ {
+ aAttr = Attribute::castDown(aCollection->getElementAt( anIndex ));
+ aResult = FrameworkString::castDown( aAttr->getValue() );
+ }
+ else
+ {
+ ; // do nothing
+ }
+
+ return aResult;
+ }
+
+ //
// Setup environmental information for this caller
//
! void SchemaCatalog::resolveLocations( void )
{
//
|
|
From: Frank V. C. <fr...@us...> - 2001-04-11 01:39:28
|
Update of /cvsroot/corelinux/clfw/clfw/Persist
In directory usw-pr-cvs1:/tmp/cvs-serv11136/clfw/Persist
Modified Files:
SchemaCatalog.hpp
Log Message:
Getting ready for gdbm in the schema catalog implementation
Index: SchemaCatalog.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/Persist/SchemaCatalog.hpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** SchemaCatalog.hpp 2001/04/10 21:17:50 1.3
--- SchemaCatalog.hpp 2001/04/11 01:39:25 1.4
***************
*** 121,124 ****
--- 121,126 ----
"Name" - Defines the name of the schema
"Location" - Can designate where the actual schema resides
+ "Collection" - Defines the type collection class name
+ (e.g. SetCollection) to use for the new schema
"GUID" - (optional) provides the stringified
UniversalUniqueIdentifier to use instead of generating one
***************
*** 156,160 ****
@param FrameworkString reference to Key (UUID)
@param FrameworkString reference to Name
! @param FrameworkString reference to Location for schema
@returns Schema pointer ready to populate
*/
--- 158,162 ----
@param FrameworkString reference to Key (UUID)
@param FrameworkString reference to Name
! @param CollectionPtr instance for schema use
@returns Schema pointer ready to populate
*/
***************
*** 164,169 ****
FrameworkStringCref,
FrameworkStringCref,
! FrameworkStringCref
) throw ();
private:
--- 166,187 ----
FrameworkStringCref,
FrameworkStringCref,
! CollectionPtr
) throw ();
+
+ CollectionPtr resolveCollectionAssignment
+ (
+ CollectionPtr
+ );
+
+ FrameworkString resolveUuidAssignment
+ (
+ CollectionPtr
+ );
+
+ FrameworkStringPtr resolveValueAssignment
+ (
+ CollectionPtr,
+ FrameworkStringPtr
+ );
private:
|
|
From: Frank V. C. <fr...@us...> - 2001-04-10 21:17:54
|
Update of /cvsroot/corelinux/clfw/clfw
In directory usw-pr-cvs1:/tmp/cvs-serv31067/clfw
Modified Files:
FrameworkString.hpp
Log Message:
Added profile and schema location support
Index: FrameworkString.hpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/clfw/FrameworkString.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** FrameworkString.hpp 2001/03/31 22:21:45 1.1
--- FrameworkString.hpp 2001/04/10 21:17:50 1.2
***************
*** 112,115 ****
--- 112,132 ----
FrameworkStringRef operator=( CharCptr );
+ /**
+ Concat operators for class
+ @param FrameworkString const reference
+ @return FrameworkString reference to (*this)
+ */
+
+ FrameworkStringRef operator+=( FrameworkStringCref );
+
+ /**
+ Concat operator for char pointer
+ @param Char const pointer
+ @return FrameworkString reference to (*this)
+ */
+
+ FrameworkStringRef operator+=( CharCptr );
+
+
//@}
|
|
From: Frank V. C. <fr...@us...> - 2001-04-10 21:17:53
|
Update of /cvsroot/corelinux/clfw/src/testdrivers/exf2
In directory usw-pr-cvs1:/tmp/cvs-serv31067/src/testdrivers/exf2
Modified Files:
examp2.cpp
Log Message:
Added profile and schema location support
Index: examp2.cpp
===================================================================
RCS file: /cvsroot/corelinux/clfw/src/testdrivers/exf2/examp2.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** examp2.cpp 2001/04/08 10:50:43 1.2
--- examp2.cpp 2001/04/10 21:17:50 1.3
***************
*** 76,79 ****
--- 76,87 ----
#endif
+ #if !defined(__STORECATALOG_HPP)
+ #include INCL_StoreCatalog
+ #endif
+
+ #if !defined(__STORESPONSOR_HPP)
+ #include INCL_StoreSponsor
+ #endif
+
using namespace corelinux;
***************
*** 117,121 ****
// Resolve sponser for Schema gdbm
! // Get the catalog interface
// list existing schemas
// load a schema -or-
--- 125,137 ----
// Resolve sponser for Schema gdbm
! // and get the catalog interface
!
! StoreSponsorPtr aSponsor
! (
! StoreSponsor::castDown(getInstanceOf("SchemaSponsor"))
! );
!
! StoreCatalogPtr aCatalog = aSponsor->getCatalog();
!
// list existing schemas
// load a schema -or-
|