| 152 | |
| 153 | |
| 154 | E_Condition DcmPixelSequence::insert(DcmPixelItem* item, |
| 155 | unsigned long where) |
| 156 | { |
| 157 | Bdebug((3, "dcsequen:DcmSequenceOfItems::insert(DcmItem*=%p,where=%ld)", |
| 158 | item, where )); |
| 159 | |
| 160 | errorFlag = EC_Normal; |
| 161 | if ( item != NULL ) |
| 162 | { |
| 163 | itemList->seek_to( where ); |
| 164 | itemList->insert( item ); |
| 165 | Vdebug((3, where< itemList->card(), "item at position %d inserted", where )); |
| 166 | Vdebug((3, where>=itemList->card(), "item at last position inserted" )); |
| 167 | |
| 168 | } |
| 169 | else |
| 170 | errorFlag = EC_IllegalCall; |
| 171 | Edebug(()); |
| 172 | |
| 173 | return errorFlag; |
| 174 | } |
| 175 | |
| 176 | |
| 177 | // ******************************** |