Convert Tag to C++ class