Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

objctstr.cxx

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 <iostream>
00020 #include "LCore/Object.h"
00021 
00022  /* UNIX:@@:ObjectSTR.cc:@@: */
00023 /* MSDOS:@@:OBJCTSTR.CPP:@@: */
00024 
00025 namespace strmod {
00026 namespace lcore {
00027 
00028 void Object::PrintOn(::std::ostream &os) const
00029 {
00030    if (Object::identifier == GetIdent())
00031       os << "an Object (why someone created just an object is beyond me)";
00032    else {
00033       os << "something derived from Object that hasn't overridden its PrintOn methods\n";
00034       os << "class id is: " << *((const Object *)(&(GetIdent()))) << '\n';
00035    }
00036 }
00037 
00038 } // namespace lcore
00039 } // namespace strmod

Generated on Wed Jan 29 00:32:44 2003 for libNet by doxygen1.3-rc1