fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / FileIO / OSB / OSGOSBRootElement.inl
blob6b3932c25b47ad567d85b02c488bad5d9934f1b4
1 /*---------------------------------------------------------------------------*\
2  *                                OpenSG                                     *
3  *                                                                           *
4  *                                                                           *
5  *                   Copyright (C) 2007 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 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30  *                                Changes                                    *
31  *                                                                           *
32  *                                                                           *
33  *                                                                           *
34  *                                                                           *
35  *                                                                           *
36  *                                                                           *
37 \*---------------------------------------------------------------------------*/
40 OSG_BEGIN_NAMESPACE
42 /*-------------------------------------------------------------------------*/
43 /* OSBRootElement                                                         */
44 /*-------------------------------------------------------------------------*/
46 /*-------------------------------------------------------------------------*/
47 /* State access                                                            */
49 inline OSBRootElement::BinaryReadHandler *
50 OSBRootElement::getReadHandler(void)
52     return _readHandler;
55 inline OSBRootElement::BinaryWriteHandler *
56 OSBRootElement::getWriteHandler(void)
58     return _writeHandler;
61 inline const NFIOOptions &
62 OSBRootElement::getOptions(void) const
64     return _options;
67 inline NFIOOptions &
68 OSBRootElement::editOptions(void)
70     return _options;
73 inline void
74 OSBRootElement::setHeaderVersion(const UInt16 version)
76     _readHeaderVersion = version;
79 inline UInt16
80 OSBRootElement::getHeaderVersion(void) const
82     return _readHeaderVersion;
85 inline const OSBRootElement::FieldContainerIdMap &
86 OSBRootElement::getIdMap(void) const
88     return _readIdMap;
91 inline OSBRootElement::FieldContainerIdMap &
92 OSBRootElement::editIdMap(void)
94     return _readIdMap;
97 inline const OSBRootElement::PtrFieldList &
98 OSBRootElement::getPtrFieldList(void) const
100     return _readPtrFields;
103 inline OSBRootElement::PtrFieldList &
104 OSBRootElement::editPtrFieldList(void)
106     return _readPtrFields;
109 inline const OSBRootElement::ElementList &
110 OSBRootElement::getElementList(void) const
112     return _elements;
115 inline OSBRootElement::ElementList &
116 OSBRootElement::editElementList(void)
118     return _elements;
121 inline const OSBRootElement::IdElemMap &
122 OSBRootElement::getIdElemMap(void) const
124     return _idElemMap;
127 inline OSBRootElement::IdElemMap &
128 OSBRootElement::editIdElemMap(void)
130     return _idElemMap;
133 inline const OSBRootElement::FieldContainerList &
134 OSBRootElement::getContainerList(void) const
136     return _writeFCList;
139 inline OSBRootElement::FieldContainerList &
140 OSBRootElement::editContainerList(void)
142     return _writeFCList;
145 inline const OSBRootElement::FieldContainerIdSet &
146 OSBRootElement::getIdSet(void) const
148     return _writeIdSet;
151 inline OSBRootElement::FieldContainerIdSet &
152 OSBRootElement::editIdSet(void)
154     return _writeIdSet;
157 OSG_END_NAMESPACE