fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / FileIO / Collada / OSGColladaFileType.h
blobcdcfc9057f388b769f28115feb79ce2c01ce384d
3 #ifndef _OSGCOLLADAFILETYPE_H_
4 #define _OSGCOLLADAFILETYPE_H_
5 #ifdef __sgi
6 #pragma once
7 #endif
9 #include "OSGConfig.h"
11 #if defined(OSG_WITH_COLLADA) || defined(OSG_DO_DOC)
13 #include "OSGFileIODef.h"
14 #include "OSGSceneFileType.h"
16 OSG_BEGIN_NAMESPACE
18 /*! \ingroup GrpFileIOCollada
19 \ingroup GrpLibOSGFileIO
22 class OSG_FILEIO_DLLMAPPING ColladaFileType : public SceneFileType
24 /*========================== PUBLIC =================================*/
25 public:
26 /*---------------------------------------------------------------------*/
27 /*! \name Types */
28 /*! \{ */
30 typedef SceneFileType Inherited;
31 typedef ColladaFileType Self;
33 /*! \} */
34 /*---------------------------------------------------------------------*/
35 /*! \name Name */
36 /*! \{ */
38 virtual const Char8 *getName(void) const;
40 /*! \} */
41 /*---------------------------------------------------------------------*/
42 /*! \name Read */
43 /*! \{ */
45 virtual NodeTransitPtr
46 read( std::istream &is,
47 const Char8 *fileNameOrExtension,
48 Resolver resolver = NULL) const;
50 /*! \} */
51 /*========================= PROTECTED ===============================*/
52 protected:
53 /*---------------------------------------------------------------------*/
54 /*! \name Constructors/Destructor */
55 /*! \{ */
57 ColladaFileType(const Char8 *suffixArray[],
58 UInt16 suffixByteCount,
59 bool override,
60 UInt32 overridePriority,
61 UInt32 flags);
63 virtual ~ColladaFileType(void);
65 /*! \} */
66 /*---------------------------------------------------------------------*/
68 static const Char8 *_suffixA[];
69 static ColladaFileType _the;
72 OSG_END_NAMESPACE
74 #endif // OSG_WITH_COLLADA
76 #endif // _OSGCOLLADAFILETYPE_H_