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

Method openElement

COLLADAStreamWriter/src/COLLADASWStreamWriter.cpp:950–970  ·  view source on GitHub ↗

---------------------------------------------------------------

Source from the content-addressed store, hash-verified

948
949 //---------------------------------------------------------------
950 TagCloser StreamWriter::openElement ( const String & name, const String & prefix )
951 {
952 prepareToAddContents();
953 appendNewLine();
954 addWhiteSpace ( mLevel * mIndent );
955 mLevel++;
956 appendChar ( '<' );
957 ElementIndexType nextElementIndex = mNextElementIndex++;
958 if (prefix.empty())
959 {
960 appendNCNameString(name);
961 mOpenTags.push_back(OpenTag(&name, nextElementIndex));
962 }
963 else
964 {
965 appendNCNameString(prefix + ":" + name);
966 mOpenTags.push_back(OpenTag(&name, &prefix, nextElementIndex));
967 }
968
969 return TagCloser ( this, nextElementIndex );
970 }
971
972
973 //---------------------------------------------------------------

Callers 15

addMethod · 0.80
addMethod · 0.80
openMethod · 0.80
addMethod · 0.80
addMethod · 0.80
addInitAsTargetMethod · 0.80
addInitCubeMethod · 0.80
addInitVolumeMethod · 0.80
addInitPlanarMethod · 0.80
addInitFromMethod · 0.80
addInitAsNullMethod · 0.80

Calls 4

TagCloserClass · 0.85
OpenTagClass · 0.50
emptyMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected