C++ skeleton generation from slice files