| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
char *FCTemplate_cpp[]={ |
|---|
| 11 |
"/*---------------------------------------------------------------------------*\\", |
|---|
| 12 |
" * OpenSG *", |
|---|
| 13 |
" * *", |
|---|
| 14 |
" * *", |
|---|
| 15 |
" * Copyright (C) 2000-2006 by the OpenSG Forum *", |
|---|
| 16 |
" * *", |
|---|
| 17 |
" * www.opensg.org *", |
|---|
| 18 |
" * *", |
|---|
| 19 |
" * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *", |
|---|
| 20 |
" * *", |
|---|
| 21 |
"\\*---------------------------------------------------------------------------*/", |
|---|
| 22 |
"/*---------------------------------------------------------------------------*\\", |
|---|
| 23 |
" * License *", |
|---|
| 24 |
" * *", |
|---|
| 25 |
" * This library is free software; you can redistribute it and/or modify it *", |
|---|
| 26 |
" * under the terms of the GNU Library General Public License as published *", |
|---|
| 27 |
" * by the Free Software Foundation, version 2. *", |
|---|
| 28 |
" * *", |
|---|
| 29 |
" * This library is distributed in the hope that it will be useful, but *", |
|---|
| 30 |
" * WITHOUT ANY WARRANTY; without even the implied warranty of *", |
|---|
| 31 |
" * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *", |
|---|
| 32 |
" * Library General Public License for more details. *", |
|---|
| 33 |
" * *", |
|---|
| 34 |
" * You should have received a copy of the GNU Library General Public *", |
|---|
| 35 |
" * License along with this library; if not, write to the Free Software *", |
|---|
| 36 |
" * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *", |
|---|
| 37 |
" * *", |
|---|
| 38 |
"\\*---------------------------------------------------------------------------*/", |
|---|
| 39 |
"/*---------------------------------------------------------------------------*\\", |
|---|
| 40 |
" * Changes *", |
|---|
| 41 |
" * *", |
|---|
| 42 |
" * *", |
|---|
| 43 |
" * *", |
|---|
| 44 |
" * *", |
|---|
| 45 |
" * *", |
|---|
| 46 |
" * *", |
|---|
| 47 |
"\\*---------------------------------------------------------------------------*/", |
|---|
| 48 |
"", |
|---|
| 49 |
"//---------------------------------------------------------------------------", |
|---|
| 50 |
"// Includes", |
|---|
| 51 |
"//---------------------------------------------------------------------------", |
|---|
| 52 |
"", |
|---|
| 53 |
"#include <stdlib.h>", |
|---|
| 54 |
"#include <stdio.h>", |
|---|
| 55 |
"", |
|---|
| 56 |
"@@if !SystemComponent", |
|---|
| 57 |
"@@if Library", |
|---|
| 58 |
"#define OSG_COMPILE@!LIBNAME!@LIB", |
|---|
| 59 |
"", |
|---|
| 60 |
"@@endif", |
|---|
| 61 |
"@@endif", |
|---|
| 62 |
"#include <@!HeaderPrefix!@OSGConfig.h>", |
|---|
| 63 |
"", |
|---|
| 64 |
"#include \"OSG@!Classname!@.h\"", |
|---|
| 65 |
"", |
|---|
| 66 |
"OSG_BEGIN_NAMESPACE", |
|---|
| 67 |
"", |
|---|
| 68 |
"// Documentation for this class is emited in the", |
|---|
| 69 |
"// OSG@!Classname!@Base.cpp file.", |
|---|
| 70 |
"// To modify it, please change the .fcd file (OSG@!Classname!@.fcd) and", |
|---|
| 71 |
"// regenerate the base file.", |
|---|
| 72 |
"", |
|---|
| 73 |
"/***************************************************************************\\", |
|---|
| 74 |
" * Class variables *", |
|---|
| 75 |
"\\***************************************************************************/", |
|---|
| 76 |
"", |
|---|
| 77 |
"/***************************************************************************\\", |
|---|
| 78 |
" * Class methods *", |
|---|
| 79 |
"\\***************************************************************************/", |
|---|
| 80 |
"", |
|---|
| 81 |
"void @!Classname!@::initMethod(InitPhase ePhase)", |
|---|
| 82 |
"{", |
|---|
| 83 |
" Inherited::initMethod(ePhase);", |
|---|
| 84 |
"", |
|---|
| 85 |
" if(ePhase == TypeObject::SystemPost)", |
|---|
| 86 |
" {", |
|---|
| 87 |
" }", |
|---|
| 88 |
"}", |
|---|
| 89 |
"", |
|---|
| 90 |
"", |
|---|
| 91 |
"/***************************************************************************\\", |
|---|
| 92 |
" * Instance methods *", |
|---|
| 93 |
"\\***************************************************************************/", |
|---|
| 94 |
"", |
|---|
| 95 |
"/*-------------------------------------------------------------------------*\\", |
|---|
| 96 |
" - private -", |
|---|
| 97 |
"\\*-------------------------------------------------------------------------*/", |
|---|
| 98 |
"", |
|---|
| 99 |
"/*----------------------- constructors & destructors ----------------------*/", |
|---|
| 100 |
"", |
|---|
| 101 |
"@!Classname!@::@!Classname!@(void) :", |
|---|
| 102 |
" Inherited()", |
|---|
| 103 |
"{", |
|---|
| 104 |
"}", |
|---|
| 105 |
"", |
|---|
| 106 |
"@!Classname!@::@!Classname!@(const @!Classname!@ &source) :", |
|---|
| 107 |
" Inherited(source)", |
|---|
| 108 |
"{", |
|---|
| 109 |
"}", |
|---|
| 110 |
"", |
|---|
| 111 |
"@!Classname!@::~@!Classname!@(void)", |
|---|
| 112 |
"{", |
|---|
| 113 |
"}", |
|---|
| 114 |
"", |
|---|
| 115 |
"/*----------------------------- class specific ----------------------------*/", |
|---|
| 116 |
"", |
|---|
| 117 |
"void @!Classname!@::changed(ConstFieldMaskArg whichField, UInt32 origin)", |
|---|
| 118 |
"{", |
|---|
| 119 |
" Inherited::changed(whichField, origin);", |
|---|
| 120 |
"}", |
|---|
| 121 |
"", |
|---|
| 122 |
"void @!Classname!@::dump( UInt32 , ", |
|---|
| 123 |
" const BitVector ) const", |
|---|
| 124 |
"{", |
|---|
| 125 |
" SLOG << \"Dump @!Classname!@ NI\" << std::endl;", |
|---|
| 126 |
"}", |
|---|
| 127 |
"", |
|---|
| 128 |
"", |
|---|
| 129 |
"/*------------------------------------------------------------------------*/", |
|---|
| 130 |
"/* cvs id's */", |
|---|
| 131 |
"", |
|---|
| 132 |
"#ifdef OSG_SGI_CC", |
|---|
| 133 |
"#pragma set woff 1174", |
|---|
| 134 |
"#endif", |
|---|
| 135 |
"", |
|---|
| 136 |
"#ifdef OSG_LINUX_ICC", |
|---|
| 137 |
"#pragma warning( disable : 177 )", |
|---|
| 138 |
"#endif", |
|---|
| 139 |
"", |
|---|
| 140 |
"namespace", |
|---|
| 141 |
"{", |
|---|
| 142 |
" static Char8 cvsid_cpp [] = \"@(#)$Id$\";", |
|---|
| 143 |
" static Char8 cvsid_hpp [] = OSG@!CLASSNAME!@BASE_HEADER_CVSID;", |
|---|
| 144 |
" static Char8 cvsid_inl [] = OSG@!CLASSNAME!@BASE_INLINE_CVSID;", |
|---|
| 145 |
"", |
|---|
| 146 |
" static Char8 cvsid_fields_hpp[] = OSG@!CLASSNAME!@FIELDS_HEADER_CVSID;", |
|---|
| 147 |
"}", |
|---|
| 148 |
"", |
|---|
| 149 |
"#ifdef __sgi", |
|---|
| 150 |
"#pragma reset woff 1174", |
|---|
| 151 |
"#endif", |
|---|
| 152 |
"", |
|---|
| 153 |
"OSG_END_NAMESPACE", |
|---|
| 154 |
NULL}; |
|---|