title: Automatically generate C++ file from header?
body: <p>I have a bunch of C++ header files with various class and function declarations. So far, when I've been writing the C++ source file implementations of the declared classes and functions, I've been manually:</p>
  
  <ol>
  <li>Copying the declarations from the header file to the corresponding source file.</li>
  <li>Deleting "class classname {" and the matching "};"</li>
  <li>Adding "classname::" onto the names of all the class functions.</li>
  <li>Replacing the semicolons after the function declarations with "{}".</li>
  <li>Deleting the keywords "virtual" and "static".</li>
  </ol>
  
  <p>Only after all that work, which doesn't really do anything, can I actually go about implementing the functions. I am wondering if there is a tool out there somewhere that can automatically generate a ".cpp" file from a ".h" file, where the resulting ".cpp" contains empty stubs for the functions declared in the ".h" file (and for which an inline definition hasn't been given). A UNIX-friendly commandline tool would be preferred. Thanks.</p>
  
  <p>UPDATE: A cross-platform tool would be ideal. If not, I am working on Mac OS X 10.6.</p>