|
From: Frank V. C. <fr...@us...> - 2000-11-10 04:42:51
|
Update of /cvsroot/corelinux/clfw/src/libs/clfw In directory slayer.i.sourceforge.net:/tmp/cvs-serv14166/src/libs/clfw Modified Files: Makefile.am MetaType.cpp Added Files: Ontology.cpp Log Message: 116737 Ontology work --- NEW FILE --- /* CoreLinux++ Copyright (C) 1999,2000 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. */ #if !defined(__CLFWCOMMON_HPP) #include <ClfwCommon.hpp> #endif #if !defined(__ONTOLOGY_HPP) #include <Ontology.hpp> #endif extern "C" { #include <stdio.h> } namespace corelinux { Ontology::Ontology( void ) { } Ontology::Ontology( OntologyCref ) { } OntologyRef Ontology::operator=( OntologyCref ) { return ( *this ); } bool Ontology::operator==( OntologyCref ) const { return true; } void Ontology::addType( MetaTypeCptr aMetaType ) { printf("Have a type %s\n",aMetaType->getMetaTypeName()); } } Index: Makefile.am =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/Makefile.am,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -r1.13 -r1.14 *** Makefile.am 2000/10/25 22:31:23 1.13 --- Makefile.am 2000/11/10 04:42:48 1.14 *************** *** 29,32 **** --- 29,33 ---- ShortInteger.cpp \ UnsignedInteger.cpp \ + Ontology.cpp \ UnsignedShortInteger.cpp Index: MetaType.cpp =================================================================== RCS file: /cvsroot/corelinux/clfw/src/libs/clfw/MetaType.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -r1.12 -r1.13 *** MetaType.cpp 2000/11/03 13:29:44 1.12 --- MetaType.cpp 2000/11/10 04:42:48 1.13 *************** *** 34,37 **** --- 34,41 ---- #endif + #if !defined(__ONTOLOGY_HPP) + #include <Ontology.hpp> + #endif + #include <cstring> *************** *** 66,70 **** theFactoryAllocator( NULLPTR ) { ! ; // do nothing } --- 70,74 ---- theFactoryAllocator( NULLPTR ) { ! Ontology::addType( this ); } *************** *** 96,100 **** theFactoryAllocator( aAllocation ) { ! ; // do nothing } --- 100,104 ---- theFactoryAllocator( aAllocation ) { ! Ontology::addType( this ); } |