fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / FileIO / OSB / OSGOSBShaderParameterElement.h
blobd10c574016399c4f34fcab664f4527d3b134c0a9
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2013 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
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. *
18 * *
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. *
23 * *
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. *
27 * *
28 \*---------------------------------------------------------------------------*/
30 #ifndef _OSGOSBSHADERPARAMETERELEMENT_H_
31 #define _OSGOSBSHADERPARAMETERELEMENT_H_
32 #ifdef __sgi
33 #pragma once
34 #endif
36 #include "OSGConfig.h"
37 #include "OSGFileIODef.h"
39 #include "OSGOSBCommonElement.h"
40 #include "OSGBaseSFields.h" // SFString
42 OSG_BEGIN_NAMESPACE
44 /*! \ingroup GrpFileIOOSB
45 \nohierarchy
48 class OSG_FILEIO_DLLMAPPING OSBShaderParameterElement : public OSBCommonElement
50 /*========================== PUBLIC =================================*/
51 public:
52 /*---------------------------------------------------------------------*/
53 /*! \name Types */
54 /*! \{ */
56 typedef OSBCommonElement Inherited;
57 typedef OSBShaderParameterElement Self;
59 /*! \} */
60 /*---------------------------------------------------------------------*/
61 /*! \name Constructor */
62 /*! \{ */
64 OSBShaderParameterElement(OSBRootElement *root, UInt16 version);
66 /*! \} */
67 /*---------------------------------------------------------------------*/
68 /*! \name Destructor */
69 /*! \{ */
71 virtual ~OSBShaderParameterElement(void);
73 /*! \} */
74 /*---------------------------------------------------------------------*/
75 /*! \name Access */
76 /*! \{ */
78 const Char8* getName(void) const;
80 /*! \} */
81 /*========================= PROTECTED ===============================*/
82 protected:
84 SFString _name;
86 /*========================== PRIVATE ================================*/
87 private:
88 /*!\brief prohibit default function (move to 'public' if needed) */
89 OSBShaderParameterElement(const OSBShaderParameterElement &source);
90 /*!\brief prohibit default function (move to 'public' if needed) */
91 void operator =(const OSBShaderParameterElement &source);
93 /*! \} */
94 /*---------------------------------------------------------------------*/
97 OSG_END_NAMESPACE
99 #endif /* _OSGOSBSHADERPARAMETERELEMENT_H_ */