Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

sglUserData.hpp

00001 /*****************************************************************************
00002  * SGL: A Scene Graph Library
00003  *
00004  * Copyright (C) 1997-2001  Scott McMillan   All Rights Reserved.
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public
00017  * License along with this library; if not, write to the Free
00018  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  *****************************************************************************
00020  *     File: sglUserData.hpp
00021  *  Created: 7 August 1999
00022  *  Summary: Base class from which application user data should be subclassed
00023  *           so that dynamic_cast operators can be safely performed.
00024  *****************************************************************************/
00025 
00026 #ifndef __SGL_USERDATA_HPP
00027 #define __SGL_USERDATA_HPP
00028 
00029 #include <sgl.h>
00030 
00035 class SGL_DLL_API sglUserData
00036 {
00037 public:
00039    sglUserData() {}
00041    virtual ~sglUserData() {}
00042 
00048    virtual void printInfo(ostream &, const char *) const {}
00049 
00050 private:
00051    sglUserData(const sglUserData &); // not implemented
00052    sglUserData& operator=(const sglUserData &); // not implemented
00053 };
00054 //----------------------------------------------------------------------------
00055 
00056 inline ostream& operator<<(ostream& ostrm, const sglUserData& object)
00057 {
00058    object.printInfo(ostrm, " ");
00059    return ostrm;
00060 }
00061 
00062 #endif

Generated at Mon Jul 1 18:00:06 2002 for SGL by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001