MCPcopy Create free account
hub / github.com/PDAL/PDAL / set

Method set

plugins/e57/libE57Format/src/VectorNodeImpl.cpp:83–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81 }
82
83 void VectorNodeImpl::set( int64_t index64, NodeImplSharedPtr ni )
84 {
85 checkImageFileOpen( __FILE__, __LINE__, static_cast<const char *>( __FUNCTION__ ) );
86 if ( !allowHeteroChildren_ )
87 {
88 // New node type must match all existing children
89 for ( auto &child : children_ )
90 {
91 if ( !child->isTypeEquivalent( ni ) )
92 {
93 throw E57_EXCEPTION2( ErrorHomogeneousViolation,
94 "this->pathName=" + this->pathName() );
95 }
96 }
97 }
98
99 //??? for now, use base implementation
100 StructureNodeImpl::set( index64, ni );
101 }
102
103 void VectorNodeImpl::writeXml( ImageFileImplSharedPtr imf, CheckedFile &cf, int indent,
104 const char *forcedFieldName )

Callers

nothing calls this directly

Calls 2

isTypeEquivalentMethod · 0.45
pathNameMethod · 0.45

Tested by

no test coverage detected