Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGAttachmentContainerPtr.cpp

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002  *                                OpenSG                                     *
00003  *                                                                           *
00004  *                                                                           *
00005  *             Copyright (C) 2000-2002 by the OpenSG Forum                   *
00006  *                                                                           *
00007  *                            www.opensg.org                                 *
00008  *                                                                           *
00009  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
00010  *                                                                           *
00011 \*---------------------------------------------------------------------------*/
00012 /*---------------------------------------------------------------------------*\
00013  *                                License                                    *
00014  *                                                                           *
00015  * This library is free software; you can redistribute it and/or modify it   *
00016  * under the terms of the GNU Library General Public License as published    *
00017  * by the Free Software Foundation, version 2.                               *
00018  *                                                                           *
00019  * This library is distributed in the hope that it will be useful, but       *
00020  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00022  * Library General Public License for more details.                          *
00023  *                                                                           *
00024  * You should have received a copy of the GNU Library General Public         *
00025  * License along with this library; if not, write to the Free Software       *
00026  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
00027  *                                                                           *
00028 \*---------------------------------------------------------------------------*/
00029 /*---------------------------------------------------------------------------*\
00030  *                                Changes                                    *
00031  *                                                                           *
00032  *                                                                           *
00033  *                                                                           *
00034  *                                                                           *
00035  *                                                                           *
00036  *                                                                           *
00037 \*---------------------------------------------------------------------------*/
00038 
00039 #include <stdlib.h>
00040 #include <stdio.h>
00041 
00042 #include "OSGConfig.h"
00043 
00044 #include "OSGAttachmentContainerPtr.h"
00045 #include "OSGThread.h"
00046 
00047 OSG_USING_NAMESPACE
00048 
00049 #ifdef OSG_DOC_FILES_IN_MODULE
00050 
00053 #endif
00054 
00055 /*-------------------------------------------------------------------------*/
00056 /*                            Constructors                                 */
00057 
00058 AttachmentContainerPtr::AttachmentContainerPtr(
00059     const AttachmentContainer &source) :
00060 
00061     Inherited(source)
00062 {
00063 }
00064 
00065 AttachmentContainerPtr::AttachmentContainerPtr(
00066     const AttachmentContainer *source) :
00067 
00068     Inherited(source)
00069 {
00070 }
00071 
00072 AttachmentContainerPtr::AttachmentContainerPtr(
00073     const AttachmentContainer *source,
00074     const UInt16               uiSize,
00075     const UInt16               uiParentPos) :
00076 
00077     Inherited(source, uiSize, uiParentPos)
00078 {
00079 }
00080 
00081 /*-------------------------------------------------------------------------*/
00082 /*                               Functions                                 */
00083 
00084 OSG_SYSTEMLIB_DLLMAPPING
00085 std::ostream &OSG::operator <<(      std::ostream            &os,
00086                                const AttachmentContainerPtr  &fc)
00087 {
00088     if(fc == NullFC)
00089     {
00090         os << std::hex << "NodePtr 0x" << &fc << std::dec << ":NullFC";
00091     }
00092     else
00093     {
00094         os << std::hex 
00095            << "NodePtr 0x"
00096            << &fc 
00097            << std::dec
00098            << ":" 
00099            << fc->getType().getName() 
00100            << "Ptr(0x"
00101            << std::hex
00102            << (&(*fc))
00103            << std::dec
00104            << ")";
00105     }
00106 
00107     return os;
00108 }
00109 
00110 
00111 /*-------------------------------------------------------------------------*/
00112 /*                              cvs id's                                   */
00113 
00114 #ifdef __sgi
00115 #pragma set woff 1174
00116 #endif
00117 
00118 #ifdef OSG_LINUX_ICC
00119 #pragma warning( disable : 177 )
00120 #endif
00121 
00122 namespace
00123 {
00124     static Char8 cvsid_cpp[] = "@(#)$Id: $";
00125     static Char8 cvsid_hpp[] = OSGATTACHMENTCONTAINERPTR_HEADER_CVSID;
00126     static Char8 cvsid_inl[] = OSGATTACHMENTCONTAINERPTR_INLINE_CVSID;
00127 }
00128 

Generated on Thu Aug 25 04:01:00 2005 for OpenSG by  doxygen 1.4.3