00001 /* 00002 * Copyright (C) 1991-9 Eric M. Hopper <hopper@omnifarious.mn.org> 00003 * 00004 * This program is free software; you can redistribute it and/or modify it 00005 * under the terms of the GNU Lesser General Public License as published 00006 * by the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, but 00010 * WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 #include "LCore/Object.h" 00020 00021 /* UNIX:@@:ObjectSTD.cc:@@: */ 00022 /* MSDOS:@@:OBJECTSTD.CPP:@@: */ 00023 00024 namespace strmod { 00025 namespace lcore { 00026 00027 int Object::DoEqual(const Object &b) const 00028 { 00029 if (AreYouA(b.GetIdent())) 00030 return(b.IsEqual(*this)); 00031 else if (b.AreYouA(GetIdent())) 00032 return(IsEqual(b)); 00033 else 00034 return(0); 00035 } 00036 00037 } // namespace lcore 00038 } // namespace strmod
1.3-rc1