~ubuntu-branches/ubuntu/wily/opencollada/wily-proposed

« back to all changes in this revision

Viewing changes to COLLADASaxFrameworkLoader/src/generated15/COLLADASaxFWLLibraryNodesLoader15.cpp

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2015-05-14 17:23:27 UTC
  • Revision ID: package-import@ubuntu.com-20150514172327-f862u8envms01fra
Tags: upstream-0.1.0~20140703.ddf8f47+dfsg1
ImportĀ upstreamĀ versionĀ 0.1.0~20140703.ddf8f47+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
    Copyright (c) 2008-2009 NetAllied Systems GmbH
 
3
 
 
4
    This file is part of COLLADASaxFrameworkLoader.
 
5
 
 
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
 
9
*/
 
10
 
 
11
 
 
12
#include "COLLADASaxFWLStableHeaders.h"
 
13
#include "COLLADASaxFWLLibraryNodesLoader15.h"
 
14
 
 
15
 
 
16
namespace COLLADASaxFWL
 
17
{
 
18
 
 
19
 
 
20
bool LibraryNodesLoader15::begin__node( const COLLADASaxFWL15::node__AttributeData& attributeData )
 
21
{
 
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;
 
33
}
 
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;
 
37
}
 
38
return mLoader->begin__node(attrData);
 
39
}
 
40
 
 
41
 
 
42
bool LibraryNodesLoader15::end__node()
 
43
{
 
44
SaxVirtualFunctionTest15(end__node());
 
45
return mLoader->end__node();
 
46
}
 
47
 
 
48
 
 
49
bool LibraryNodesLoader15::end__library_nodes()
 
50
{
 
51
SaxVirtualFunctionTest15(end__library_nodes());
 
52
return mLoader->end__library_nodes();
 
53
}
 
54
 
 
55
 
 
56
bool LibraryNodesLoader15::begin__technique____technique_type( const COLLADASaxFWL15::technique____technique_type__AttributeData& attributeData )
 
57
{
 
58
SaxVirtualFunctionTest15(begin__technique____technique_type(attributeData));
 
59
COLLADASaxFWL::technique__AttributeData attrData;
 
60
attrData.profile = attributeData.profile;
 
61
return mLoader->begin__technique(attrData);
 
62
}
 
63
 
 
64
 
 
65
bool LibraryNodesLoader15::end__technique____technique_type()
 
66
{
 
67
SaxVirtualFunctionTest15(end__technique____technique_type());
 
68
return mLoader->end__technique();
 
69
}
 
70
 
 
71
 
 
72
 
 
73
}