| 123 | } |
| 124 | |
| 125 | NodeImplSharedPtr StructureNodeImpl::get( int64_t index ) |
| 126 | { |
| 127 | checkImageFileOpen( __FILE__, __LINE__, static_cast<const char *>( __FUNCTION__ ) ); |
| 128 | if ( index < 0 || index >= static_cast<int64_t>( children_.size() ) ) |
| 129 | { // %%% Possible truncation on platforms where size_t = uint64 |
| 130 | throw E57_EXCEPTION2( ErrorChildIndexOutOfBounds, |
| 131 | "this->pathName=" + this->pathName() + " index=" + toString( index ) + |
| 132 | " size=" + toString( children_.size() ) ); |
| 133 | } |
| 134 | return ( children_.at( static_cast<unsigned>( index ) ) ); |
| 135 | } |
| 136 | |
| 137 | NodeImplSharedPtr StructureNodeImpl::get( const ustring &pathName ) |
| 138 | { |