| 950 | } |
| 951 | |
| 952 | void SourceDestBufferImpl::setNextString( const ustring &value ) |
| 953 | { |
| 954 | /// don't checkImageFileOpen |
| 955 | |
| 956 | if ( memoryRepresentation_ != UString ) |
| 957 | { |
| 958 | throw E57_EXCEPTION2( ErrorExpectingUString, "pathName=" + pathName_ ); |
| 959 | } |
| 960 | |
| 961 | /// Verify have room. |
| 962 | if ( nextIndex_ >= capacity_ ) |
| 963 | { |
| 964 | throw E57_EXCEPTION2( ErrorInternal, "pathName=" + pathName_ ); |
| 965 | } |
| 966 | |
| 967 | /// Assign to already initialized element in vector |
| 968 | ( *ustrings_ )[nextIndex_] = value; |
| 969 | nextIndex_++; |
| 970 | } |
| 971 | |
| 972 | void SourceDestBufferImpl::checkCompatible( |
| 973 | const std::shared_ptr<SourceDestBufferImpl> &newBuf ) const |