1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2002 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 //---------------------------------------------------------------------------
41 //---------------------------------------------------------------------------
46 #include "OSGConfig.h"
48 #include "OSGOpenFlightSceneFileType.h"
50 #include "OSGOFDatabase.h"
55 /*! \class OSG::OSGSceneFileType
56 \ingroup GrpSystemFileIO
60 /***************************************************************************\
62 \***************************************************************************/
64 /***************************************************************************\
66 \***************************************************************************/
68 const Char8
*OpenFlightSceneFileType::_suffixA
[] = { "flt" };
70 OpenFlightSceneFileType
OpenFlightSceneFileType::_the(_suffixA
,
76 /***************************************************************************\
78 \***************************************************************************/
80 /*-------------------------------------------------------------------------*\
82 \*-------------------------------------------------------------------------*/
84 OpenFlightSceneFileType
&OpenFlightSceneFileType::the(void)
89 /*-------------------------------------------------------------------------*\
91 \*-------------------------------------------------------------------------*/
93 /*-------------------------------------------------------------------------*\
95 \*-------------------------------------------------------------------------*/
97 /***************************************************************************\
99 \***************************************************************************/
101 /*-------------------------------------------------------------------------*\
103 \*-------------------------------------------------------------------------*/
105 /*------------------------------ access -----------------------------------*/
107 const Char8
*OpenFlightSceneFileType::getName(void) const
109 return "OpenFlight file format";
113 NodeTransitPtr
OpenFlightSceneFileType::read( std::istream
&is
,
115 Resolver resolver
) const
117 NodeTransitPtr
returnValue(NULL
);
120 bool rc
= db
.read(is
);
124 returnValue
= db
.convert();
133 /*---------------------------- properties ---------------------------------*/
135 /*-------------------------- your_category---------------------------------*/
137 /*-------------------------- assignment -----------------------------------*/
139 /*-------------------------- comparison -----------------------------------*/
142 /*-------------------------------------------------------------------------*\
144 \*-------------------------------------------------------------------------*/
147 /** \brief Constructor
150 OpenFlightSceneFileType::OpenFlightSceneFileType(const char *suffixArray
[],
151 UInt16 suffixByteCount
,
153 UInt32 overridePriority
,
155 Inherited(suffixArray
,
165 /** \brief Destructor
168 OpenFlightSceneFileType::~OpenFlightSceneFileType(void)