implementation of structure id parsing.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>