MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / openNode

Method openNode

COLLADAStreamWriter/src/COLLADASWLibraryNodes.cpp:22–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20 {}
21
22 void LibraryNodes::openNode ( const String &nodeId, const String &nodeName )
23 {
24 // opening library here. TBH this looks weird and should
25 // just be an explicit client call.
26 openLibrary();
27
28 // create tag closer
29 mCurrentNodeCloser = mSW->openElement ( CSWC::CSW_ELEMENT_NODE );
30
31 if ( !nodeId.empty() )
32 mSW->appendAttribute ( CSWC::CSW_ATTRIBUTE_ID, nodeId );
33
34 if ( !nodeName.empty() )
35 mSW->appendAttribute ( CSWC::CSW_ATTRIBUTE_NAME, nodeName );
36 }
37
38 void LibraryNodes::closeNode()
39 {

Callers

nothing calls this directly

Calls 3

openElementMethod · 0.80
emptyMethod · 0.45
appendAttributeMethod · 0.45

Tested by

no test coverage detected