2
Copyright (c) 2008-2009 NetAllied Systems GmbH
4
This file is part of COLLADASaxFrameworkLoader.
6
Licensed under the MIT Open Source License,
7
for details please see LICENSE file or the website
8
http://www.opensource.org/licenses/mit-license.php
12
#include "COLLADASaxFWLStableHeaders.h"
13
#include "COLLADASaxFWLLibraryNodesLoader15.h"
16
namespace COLLADASaxFWL
20
bool LibraryNodesLoader15::begin__node( const COLLADASaxFWL15::node__AttributeData& attributeData )
22
SaxVirtualFunctionTest15(begin__node(attributeData));
23
COLLADASaxFWL::node__AttributeData attrData;
24
attrData.present_attributes = 0;
25
attrData.id = attributeData.id;
26
attrData.name = attributeData.name;
27
attrData.sid = attributeData.sid;
28
switch (attributeData.type) {
29
case COLLADASaxFWL15::ENUM__node_enum__JOINT: attrData.type=COLLADASaxFWL::ENUM__NodeType__JOINT; break;
30
case COLLADASaxFWL15::ENUM__node_enum__NODE: attrData.type=COLLADASaxFWL::ENUM__NodeType__NODE; break;
31
case COLLADASaxFWL15::ENUM__node_enum__COUNT: attrData.type=COLLADASaxFWL::ENUM__NodeType__INVALID; break;
32
case COLLADASaxFWL15::ENUM__node_enum__NOT_PRESENT: attrData.type=COLLADASaxFWL::ENUM__NodeType__NOT_PRESENT; break;
34
if ( (attributeData.present_attributes & COLLADASaxFWL15::node__AttributeData::ATTRIBUTE_LAYER_PRESENT) == COLLADASaxFWL15::node__AttributeData::ATTRIBUTE_LAYER_PRESENT ) {
35
attrData.layer = attributeData.layer;
36
attrData.present_attributes |= COLLADASaxFWL::node__AttributeData::ATTRIBUTE_LAYER_PRESENT;
38
return mLoader->begin__node(attrData);
42
bool LibraryNodesLoader15::end__node()
44
SaxVirtualFunctionTest15(end__node());
45
return mLoader->end__node();
49
bool LibraryNodesLoader15::end__library_nodes()
51
SaxVirtualFunctionTest15(end__library_nodes());
52
return mLoader->end__library_nodes();
56
bool LibraryNodesLoader15::begin__technique____technique_type( const COLLADASaxFWL15::technique____technique_type__AttributeData& attributeData )
58
SaxVirtualFunctionTest15(begin__technique____technique_type(attributeData));
59
COLLADASaxFWL::technique__AttributeData attrData;
60
attrData.profile = attributeData.profile;
61
return mLoader->begin__technique(attrData);
65
bool LibraryNodesLoader15::end__technique____technique_type()
67
SaxVirtualFunctionTest15(end__technique____technique_type());
68
return mLoader->end__technique();