| 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 ) |
nothing calls this directly
no test coverage detected