filewriter: Convert to C++ plugin declaration.