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...> - 2000-10-22 18:46:42
|
Update of /cvsroot/corelinux/clfw/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv7337 Modified Files: Makefile.am Added Files: Boolean.hpp Log Message: 117407 Boolean Type ***** Error reading new file: (2, 'No such file or directory') Index: Makefile.am =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw/Makefile.am,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** Makefile.am 2000/10/21 14:07:50 1.11 --- Makefile.am 2000/10/22 14:46:38 1.12 *************** *** 13,28 **** SUBDIRS = LibLoad ! include_HEADERS = ClfwCommon.hpp \ ! UniversalIdentifier.hpp \ ! ClassException.hpp \ ! DescriptorNotFound.hpp \ ! AccessorNotFound.hpp \ ! MetaType.hpp \ ! FrameworkEntity.hpp \ ! Number.hpp \ ! RealNumber.hpp \ ! Integer.hpp \ ! ShortInteger.hpp \ ! UnsignedInteger.hpp \ Makefile.am --- 13,30 ---- SUBDIRS = LibLoad ! include_HEADERS = ClfwCommon.hpp \ ! UniversalIdentifier.hpp \ ! ClassException.hpp \ ! AbstractEntityException.hpp \ ! DescriptorNotFound.hpp \ ! AccessorNotFound.hpp \ ! MetaType.hpp \ ! FrameworkEntity.hpp \ ! Boolean.hpp \ ! Number.hpp \ ! RealNumber.hpp \ ! Integer.hpp \ ! ShortInteger.hpp \ ! UnsignedInteger.hpp \ Makefile.am |
|
From: Frank V. C. <fr...@us...> - 2000-10-22 16:36:04
|
Update of /cvsroot/corelinux/clfw/src/testdrivers/exf1 In directory slayer.i.sourceforge.net:/tmp/cvs-serv7484/src/testdrivers/exf1 Modified Files: examp1.cpp Log Message: 117408 Abstract type support Index: examp1.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/testdrivers/exf1/examp1.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** examp1.cpp 2000/10/21 16:10:18 1.11 --- examp1.cpp 2000/10/22 14:49:16 1.12 *************** *** 28,32 **** // ! // Common.hpp included before anything else. This is not // required but it makes things consistent. You can also // wrap it with: --- 28,32 ---- // ! // ClfwCommon.hpp included before anything else. This is not // required but it makes things consistent. You can also // wrap it with: *************** *** 45,48 **** --- 45,52 ---- #endif + #if !defined(__BOOLEAN_HPP) + #include <clfw/Boolean.hpp> + #endif + #if !defined(__INTEGER_HPP) #include <clfw/Integer.hpp> *************** *** 70,74 **** int main( void ); ! void dumpMetaType( FrameworkEntityPtr ); void dumpInstanceMembers( MetaTypeCptr ); void dumpParents( MetaTypeCptr ); --- 74,79 ---- int main( void ); ! void dumpMetaTypeInformation( MetaTypeCptr ); ! void dumpTypeInformation( FrameworkEntityPtr ); void dumpInstanceMembers( MetaTypeCptr ); void dumpParents( MetaTypeCptr ); *************** *** 84,87 **** --- 89,94 ---- // + // Getter + template < class T > T getValue( char *name, FrameworkEntityPtr aFE ) { *************** *** 92,99 **** return *pval; } ! template < class T > void setValue( char *name, T value, FrameworkEntityPtr aFE ) { ! aFE->getType()->set(name,(VoidPtr)&value,aFE); } --- 99,113 ---- return *pval; } + + // Setter ! template < class T > void setValue ! ( ! char *name, ! T value, ! FrameworkEntityPtr aFE ! ) { ! (aFE->getType())->set(name,(VoidPtr)&value,aFE); } *************** *** 112,159 **** { // ! // The MetaType pointer is the genesis machine! You don't own it, so ! // don't destroy it. // - - // - // First we play around with the root entity - // - - FrameworkEntityPtr aFrameworkEntity = new FrameworkEntity; ! dumpMetaType( aFrameworkEntity ); // - // Now we sweeten the pot with showing the factory methods, getters, setters // IntegerPtr aInteger = Integer::create(); setValue<Int>("Value",8,aInteger); ! dumpMetaType( aInteger ); ! cout << "Value of aInteger = " << getValue<Int>("Value",aInteger) << endl; ShortIntegerPtr aShort = ShortInteger::create(); setValue<Short>("Value",3,aShort); ! dumpMetaType( aShort ); ! cout << "Value of aInteger = " << getValue<Short>("Value",aShort) << endl; ! ! UnsignedIntegerPtr aUnsigned = new UnsignedInteger; ! setValue<UnsignedInt>("Value",(UnsignedInt) -(aInteger->getValue()),aUnsigned ); ! dumpMetaType( aUnsigned ); ! cout << "Value of aInteger = " << getValue<UnsignedInt>("Value",aUnsigned) << endl; ! ! // ! // Call destroy ! // ! ! Integer::destroy( aInteger ); ShortInteger::destroy( aShort ); ! // ! // Call indirect destroy ! // ! delete aFrameworkEntity; delete aUnsigned; } catch( AssertionRef aAssert ) --- 126,175 ---- { // ! // Becuase the root is abstract, we can't allocate it, ! // but we can reason with it // ! dumpMetaTypeInformation( FrameworkEntity::getTypeDescriptor() ); ! dumpMetaTypeInformation( Number::getTypeDescriptor() ); ! dumpMetaTypeInformation( Boolean::getTypeDescriptor() ); // // + // Now we sweeten the pot with showing the factory methods, + // introspection, getters, setters, and destructors + // + + // signed Integer IntegerPtr aInteger = Integer::create(); setValue<Int>("Value",8,aInteger); ! dumpTypeInformation( aInteger ); ! cout << "Value of aInteger = " << ! getValue<Int>("Value",aInteger) << endl; ! Integer::destroy( aInteger ); ! ! // signed Short ShortIntegerPtr aShort = ShortInteger::create(); setValue<Short>("Value",3,aShort); ! dumpTypeInformation( aShort ); ! cout << "Value of aInteger = " ! << getValue<Short>("Value",aShort) << endl; ShortInteger::destroy( aShort ); ! // unsigned Integer ! UnsignedIntegerPtr aUnsigned = new UnsignedInteger; ! setValue<UnsignedInt> ! ( ! "Value", ! (UnsignedInt) -(aInteger->getValue()), ! aUnsigned ! ); ! dumpTypeInformation( aUnsigned ); ! cout << "Value of aInteger = " ! << getValue<UnsignedInt>("Value",aUnsigned) << endl; delete aUnsigned; + } catch( AssertionRef aAssert ) *************** *** 178,188 **** // ! // Dump info on types // ! void dumpMetaType( FrameworkEntityPtr anFEPtr ) { - const MetaTypeCptr aMTPtr( anFEPtr->getType() ); - // // Standard stuff --- 194,202 ---- // ! // Dump info on meta types // ! void dumpMetaTypeInformation( MetaTypeCptr aMTPtr ) { // // Standard stuff *************** *** 195,201 **** cout << endl - << "entity address = " << anFEPtr << endl << "type class version = " << aMTPtr->getTypeVersion() << endl ! << "instance size = " << aMTPtr->getTypeSize() << endl; --- 209,216 ---- cout << endl << "type class version = " << aMTPtr->getTypeVersion() << endl ! << "instance size = " << aMTPtr->getTypeSize() << endl ! << "abstract type = " << ! ( aMTPtr->isAbstractType() ? "true" : "false" ) << endl; *************** *** 211,214 **** --- 226,238 ---- dumpInstanceMembers( aMTPtr ); + + } + // + // Dump info on types + // + + void dumpTypeInformation( FrameworkEntityPtr anFEPtr ) + { + dumpMetaTypeInformation( anFEPtr->getType() ); } |
|
From: Frank V. C. <fr...@us...> - 2000-10-22 16:36:04
|
Update of /cvsroot/corelinux/clfw/src/libs/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv7484/src/libs/clfw Modified Files: FrameworkEntity.cpp MetaType.cpp Number.cpp Added Files: AbstractEntityException.cpp Log Message: 117408 Abstract type support ***** Error reading new file: (2, 'No such file or directory') Index: FrameworkEntity.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/FrameworkEntity.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** FrameworkEntity.cpp 2000/10/14 11:49:34 1.5 --- FrameworkEntity.cpp 2000/10/22 14:49:16 1.6 *************** *** 43,55 **** //! because MetaTypeRoot is the root, there are no metatype parents OPEN_METATYPE_PARENTS( FrameworkEntity ) CLOSE_METATYPE_PARENT; //! because this is a base entity, there are no members either OPEN_INSTANCEDATA( FrameworkEntity ) CLOSE_INSTANCEDATA; ! //! because we must define MetaTypeRoot we use DEFINE_METATYPE1 ! DEFINE_METATYPE1( FrameworkEntity, MetaTypeRoot, metaIdentifier, version ); // --- 43,58 ---- //! because MetaTypeRoot is the root, there are no metatype parents + OPEN_METATYPE_PARENTS( FrameworkEntity ) CLOSE_METATYPE_PARENT; //! because this is a base entity, there are no members either + OPEN_INSTANCEDATA( FrameworkEntity ) CLOSE_INSTANCEDATA; + + //! because we must define MetaTypeRoot and is abstract ! DEFINE_ABSTRACT_METATYPE1( FrameworkEntity, MetaTypeRoot, metaIdentifier, version ); // Index: MetaType.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/Met |
|
From: Frank V. C. <fr...@us...> - 2000-10-22 16:36:04
|
Update of /cvsroot/corelinux/clfw/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv7484/clfw Modified Files: MetaType.hpp Added Files: AbstractEntityException.hpp Log Message: 117408 Abstract type support ***** Error reading new file: (2, 'No such file or directory') Index: MetaType.hpp =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw/MetaType.hpp,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** MetaType.hpp 2000/10/21 16:10:17 1.14 --- MetaType.hpp 2000/10/22 14:49:16 1.15 *************** *** 26,29 **** --- 26,33 ---- #endif + #if !defined(__ABSTRACTENTITYEXCEPTION_HPP) + #include <AbstractEntityException.hpp> + #endif + #include <cstdio> *************** *** 34,37 **** --- 38,42 ---- DECLARE_CLASS( DescriptorNotFound ); DECLARE_CLASS( AccessorNotFound ); + /*! *************** *** 390,393 **** --- 395,475 ---- className::destroy(aPtr); \ } \ + + /*! + \def _DEFINE_ABSTRACT_ENTITY(className) + \brief Defines the methods for the abstract type. + Define the create(), destroy() functions to throw + a abstract class exception + \arg className: the class name + */ + + #define _DEFINE_ABSTRACT_ENTITY(className) \ + /** \ + the size of the class object \ + */ \ + const DwordCref className##Size(sizeof(className)); \ + const CharPtr className##Name = #className; \ + const CharPtr MetaType##className##Name = "MetaType"#className; \ + const CharPtr className##AllocExc = "Can't allocate abstract type "#className; \ + const CharPtr className##DeAllocExc = "Can't deallocate abstract type "#className; \ + /** \ + create a new pointer to className \ + \return the allocated pointer \ + */ \ + className##Ptr className::create( void ) \ + { \ + throw AbstractEntityException \ + ( \ + className##AllocExc, \ + LOCATION \ + ); \ + return (className##Ptr)NULLPTR; \ + } \ + /** \ + destroy a pointer to className \ + \arg the pointer aPtr \ + */ \ + void className::destroy( className##Ptr ) \ + { \ + throw AbstractEntityException \ + ( \ + className##DeAllocExc, \ + LOCATION \ + ); \ + } \ + className##Ptr className::castDown( FrameworkEntityPtr aP ) \ + { \ + return dynamic_cast<className##Ptr>(aP); \ + } \ + /** \ + redefine the operator new for className \ + this operator use the className::create() \ + function \ + \return a VoidPtr \ + */ \ + VoidPtr className::operator new( size_t ) \ + { \ + throw AbstractEntityException \ + ( \ + className##AllocExc, \ + LOCATION \ + ); \ + return (className##Ptr)NULLPTR; \ + } \ + /** \ + redefine the operator delete for className \ + this operator use the className::destroy() \ + function \ + \arg the pointer aVoidPtr \ + */ \ + void className::operator delete( VoidPtr ) \ + { \ + throw AbstractEntityException \ + ( \ + className##DeAllocExc, \ + LOCATION \ + ); \ + } \ + /*! \def _DEFINE_ENTITY_ALWAYS_PARMS(className,identification,version) *************** *** 445,453 **** */ #define DEFINE_ABSTRACT_METATYPE( className, identifier, version ) \ ! _DEFINE_ENTITY( className ) \ _DEFINE_ENTITY_ALWAYS_PARMS(className,identifier,version) \ _DEFINE_SINGLE_STRINGID(className) \ _DEFINE_ENTITY_ALWAYS(className) /*! \def DEFINE_METATYPE( className, identifier, version ) --- 527,548 ---- */ #define DEFINE_ABSTRACT_METATYPE( className, identifier, version ) \ ! _DEFINE_ABSTRACT_ENTITY( className ) \ _DEFINE_ENTITY_ALWAYS_PARMS(className,identifier,version) \ _DEFINE_SINGLE_STRINGID(className) \ _DEFINE_ENTITY_ALWAYS(className) + /*! + \def DEFINE_ABSTRACT_METATYPE( className, metaName, identifier, version ) + define a new abstract MetaType but gives a metatype name + \arg className: the class name + \arg metaName: the meta class name + \arg identifier: the identifier, typically a UniversalIdentifier + \arg version: the version number of the MetaType + */ + #define DEFINE_ABSTRACT_METATYPE1( className, metaName, identifier, version ) \ + _DEFINE_ABSTRACT_ENTITY( className ) \ + _DEFINE_ENTITY_ALWAYS_PARMS(className,identifier,version) \ + _DEFINE_DUAL_STRINGID(className,metaName) \ + _DEFINE_ENTITY_ALWAYS(className) /*! \def DEFINE_METATYPE( className, identifier, version ) *************** *** 466,470 **** /*! ! \def DEFINE_METATYPE( className, metaName, identifier, version ) define a new MetaType but gives a name to the metatype. For example, the FrameworkEntity passes MetaTypeRoot which is destined to be the --- 561,565 ---- /*! ! \def DEFINE_METATYPE1( className, metaName, identifier, version ) define a new MetaType but gives a name to the metatype. For example, the FrameworkEntity passes MetaTypeRoot which is destined to be the *************** *** 475,479 **** \arg version: the version number of the MetaType */ ! #define DEFINE_METATYPE1( className, metaName,identifier, version ) \ _DEFINE_FACTORY( className ) \ _DEFINE_ENTITY( className ) \ --- 570,574 ---- \arg version: the version number of the MetaType */ ! #define DEFINE_METATYPE1( className, metaName, identifier, version ) \ _DEFINE_FACTORY( className ) \ _DEFINE_ENTITY( className ) \ |
|
From: Frank V. C. <fr...@us...> - 2000-10-21 14:09:23
|
Update of /cvsroot/corelinux/clfw/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv27597 Modified Files: ClfwCommon.hpp Log Message: New types Index: ClfwCommon.hpp =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw/ClfwCommon.hpp,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** ClfwCommon.hpp 2000/10/03 02:14:02 1.3 --- ClfwCommon.hpp 2000/10/21 14:09:17 1.4 *************** *** 30,35 **** --- 30,40 ---- #endif + #define IN_CLFWCOMMON_HPP + + #include <ClassException.hpp> #include <UniversalIdentifier.hpp> #include <MetaType.hpp> + + #undef IN_CLFWCOMMON_HPP #endif // if !defined(__CLFWCOMMON_HPP) |
|
From: Frank V. C. <fr...@us...> - 2000-10-21 14:08:41
|
Update of /cvsroot/corelinux/clfw/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv27564 Modified Files: MetaType.hpp Log Message: Added get method to invoke instance accessor Index: MetaType.hpp =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw/MetaType.hpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** MetaType.hpp 2000/10/16 03:05:07 1.12 --- MetaType.hpp 2000/10/21 14:08:39 1.13 *************** *** 32,35 **** --- 32,37 ---- DECLARE_CLASS( FrameworkEntity ); DECLARE_CLASS( MetaType ); + DECLARE_CLASS( DescriptorNotFound ); + DECLARE_CLASS( AccessorNotFound ); /*! *************** *** 122,127 **** DECLARE_TYPE(struct _InstanceMemberDescriptor, MemberDescriptor ); #define _DECLARE_INSTANCEDATA_STATICS(dataName) \ - public: \ static MemberDescriptor the##dataName##Descriptor; \ static void *get##dataName##AsVPtr( FrameworkEntityPtr ); \ --- 124,134 ---- DECLARE_TYPE(struct _InstanceMemberDescriptor, MemberDescriptor ); + /*! def _DECLARE_INSTANCEDATA_STATICS( dataName ) + \brief Declare static members and methods for supporting type + instance access by MetaType instance + \arg dataName : the member instance variable name + */ + #define _DECLARE_INSTANCEDATA_STATICS(dataName) \ static MemberDescriptor the##dataName##Descriptor; \ static void *get##dataName##AsVPtr( FrameworkEntityPtr ); \ *************** *** 272,283 **** --- 279,313 ---- + /*! + \def OPEN_INSTANCEDATA( className ) + \brief Each attribute in a type can be exposed to it's + MetaType for reasoning and access in the user space + \arg className: the class used as part of the unique array name + */ + #define OPEN_INSTANCEDATA( className ) \ + /** \ + Array storing the attribute descriptors \ + */ \ MemberDescriptor const *className##Type##Members[] = \ { \ + /*! + \def DEFINE_INSTANCEDATA( className, dataName ) + \brief Creates the MemberDescriptor entry in the array + \arg className: used to reference the static descriptor + \arg dataName : the instance data member variable name + */ + #define DEFINE_INSTANCEDATA( className, dataName ) \ + /** \ + Attribute descriptor \ + */ \ &className::the##dataName##Descriptor, \ #define CLOSE_INSTANCEDATA \ + /** \ + Close the attribute descriptor array \ + */ \ MemberDescriptorCptr( NULLPTR ) \ } *************** *** 371,387 **** MetaType className::theTypeDesc \ ( \ ! identification \ ! ,version \ ! ,className##Size \ ! ,className##MetaType##Parents \ ! ,className##Type##Members #define _DEFINE_SINGLE_STRINGID( className ) \ ! ,className##Name \ ,MetaType##className##Name #define _DEFINE_DUAL_STRINGID( className, metaName ) \ ! ,className##Name \ ,#metaName --- 401,417 ---- MetaType className::theTypeDesc \ ( \ ! identification, \ ! version, \ ! className##Size, \ ! className##MetaType##Parents, \ ! className##Type##Members, #define _DEFINE_SINGLE_STRINGID( className ) \ ! className##Name \ ,MetaType##className##Name #define _DEFINE_DUAL_STRINGID( className, metaName ) \ ! className##Name \ ,#metaName *************** *** 456,462 **** \class MetaType This class contains the meta informations on the classes using the metaClass framework. - - \version $Id$ */ class MetaType { --- 486,491 ---- \class MetaType This class contains the meta informations on the classes using the metaClass framework. */ + class MetaType { *************** *** 464,470 **** public: ! /** @name Constructor and destructor */ ! //@{ /** Constructor requires meaningful information --- 493,499 ---- public: ! /** @name Constructor and destructor */ ! //@{ /** Constructor requires meaningful information *************** *** 520,530 **** virtual ~MetaType( void ); ! //@} ! /** @name Accessors */ ! //@{ ! /** get the UniversalIdentifier associated to the MetaType. @return a UniversalIdentifierCref --- 549,560 ---- virtual ~MetaType( void ); ! //@} ! /** @name MetaType Accessors ! General accessors for the meta type and various descriptors */ ! //@{ ! /** get the UniversalIdentifier associated to the MetaType. @return a UniversalIdentifierCref *************** *** 610,615 **** bool isAbstractType( void ) const; ! //@} protected: --- 640,668 ---- bool isAbstractType( void ) const; ! //@} + /** @name Instance Accessors and methods interfaces + */ + //@{ + + /** + Attempts to access to the specified attribute + @param Char pointer to value name + @param FrameworkEntity pointer to instance + @return VoidPtr to value + @exception NullPointerException if name is null + @exception DescriptorNotFound if no match + @exception AccessorNotFound if no getter method + */ + + VoidPtr get( CharCptr, FrameworkEntityPtr ) const + throw + ( + NullPointerException, + DescriptorNotFound, + AccessorNotFound + ); + //@} + protected: *************** *** 635,639 **** CharCptr theMetaTypeName; AllocatorPtr theFactoryAllocator; - }; } --- 688,691 ---- |
|
From: Frank V. C. <fr...@us...> - 2000-10-21 14:07:53
|
Update of /cvsroot/corelinux/clfw/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv27549 Modified Files: Makefile.am Log Message: New types Index: Makefile.am =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw/Makefile.am,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** Makefile.am 2000/10/20 11:37:52 1.10 --- Makefile.am 2000/10/21 14:07:50 1.11 *************** *** 15,18 **** --- 15,21 ---- include_HEADERS = ClfwCommon.hpp \ UniversalIdentifier.hpp \ + ClassException.hpp \ + DescriptorNotFound.hpp \ + AccessorNotFound.hpp \ MetaType.hpp \ FrameworkEntity.hpp \ |
|
From: Frank V. C. <fr...@us...> - 2000-10-21 14:07:26
|
Update of /cvsroot/corelinux/clfw/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv27537 Added Files: ClassException.hpp DescriptorNotFound.hpp AccessorNotFound.hpp Log Message: Exception types ***** Error reading new file: (2, 'No such file or directory') ***** Error reading new file: (2, 'No such file or directory') ***** Error reading new file: (2, 'No such file or directory') |
|
From: Frank V. C. <fr...@us...> - 2000-10-20 11:53:31
|
Update of /cvsroot/corelinux/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv7301 Modified Files: configure.in Log Message: Changed config macro Index: configure.in =================================================================== RCS file: /cvsroot/corelinux/clfw/configure.in,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -r1.15 -r1.16 *** configure.in 2000/10/16 03:06:35 1.15 --- configure.in 2000/10/20 11:53:29 1.16 *************** *** 56,60 **** dnl Checks for programs. AC_PROG_CXX ! CORELINUX_CHECK_COMPILERS AC_PROG_LN_S --- 56,60 ---- dnl Checks for programs. AC_PROG_CXX ! CLFW_CHECK_COMPILERS AC_PROG_LN_S |
|
From: Frank V. C. <fr...@us...> - 2000-10-20 11:53:31
|
Update of /cvsroot/corelinux/clfw/admin In directory slayer.i.sourceforge.net:/tmp/cvs-serv7301/admin Added Files: clfw_check_compilers.m4 Removed Files: corelinux_check_compilers.m4 Log Message: Changed config macro --- NEW FILE --- dnl -*- Mode: m4 -*- dnl dnl SUMMARY: dnl dnl AUTHOR: Christophe Prud'homme dnl ORG: Christophe Prud'homme dnl E-MAIL: Chr...@an... dnl dnl ORIG-DATE: 27-Apr-99 at 11:25:05 dnl dnl DESCRIPTION: dnl dnl DESCRIP-END. AC_DEFUN(AC_BZ_SET_COMPILER, [cxxwith=`echo $1 | sed -e 's/ /@/g'` case "$cxxwith" in *:*@*) # Full initialization syntax CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)@.*/\1/p'` CXXFLAGS=`echo "$cxxwith" | sed -n -e 's/.*:.*@\(.*\)/\1/p'` ;; *:*) # Simple initialization syntax CXX=`echo "$cxxwith" | sed -n -e 's/.*:\(.*\)/\1/p'` CXXFLAGS=$3 ;; *) # Default values CXX=$2 CXXFLAGS=$3 echo "$CXX $CXXFLAGS" ;; esac]) AC_DEFUN(CLFW_CHECK_COMPILERS, [ AC_SUBST(ARFLAGS) AC_SUBST(AR) AC_SUBST(CFLAGS) AC_SUBST(RANLIB) known_compiler=0 ARFLAGS="cru" AC_ARG_WITH(cxx, [ --with-cxx=COMPILER[:name-flags] set options for COMPILER (KCC, cray, egcs, DECcxx, aCC)], [case "$withval" in KCC*) # KAI C++ http://www.kai.com/ echo "Configuring for KAI C++" bz_compiler=kcc AC_BZ_SET_COMPILER($withval,"KCC","--one_instantiation_per_object --no_exceptions --restrict") CXX_OPTIMIZE_FLAGS="+K3 -O3 --inline_keyword_space_time=10000 --abstract_float --abstract_pointer" CXX_DEBUG_FLAGS="-g +K1 -O2 -DDEBUG=1 -DBZ_DEBUG" F77=f77 F77_OPTIMIZE_FLAGS="-O2 -funroll-loops" CFLAGS="\${CXXFLAGS}" AR="KCC \${CXXFLAGS}" ARFLAGS="-o" RANLIB="@echo" ;; insure*) echo "Configuring for insure (wahoo!)" bz_compiler=egcs AC_BZ_SET_COMPILER($withval,"insure","-ftemplate-depth-30") CXX_OPTIMIZE_FLAGS="-ftemplate-depth-30-g -O " CXX_DEBUG_FLAGS="-g -DBZ_DEBUG" F77=g77 F77_OPTIMIZE_FLAGS="-O2 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_DOUBLE_TRAILING_UNDERSCORES" ;; g++*) # EGCS http://egcs.cygnus.com/ echo "Configuring for g++" bz_compiler=egcs AC_BZ_SET_COMPILER($withval,"g++","-ftemplate-depth-17") CXX_OPTIMIZE_FLAGS="-O3 -fstrength-reduce -frerun-loop-opt -fgcse -funroll-loops -fstrict-aliasing -fomit-frame-pointer -fexpensive-optimizations -ffast-math" # CXX_DEBUG_FLAGS="-W -Wall -Wmissing-prototypes -Wstrict-prototypes -Wtraditional -Wconversion -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -fshort-enums -fno-common -Wnested-externs -g -O2 -fno-inline " CXX_DEBUG_FLAGS="-W -Wall -g -O0 -DDEBUG=1" CXX_PROF_FLAGS="-g -pg" F77=g77 F77_OPTIMIZE_FLAGS="-O2 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_DOUBLE_TRAILING_UNDERSCORES" AR="ar" RANLIB="ranlib" ;; eg++*) # EGCS http://egcs.cygnus.com/ echo "Configuring for EGCS (wahoo!)" bz_compiler=egcs AC_BZ_SET_COMPILER($withval,"eg++","-ftemplate-depth-30") CXX_OPTIMIZE_FLAGS="-O2 -funroll-loops -fstrict-aliasing " # CXX_DEBUG_FLAGS="-W -Wmissing-prototypes -Wstrict-prototypes -Wtraditional -Wconversion -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -fshort-enums -fno-common -Wnested-externs -g -O2" F77=g77 F77_OPTIMIZE_FLAGS="-O2 -funroll-loops" CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_DOUBLE_TRAILING_UNDERSCORES" AR="ar" RANLIB="ranlib" ;; pgCC*) echo "Configuring for Portland Group" bz_compiler=pgCC AC_BZ_SET_COMPILER($withval,"pgCC","") # CXX_OPTIMIZE_FLAGS="-fast -pc 64 -Mconcour -Mnoframe -Mnodepchk -Minline=levels:25" CXX_OPTIMIZE_FLAGS="-O3 -Mcache_align -Minline=levels:25" CXX_DEBUG_FLAGS="-g -DDEBUG=1" CXX_PROF_FLAGS="-g -pg" F77=g77 F77_OPTIMIZE_FLAGS="-fast -pc 64 -Mconcour " CXXFFLAGS="-DBZ_FORTRAN_SYMBOLS_WITH_DOUBLE_TRAILING_UNDERSCORES" AR="ar" RANLIB="ranlib" export GXX=pgCC ;; aCC*) echo "Configuring for aCC (HP-UX)" bz_compiler=aCC AC_BZ_SET_COMPILER($withval,"aCC","-Wc,-fansi_for_scope,on") CXX_OPTIMIZE_FLAGS="+O2" CXX_DEBUG_FLAGS="-g" F77=f77 F77_OPTIMIZE_FLAGS="-O" ;; cray*) echo "Configuring for Cray C++." bz_compiler=cray AC_BZ_SET_COMPILER($withval,"CC","-h instantiate=used -h noexceptions -h new_for_init") CPPFLAGS="$CPPFLAGS -DCRAY_T3E" # CXX_OPTIMIZE_FLAGS="-O3 -hpipeline3 -hunroll -haggress -hscalar2" CXX_DEBUG_FLAGS="-g" AR="ar" RANLIB="ranlib" ;; *) AC_MSG_WARN([--with-cxx: invalid option $withval]) ;; esac know_compiler=1 ]) if test $know_compiler -eq 0; then cat << 'EOH' This script only recognizes a small set of compilers and platforms so far. You will have to rerun this script with one of these options: --with-cxx=KCC KAI C++ (http://www.kai.com/) --with-cxx=g++ GCC (http://egcs.cygnus.com/) --with-cxx=cray Cray C++ 3.0 or better (http://www.cray.com/) --with-cxx=DECcxx DEC cxx 6.10 or better (http://www.dec.com/) The Intel C++ compiler is also able to compile blitz, but this script doesn't handle it yet. Ask if you need it. EOH exit 1 fi bz_optimize=false AC_ARG_ENABLE(optimize, [ --enable-optimize enable compiler optimization flags], [echo "$CXX" # case "$CXX" in # g++*) if test "$enableval" = yes; then case "$host" in hppa*) # -mpa-risc-2-0 -march=2.0 # CXX_OPTIMZE_ARCH_FLAGS="-mpa-risc-2-0 -march=2.0 -mschedule=8000" ;; i686*) if test "$with_cxx" = g++; then CXX_OPTIMZE_ARCH_FLAGS="-mcpu=pentiumpro -march=pentiumpro" fi ;; alphaev56*) CXX_OPTIMZE_ARCH_FLAGS="-mcpu=ev56 " ;; cray*) CPPFLAGS="$CPPFLAGS -DCRAY_T3E" # CXX_OPTIMZE_ARCH_FLAGS="-h inline1 -h scalar3 -h jump -hpipeline1 " if test "$with_cxx" = KCC; then F77=f90 F77FLAGS="-O,aggress,pipeline3,unroll2,scalar3,inline3" CXX_OPTIMZE_ARCH_FLAGS="--backend -hpipeline3 --backend -hunroll --backend -haggress --backend -hscalar2" fi;; esac #;; #esac echo "Optimization flags enabled" CXXFLAGS="$CXXFLAGS $CXX_OPTIMIZE_FLAGS $CXX_OPTIMZE_ARCH_FLAGS" F77FLAGS="$F77_OPTIMIZE_FLAGS $F77_OPTIMIZE_ARCH_FLAGS" fi], []) bz_debug=false AC_ARG_ENABLE(debug, [ --enable-debug enable compiler debug flags], [if test "$enableval" = yes; then echo "Debugging flags enabled" CXXFLAGS="$CXXFLAGS $CXX_DEBUG_FLAGS" CPPFLAGS="$CPPFLAGS -DALL_ASSERTIONS=1" # AC_CHECK_LIB(efence,EF_Exit,ac_define_efence=1) fi], []) bz_prof=false AC_ARG_ENABLE(profile, [ --enable-profile enable compiler debug flags], [if test "$enableval" = yes; then echo "Profiling flags enabled" CXXFLAGS="$CXXFLAGS $CXX_PROF_FLAGS" # AC_CHECK_LIB(efence,EF_Exit,ac_define_efence=1) fi], []) ]) --- corelinux_check_compilers.m4 DELETED --- |
|
From: Frank V. C. <fr...@us...> - 2000-10-20 11:37:56
|
Update of /cvsroot/corelinux/clfw/src/libs/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv6265/src/libs/clfw Modified Files: Makefile.am Added Files: UnsignedInteger.cpp Log Message: 116956 UnsignedInteger ***** Error reading new file: (2, 'No such file or directory') Index: Makefile.am =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/Makefile.am,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** Makefile.am 2000/10/16 03:05:47 1.7 --- Makefile.am 2000/10/20 11:37:52 1.8 *************** *** 19,23 **** RealNumber.cpp \ Integer.cpp \ ! ShortInteger.cpp LIBS = --- 19,24 ---- RealNumber.cpp \ Integer.cpp \ ! ShortInteger.cpp \ ! UnsignedInteger.cpp LIBS = |
|
From: Frank V. C. <fr...@us...> - 2000-10-20 11:37:56
|
Update of /cvsroot/corelinux/clfw/src/testdrivers/exf1 In directory slayer.i.sourceforge.net:/tmp/cvs-serv6265/src/testdrivers/exf1 Modified Files: examp1.cpp Log Message: 116956 UnsignedInteger Index: examp1.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/testdrivers/exf1/examp1.cpp,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** examp1.cpp 2000/10/16 03:06:35 1.8 --- examp1.cpp 2000/10/20 11:37:52 1.9 *************** *** 53,56 **** --- 53,60 ---- #endif + #if !defined(__UNSIGNEDINTEGER_HPP) + #include <clfw/UnsignedInteger.hpp> + #endif + using namespace corelinux; *************** *** 113,116 **** --- 117,126 ---- dumpMetaType( aShort ); + UnsignedIntegerPtr aUnsigned = new UnsignedInteger; + + aUnsigned->setValue( -(aInteger->getValue()) ); + + dumpMetaType( aUnsigned ); + // // Call destroy *************** *** 124,128 **** // ! delete aFrameworkEntity; } catch( AssertionRef aAssert ) --- 134,139 ---- // ! delete aFrameworkEntity; ! delete aUnsigned; } catch( AssertionRef aAssert ) |
|
From: Frank V. C. <fr...@us...> - 2000-10-20 11:37:56
|
Update of /cvsroot/corelinux/clfw/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv6265/clfw Modified Files: Makefile.am Log Message: 116956 UnsignedInteger Index: Makefile.am =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw/Makefile.am,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** Makefile.am 2000/10/16 03:05:07 1.9 --- Makefile.am 2000/10/20 11:37:52 1.10 *************** *** 21,24 **** --- 21,25 ---- Integer.hpp \ ShortInteger.hpp \ + UnsignedInteger.hpp \ Makefile.am |
|
From: Frank V. C. <fr...@us...> - 2000-10-19 12:14:42
|
Update of /cvsroot/corelinux/clfw/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv26858 Added Files: UnsignedInteger.hpp Log Message: 116956 UnsignedInteger ***** Error reading new file: (2, 'No such file or directory') |
|
From: Frank V. C. <fr...@us...> - 2000-10-18 12:22:03
|
Update of /cvsroot/corelinux/htdocs In directory slayer.i.sourceforge.net:/tmp/cvs-serv12810 Modified Files: download.php Log Message: Debian updates Index: download.php =================================================================== RCS file: /cvsroot/corelinux/htdocs/download.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -r1.10 -r1.11 *** download.php 2000/10/16 00:32:47 1.10 --- download.php 2000/10/18 12:22:00 1.11 *************** *** 5,15 **** $cldoc_release="0.4.29"; $cl_release="0.4.29"; ! $cldeb_release="0.4.28"; $cl_release_rpm=1; $cl_release_deb=1; $clfw_release="0.2.1"; ! $clfwdeb_release="0.1.0"; $clfw_release_rpm=1; ! $clfw_release_deb=2; $prefix="http://download.sourceforge.net/corelinux"; --- 5,15 ---- $cldoc_release="0.4.29"; $cl_release="0.4.29"; ! $cldeb_release="0.4.29"; $cl_release_rpm=1; $cl_release_deb=1; $clfw_release="0.2.1"; ! $clfwdeb_release="0.2.1"; $clfw_release_rpm=1; ! $clfw_release_deb=1; $prefix="http://download.sourceforge.net/corelinux"; *************** *** 76,80 **** <span class="tablebar">Debian Packages</span> </td> ! <td align="right" bgcolor="#6C7198"><span class="tablebar">[ was compiled on potato ]</span></td> </tr> <tr> --- 76,80 ---- <span class="tablebar">Debian Packages</span> </td> ! <td align="right" bgcolor="#6C7198"><span class="tablebar">[ was compiled on woody ]</span></td> </tr> <tr> *************** *** 142,146 **** <span class="tablebar">Debian Packages</span> </td> ! <td align="right" bgcolor="#6C7198"><span class="tablebar">[ was compiled on potato ]</span></td> </tr> <tr> --- 142,146 ---- <span class="tablebar">Debian Packages</span> </td> ! <td align="right" bgcolor="#6C7198"><span class="tablebar">[ was compiled on woody ]</span></td> </tr> <tr> |
|
From: Frank V. C. <fr...@us...> - 2000-10-16 03:06:38
|
Update of /cvsroot/corelinux/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv2306 Modified Files: README configure.in Log Message: Preperations for 0.2.2 Index: README =================================================================== RCS file: /cvsroot/corelinux/clfw/README,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** README 2000/10/14 11:49:33 1.4 --- README 2000/10/16 03:06:35 1.5 *************** *** 1,4 **** ==================================================== ! CoreLinux++ Framework Source Distribution Beta 0.2.1 ==================================================== --- 1,4 ---- ==================================================== ! CoreLinux++ Framework Source Distribution Beta 0.2.2 ==================================================== Index: configure.in =================================================================== RCS file: /cvsroot/corelinux/clfw/configure.in,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** configure.in 2000/10/09 12:41:40 1.14 --- configure.in 2000/10/16 03:06:35 1.15 *************** *** 10,14 **** CLFW_MAJOR_VERSION=0 CLFW_MINOR_VERSION=2 ! CLFW_MICRO_VERSION=1 dnl --- 10,14 ---- CLFW_MAJOR_VERSION=0 CLFW_MINOR_VERSION=2 ! CLFW_MICRO_VERSION=2 dnl |
|
From: Frank V. C. <fr...@us...> - 2000-10-16 03:06:38
|
Update of /cvsroot/corelinux/clfw/src/testdrivers/exf1 In directory slayer.i.sourceforge.net:/tmp/cvs-serv2306/src/testdrivers/exf1 Modified Files: examp1.cpp Log Message: Preperations for 0.2.2 Index: examp1.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/testdrivers/exf1/examp1.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -r1.7 -r1.8 *** examp1.cpp 2000/10/14 11:49:34 1.7 --- examp1.cpp 2000/10/16 03:06:35 1.8 *************** *** 22,28 **** This example is to show use of the MetaType object ! It is a trivial example of the metaClass features. It creates a type descriptor, aMT, for the FrameworkEntity ! class then it creates an instance, aFrameworkEntity, of this class. ! Finally it compares the type of aFrameworkEntity with FrameworkEntity (the answer should be yes :) ) */ --- 22,28 ---- This example is to show use of the MetaType object ! We primarily focus on the introspection capability by discovering ! parents and variables that an instance of the type may make ! available */ *************** *** 49,52 **** --- 49,55 ---- #endif + #if !defined(__SHORTINTEGER_HPP) + #include <clfw/ShortInteger.hpp> + #endif using namespace corelinux; *************** *** 64,67 **** --- 67,72 ---- void dumpMetaType( FrameworkEntityPtr ); + void dumpInstanceMembers( MetaTypeCptr ); + void dumpParents( MetaTypeCptr ); // *************** *** 94,119 **** dumpMetaType( aFrameworkEntity ); - // ! // Now we sweeten the pot with a number fetch and show off the class ! // factory stuff // IntegerPtr aInteger = Integer::create(); aInteger->setValue(8); dumpMetaType( aInteger ); ! cout << "Check metatype hiearchy (is " << ! aInteger->getType()->getMetaTypeName() << " a type of " << ! aFrameworkEntity->getType()->getMetaTypeName() << "?) = "; ! if ( aInteger->getType()->isTypeOf(aFrameworkEntity->getType()) == true ) ! { ! cout << "yes!" << endl; ! } ! else ! { ! cout << "no!" << endl; ! } // --- 99,115 ---- dumpMetaType( aFrameworkEntity ); // ! // Now we sweeten the pot with showing the factory methods // IntegerPtr aInteger = Integer::create(); aInteger->setValue(8); + dumpMetaType( aInteger ); ! ShortIntegerPtr aShort = ShortInteger::create(); ! aShort->setValue(3); ! dumpMetaType( aShort ); // *************** *** 122,125 **** --- 118,122 ---- Integer::destroy( aInteger ); + ShortInteger::destroy( aShort ); // *************** *** 145,151 **** cerr << "Unknown exception." << endl; } - // No line exceeds the 78 column positions (Section 4.6) --| ! return 0; // Single exit point (Section 4.0) } --- 142,147 ---- cerr << "Unknown exception." << endl; } ! return 0; } *************** *** 161,188 **** // Standard stuff // ! cout << endl << "entity address = " << anFEPtr << endl ! << "entity type version = " << aMTPtr->getTypeVersion() << endl ! << "entity instance size = " << aMTPtr->getTypeSize() << endl ! << "entity Instance name = " << aMTPtr->getInstanceTypeName() << endl ! << "entity Meta name = " << aMTPtr->getMetaTypeName() << endl; ! cout << "Compare meta-types with instance type = "; ! if ( anFEPtr->getType()->isType(aMTPtr) == true ) { ! cout << "yes!" << endl; } else { ! cout << "no!" << endl; } ! // ! // Member dump ! // MemberDescriptorCptr * const aMDescs = aMTPtr->getInstanceMembers(); if( aMDescs == NULLPTR ) { --- 157,227 ---- // Standard stuff // + + cout << endl + << "Analyzing class [" << aMTPtr->getInstanceTypeName() + << "] MetaType [" << aMTPtr->getMetaTypeName() << "]" << + endl; + + cout << endl + << "entity address = " << anFEPtr << endl + << "type class version = " << aMTPtr->getTypeVersion() << endl + << "instance size = " << aMTPtr->getTypeSize() << + endl; ! // ! // Parent Dump ! // ! dumpParents( aMTPtr ); ! // ! // Data Member dump ! // ! ! dumpInstanceMembers( aMTPtr ); ! } ! ! // ! // Parent information ! // ! ! void dumpParents( MetaTypeCptr aMTPtr ) ! { ! MetaTypeCptr * const parents = aMTPtr->getParentTypes(); ! ! cout << endl << "MetaType Parent List : " << endl; ! if( parents == NULLPTR ) { ! cout << "Internal class error for parents : " << ! aMTPtr->getInstanceTypeName() << endl; } else { ! if( parents[0] != NULLPTR ) ! { ! for( int x = 0; parents[x] != NULLPTR; ++x ) ! { ! cout ! << "\tClass = " << parents[x]->getInstanceTypeName() << endl ! << "\tMetaType = " << parents[x]->getMetaTypeName() << endl; ! } ! } ! else ! { ! cout << "\tType is root" << endl; ! } } ! } ! ! // ! // Data member information ! // + void dumpInstanceMembers( MetaTypeCptr aMTPtr ) + { MemberDescriptorCptr * const aMDescs = aMTPtr->getInstanceMembers(); + cout << endl << "Instance Data Member List : " << endl; if( aMDescs == NULLPTR ) { *************** *** 194,212 **** if( aMDescs[0] != NULLPTR ) { - void *pv(NULLPTR); - int val(5); - for( int x = 0; aMDescs[x] != NULLPTR; ++x ) { ! cout << "Var name = " << aMDescs[x]->theTypeVariableName << endl; ! cout << "Var type = " << aMDescs[x]->theTypeName << endl; ! cout << "Var size = " << aMDescs[x]->theSizeInBytes << endl; if( aMDescs[x]->theGetter != NULLPTR ) { ! pv = (*aMDescs[x]->theGetter)(anFEPtr); ! if( pv != NULLPTR ) ! { ! cout << "\tPre set = " << *((int *)pv) << endl; ! } } else --- 233,244 ---- if( aMDescs[0] != NULLPTR ) { for( int x = 0; aMDescs[x] != NULLPTR; ++x ) { ! cout << "\tVar name = " << aMDescs[x]->theTypeVariableName << endl; ! cout << "\tVar type = " << aMDescs[x]->theTypeName << endl; ! cout << "\tVar size = " << aMDescs[x]->theSizeInBytes << endl; if( aMDescs[x]->theGetter != NULLPTR ) { ! cout << "\tHas getter " << endl; } else *************** *** 216,220 **** if( aMDescs[x]->theSetter != NULLPTR ) { ! (*aMDescs[x]->theSetter)(anFEPtr,&val); } else --- 248,252 ---- if( aMDescs[x]->theSetter != NULLPTR ) { ! cout << "\tHas setter " << endl; } else *************** *** 222,242 **** ; // do nothing } - if( aMDescs[x]->theGetter != NULLPTR ) - { - pv = (*aMDescs[x]->theGetter)(anFEPtr); - if( pv != NULLPTR ) - { - cout << "\tPost set = " << *((int *)pv) << endl; - } - } - else - { - ; // d nothing - } } } else { ! ; // do nothing } } --- 254,262 ---- ; // do nothing } } } else { ! cout << "\tNo data members" << endl; } } *************** *** 280,283 **** --- 300,307 ---- cerr << endl; } + + // + // Default exception handler + // void handleException( ExceptionCref aExcp ) |
|
From: Frank V. C. <fr...@us...> - 2000-10-16 03:05:50
|
Update of /cvsroot/corelinux/clfw/src/libs/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv1892 Modified Files: Integer.cpp Makefile.am Added Files: ShortInteger.cpp Log Message: 116736 ShortInteger ***** Error reading new file: (2, 'No such file or directory') Index: Integer.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/Integer.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Integer.cpp 2000/10/14 11:41:46 1.1 --- Integer.cpp 2000/10/16 03:05:47 1.2 *************** *** 26,31 **** #endif ! #if !defined(__REALNUMBER_HPP) ! #include <RealNumber.hpp> #endif --- 26,31 ---- #endif ! #if !defined(__NUMBER_HPP) ! #include <Number.hpp> #endif *************** *** 50,54 **** OPEN_METATYPE_PARENTS( Integer ) ! DEFINE_METATYPE_PARENT( RealNumber ) CLOSE_METATYPE_PARENT; --- 50,54 ---- OPEN_METATYPE_PARENTS( Integer ) ! DEFINE_METATYPE_PARENT( Number ) CLOSE_METATYPE_PARENT; Index: Makefile.am =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/Makefile.am,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** Makefile.am 2000/10/14 11:49:34 1.6 --- Makefile.am 2000/10/16 03:05:47 1.7 *************** *** 18,22 **** Number.cpp \ RealNumber.cpp \ ! Integer.cpp LIBS = --- 18,23 ---- Number.cpp \ RealNumber.cpp \ ! Integer.cpp \ ! ShortInteger.cpp LIBS = |
|
From: Frank V. C. <fr...@us...> - 2000-10-16 03:05:10
|
Update of /cvsroot/corelinux/clfw/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv1483 Modified Files: Makefile.am MetaType.hpp Added Files: ShortInteger.hpp Log Message: 116736 ShortInteger ***** Error reading new file: (2, 'No such file or directory') Index: Makefile.am =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw/Makefile.am,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** Makefile.am 2000/10/14 11:49:33 1.8 --- Makefile.am 2000/10/16 03:05:07 1.9 *************** *** 20,23 **** --- 20,24 ---- RealNumber.hpp \ Integer.hpp \ + ShortInteger.hpp \ Makefile.am Index: MetaType.hpp =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw/MetaType.hpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** MetaType.hpp 2000/10/09 12:40:11 1.11 --- MetaType.hpp 2000/10/16 03:05:07 1.12 *************** *** 107,112 **** } - - typedef void * (*PfnGet)( FrameworkEntityPtr ); typedef void (*PfnSet)( FrameworkEntityPtr, VoidPtr ); --- 107,110 ---- *************** *** 124,137 **** DECLARE_TYPE(struct _InstanceMemberDescriptor, MemberDescriptor ); ! /*! def DECLARE_INSTANCEDATA( type, name ) \brief Declare data members that object instances expose by generating accessors and mutators \arg type : the member data type ! \arg type : the member instance variable name */ #define DECLARE_INSTANCEDATA( type, dataName ) \ public: \ ! static MemberDescriptor the##dataName##Descriptor; \ type get##dataName( void ) const \ { \ --- 122,145 ---- DECLARE_TYPE(struct _InstanceMemberDescriptor, MemberDescriptor ); ! #define _DECLARE_INSTANCEDATA_STATICS(dataName) \ ! public: \ ! static MemberDescriptor the##dataName##Descriptor; \ ! static void *get##dataName##AsVPtr( FrameworkEntityPtr ); \ ! static void set##dataName##AsVPtr \ ! ( \ ! FrameworkEntityPtr , \ ! VoidPtr \ ! ); \ ! ! /*! def DECLARE_INSTANCEDATA( type, dataName ) \brief Declare data members that object instances expose by generating accessors and mutators \arg type : the member data type ! \arg dataName : the member instance variable name */ #define DECLARE_INSTANCEDATA( type, dataName ) \ public: \ ! _DECLARE_INSTANCEDATA_STATICS(dataName) \ type get##dataName( void ) const \ { \ *************** *** 150,157 **** return (VoidPtr)get##dataName##AsPointer(); \ } \ - static void *get##dataName##AsVPtr \ - ( \ - FrameworkEntityPtr \ - ); \ /** \ Mutators \ --- 158,161 ---- *************** *** 169,179 **** the##dataName = *((type *)aType); \ } \ - static void set##dataName##AsVPtr \ - ( \ - FrameworkEntityPtr , \ - VoidPtr \ - ); \ private: \ ! type the##dataName /*! --- 173,226 ---- the##dataName = *((type *)aType); \ } \ private: \ ! type the##dataName ! ! /*! def DECLARE_INSTANCEDATA_FROMBASE( type, dataName, baseType, baseClass ) ! \brief Declare data members that object instances expose by ! generating accessors and mutators ! \arg type : the member data type ! \arg dataName : the member instance variable name ! \arg baseType : the base member variable type for coercion ! \arg baseClass : the base class ! */ ! ! #define DECLARE_INSTANCEDATA_FROMBASE( type, dataName, baseType, baseClass ) \ ! public: \ ! _DECLARE_INSTANCEDATA_STATICS(dataName) \ ! type get##dataName( void ) const \ ! { \ ! return (type) baseClass::get##dataName(); \ ! } \ ! const type & get##dataName##AsReference( void ) const \ ! { \ ! return (const type &) baseClass::get##dataName##AsReference(); \ ! } \ ! const type * get##dataName##AsPointer( void ) const \ ! { \ ! return (const type *)baseClass::get##dataName##AsPointer(); \ ! } \ ! void * get##dataName##AsVoidPtr( void ) const \ ! { \ ! return baseClass::get##dataName##AsVoidPtr(); \ ! } \ ! /** \ ! Mutators \ ! */ \ ! void set##dataName( const type &aType ) \ ! { \ ! baseType btr = (baseType) aType; \ ! baseClass::set##dataName(btr); \ ! } \ ! void set##dataName##FromPointer( type *aType ) \ ! { \ ! baseType btr = (baseType) *aType; \ ! baseClass::set##dataName##FromPointer(&btr); \ ! } \ ! void set##dataName##FromVPtr( void *aType ) \ ! { \ ! baseType btr = (baseType) *((type *) aType); \ ! baseClass::set##dataName##FromVPtr((VoidPtr)&btr); \ ! } \ ! /*! |
|
From: Frank V. C. <fr...@us...> - 2000-10-16 00:32:50
|
Update of /cvsroot/corelinux/htdocs In directory slayer.i.sourceforge.net:/tmp/cvs-serv1996 Modified Files: download.php news.php Log Message: Released clfw 0.2.1 Index: download.php =================================================================== RCS file: /cvsroot/corelinux/htdocs/download.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** download.php 2000/10/07 17:35:28 1.9 --- download.php 2000/10/16 00:32:47 1.10 *************** *** 8,12 **** $cl_release_rpm=1; $cl_release_deb=1; ! $clfw_release="0.2.0"; $clfwdeb_release="0.1.0"; $clfw_release_rpm=1; --- 8,12 ---- $cl_release_rpm=1; $cl_release_deb=1; ! $clfw_release="0.2.1"; $clfwdeb_release="0.1.0"; $clfw_release_rpm=1; Index: news.php =================================================================== RCS file: /cvsroot/corelinux/htdocs/news.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -r1.27 -r1.28 *** news.php 2000/10/07 20:52:12 1.27 --- news.php 2000/10/16 00:32:47 1.28 *************** *** 41,44 **** --- 41,51 ---- <? + add_breaking_news("10/15/2000", + "libclfw++ 0.2.1 released!", + "New Library Release", + "rel-0-2-1", + "Added some fundemental types (RealNumber, Integer) with new MetaType macros which create property (data memmber) descriptors + and operations for the class individual"); + add_breaking_news("10/07/2000", "CoreLinux++ 0.4.29: released!", *************** *** 343,346 **** --- 350,354 ---- echo "<table compact width=100% border=0>\n"; + add_small_news("10/15","rel-0-2-1","libclfw++ 0.2.1"); add_small_news("10/07","rel-0-4-29","libcorelinux++ 0.4.29"); add_small_news("10/05","rel-0.2.0","libclfw++ 0.2.0"); |
|
From: Frank V. C. <fr...@us...> - 2000-10-15 12:38:36
|
Update of /cvsroot/corelinux/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv18101 Modified Files: clfw.spec.in Log Message: Fixed rpm build defect Index: clfw.spec.in =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw.spec.in,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** clfw.spec.in 2000/10/14 13:24:42 1.6 --- clfw.spec.in 2000/10/15 12:38:33 1.7 *************** *** 32,36 **** Group: Development/Libraries Summary: Header files, static library and manual pages for libclfw ! Requires: libclfw = %{version}, libcl++, libuuid %description dev --- 32,36 ---- Group: Development/Libraries Summary: Header files, static library and manual pages for libclfw ! Requires: libclfw = %{version} %description dev *************** *** 83,87 **** %build ./configure ! make -j 2 # create the reference manual --- 83,87 ---- %build ./configure ! make -j 1 # create the reference manual *************** *** 135,139 **** %{_libdir}/%{lib_name}.a %{_libdir}/%{lib_name}.la ! %{_mandir}/man3/*.3 %doc debian/README.Redhat --- 135,139 ---- %{_libdir}/%{lib_name}.a %{_libdir}/%{lib_name}.la ! %{_mandir}/man3/*.3.gz %doc debian/README.Redhat |
|
From: Frank V. C. <fr...@us...> - 2000-10-14 13:24:45
|
Update of /cvsroot/corelinux/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv30334 Modified Files: clfw.spec.in Log Message: Updated spec file Index: clfw.spec.in =================================================================== RCS file: /cvsroot/corelinux/clfw/clfw.spec.in,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** clfw.spec.in 2000/08/31 02:18:51 1.5 --- clfw.spec.in 2000/10/14 13:24:42 1.6 *************** *** 17,20 **** --- 17,21 ---- License: LGPL BuildRoot: /var/tmp/%{name}-buildroot + Requires: libcl++, libuuid %description *************** *** 31,35 **** Group: Development/Libraries Summary: Header files, static library and manual pages for libclfw ! Requires: libclfw = %{version} %description dev --- 32,36 ---- Group: Development/Libraries Summary: Header files, static library and manual pages for libclfw ! Requires: libclfw = %{version}, libcl++, libuuid %description dev |
|
From: Frank V. C. <fr...@us...> - 2000-10-14 11:49:37
|
Update of /cvsroot/corelinux/clfw/src/libs/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv10085/src/libs/clfw Modified Files: FrameworkEntity.cpp Makefile.am Number.cpp Log Message: 116227 Release 0.2.1 Index: FrameworkEntity.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/FrameworkEntity.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** FrameworkEntity.cpp 2000/10/04 05:20:26 1.4 --- FrameworkEntity.cpp 2000/10/14 11:49:34 1.5 *************** *** 46,49 **** --- 46,53 ---- CLOSE_METATYPE_PARENT; + //! because this is a base entity, there are no members either + OPEN_INSTANCEDATA( FrameworkEntity ) + CLOSE_INSTANCEDATA; + //! because we must define MetaTypeRoot we use DEFINE_METATYPE1 DEFINE_METATYPE1( FrameworkEntity, MetaTypeRoot, metaIdentifier, version ); Index: Makefile.am =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/Makefile.am,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -r1.5 -r1.6 *** Makefile.am 2000/10/04 05:20:26 1.5 --- Makefile.am 2000/10/14 11:49:34 1.6 *************** *** 16,20 **** UniversalIdentifier.cpp \ FrameworkEntity.cpp \ ! Number.cpp LIBS = --- 16,22 ---- UniversalIdentifier.cpp \ FrameworkEntity.cpp \ ! Number.cpp \ ! RealNumber.cpp \ ! Integer.cpp LIBS = Index: Number.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/Number.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** Number.cpp 2000/10/04 05:20:26 1.1 --- Number.cpp 2000/10/14 11:49:34 1.2 *************** *** 44,52 **** --- 44,61 ---- //! ahh, our first foray into ontologies + OPEN_METATYPE_PARENTS( Number ) DEFINE_METATYPE_PARENT( FrameworkEntity ) CLOSE_METATYPE_PARENT; + //! because this is a base entity, there are no members either + + // DEFINE_INSTANCEDATA_DESCRIPTOR(Number,int,Value); + + OPEN_INSTANCEDATA( Number ) + CLOSE_INSTANCEDATA; + //! we use the standard macro for MetaTypeNumber autonaming + DEFINE_METATYPE( Number, metaIdentifier, version ); |
|
From: Frank V. C. <fr...@us...> - 2000-10-14 11:49:37
|
Update of /cvsroot/corelinux/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv10085 Modified Files: ChangeLog README Log Message: 116227 Release 0.2.1 Index: ChangeLog =================================================================== RCS file: /cvsroot/corelinux/clfw/ChangeLog,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** ChangeLog 2000/10/04 10:56:48 1.4 --- ChangeLog 2000/10/14 11:49:33 1.5 *************** *** 1,2 **** --- 1,8 ---- + 2000-10-14 Frank V. Castellucci <fr...@ca...> + + * Feature 116599 - Implement RealNumber Type + * Feature 116600 - Implement Integer Type + * Defect 116868 - Fixed isTypeOf bug in MetaType.cpp + 2000-10-04 Frank V. Castellucci <fr...@ca...> Index: README =================================================================== RCS file: /cvsroot/corelinux/clfw/README,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** README 2000/10/05 21:11:29 1.3 --- README 2000/10/14 11:49:33 1.4 *************** *** 1,4 **** ==================================================== ! CoreLinux++ Framework Source Distribution Beta 0.2.0 ==================================================== --- 1,4 ---- ==================================================== ! CoreLinux++ Framework Source Distribution Beta 0.2.1 ==================================================== *************** *** 26,30 **** Requirements ------------ ! libclfw-0.2.0 require libcorelinux 0.4.28. Documentation --- 26,30 ---- Requirements ------------ ! libclfw-0.2.1 require libcorelinux 0.4.29. Documentation |
|
From: Frank V. C. <fr...@us...> - 2000-10-14 11:49:37
|
Update of /cvsroot/corelinux/clfw/src/testdrivers/exf1 In directory slayer.i.sourceforge.net:/tmp/cvs-serv10085/src/testdrivers/exf1 Modified Files: examp1.cpp Log Message: 116227 Release 0.2.1 Index: examp1.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/testdrivers/exf1/examp1.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -r1.6 -r1.7 *** examp1.cpp 2000/10/04 05:20:26 1.6 --- examp1.cpp 2000/10/14 11:49:34 1.7 *************** *** 45,50 **** #endif ! #if !defined(__NUMBER_HPP) ! #include <clfw/Number.hpp> #endif --- 45,50 ---- #endif ! #if !defined(__INTEGER_HPP) ! #include <clfw/Integer.hpp> #endif *************** *** 63,66 **** --- 63,68 ---- int main( void ); + void dumpMetaType( FrameworkEntityPtr ); + // // Assertion and Exception handlers *************** *** 70,75 **** - - int main( void ) { --- 72,75 ---- *************** *** 89,131 **** // First we play around with the root entity // - const MetaType *aMTF= FrameworkEntity::getTypeDescriptor(); FrameworkEntityPtr aFrameworkEntity = new FrameworkEntity; ! cout << endl << "Framework entity = " << aFrameworkEntity << endl ! << "Framework entity type version = " << aFrameworkEntity->getType()->getTypeVersion() << endl ! << "Framework entity instance size = " << aFrameworkEntity->getType()->getTypeSize() << endl ! << "Framework entity Instance name = " << aFrameworkEntity->getType()->getInstanceTypeName() << endl ! << "Framework entity Meta name = " << aFrameworkEntity->getType()->getMetaTypeName() << endl; - cout << "Compare meta-types (is aFrameworkEntity a FrameworkEntity type?) = "; - if ( aFrameworkEntity->getType()->isType(aMTF) == true ) - { - cout << "yes!" << endl; - } - else - { - cout << "no!" << endl; - } - // // Now we sweeten the pot with a number fetch and show off the class // factory stuff // - - const MetaType *aMTN= Number::getTypeDescriptor(); - - NumberPtr aNumber = Number::create(); ! cout << endl << "Number entity = " << aNumber << endl ! << "Number entity type version = " << aNumber->getType()->getTypeVersion() << endl ! << "Number entity instance size = " << aNumber->getType()->getTypeSize() << endl ! << "Number entity Instance name = " << aNumber->getType()->getInstanceTypeName() << endl ! << "Number entity Meta name = " << aNumber->getType()->getMetaTypeName() << endl; ! cout << "Compare meta-types (is aNumber a FrameworkEntity type?) = "; ! ! if ( aNumber->getType()->isType(aMTF) == true ) { cout << "yes!" << endl; --- 89,112 ---- // First we play around with the root entity // FrameworkEntityPtr aFrameworkEntity = new FrameworkEntity; ! dumpMetaType( aFrameworkEntity ); // // Now we sweeten the pot with a number fetch and show off the class // factory stuff // ! IntegerPtr aInteger = Integer::create(); ! aInteger->setValue(8); ! dumpMetaType( aInteger ); ! ! cout << "Check metatype hiearchy (is " << ! aInteger->getType()->getMetaTypeName() << " a type of " << ! aFrameworkEntity->getType()->getMetaTypeName() << "?) = "; ! if ( aInteger->getType()->isTypeOf(aFrameworkEntity->getType()) == true ) { cout << "yes!" << endl; *************** *** 136,151 **** } ! cout << "Check metatype hiearchy (is MetaTypeNumber a type of MetaTypeRoot?) = "; ! if ( aMTN->isTypeOf(aMTF) == true ) ! { ! cout << "yes!" << endl; ! } ! else ! { ! cout << "no!" << endl; ! } ! Number::destroy( aNumber ); delete aFrameworkEntity; --- 117,129 ---- } ! // ! // Call destroy ! // ! Integer::destroy( aInteger ); ! // ! // Call indirect destroy ! // delete aFrameworkEntity; *************** *** 170,173 **** --- 148,245 ---- return 0; // Single exit point (Section 4.0) + } + + // + // Dump info on types + // + + void dumpMetaType( FrameworkEntityPtr anFEPtr ) + { + const MetaTypeCptr aMTPtr( anFEPtr->getType() ); + + // + // Standard stuff + // + + cout << endl << "entity address = " << anFEPtr << endl + << "entity type version = " << aMTPtr->getTypeVersion() << endl + << "entity instance size = " << aMTPtr->getTypeSize() << endl + << "entity Instance name = " << aMTPtr->getInstanceTypeName() << endl + << "entity Meta name = " << aMTPtr->getMetaTypeName() << endl; + + cout << "Compare meta-types with instance type = "; + + if ( anFEPtr->getType()->isType(aMTPtr) == true ) + { + cout << "yes!" << endl; + } + else + { + cout << "no!" << endl; + } + + // + // Member dump + // + + MemberDescriptorCptr * const aMDescs = aMTPtr->getInstanceMembers(); + + if( aMDescs == NULLPTR ) + { + cout << "Internal class error for members : " << + aMTPtr->getInstanceTypeName() << endl; + } + else + { + if( aMDescs[0] != NULLPTR ) + { + void *pv(NULLPTR); + int val(5); + + for( int x = 0; aMDescs[x] != NULLPTR; ++x ) + { + cout << "Var name = " << aMDescs[x]->theTypeVariableName << endl; + cout << "Var type = " << aMDescs[x]->theTypeName << endl; + cout << "Var size = " << aMDescs[x]->theSizeInBytes << endl; + if( aMDescs[x]->theGetter != NULLPTR ) + { + pv = (*aMDescs[x]->theGetter)(anFEPtr); + if( pv != NULLPTR ) + { + cout << "\tPre set = " << *((int *)pv) << endl; + } + } + else + { + ; // do nothing + } + if( aMDescs[x]->theSetter != NULLPTR ) + { + (*aMDescs[x]->theSetter)(anFEPtr,&val); + } + else + { + ; // do nothing + } + if( aMDescs[x]->theGetter != NULLPTR ) + { + pv = (*aMDescs[x]->theGetter)(anFEPtr); + if( pv != NULLPTR ) + { + cout << "\tPost set = " << *((int *)pv) << endl; + } + } + else + { + ; // d nothing + } + } + } + else + { + ; // do nothing + } + } + } |