[C++]Auto gen the implementation from header file