title: writing a tf::transform object to a file
body: <p>I'm attempting to do something resembling the following block of code:</p>
  
  <pre><code>tf::transform t;
  initializeTransform(t);
  std::ofstream f;
  f.open("somefile");
  f &lt;&lt; t &lt;&lt; std::endl;
  f.close();
  </code></pre>
  
  <p>Assuming that I've properly set up that <code>f</code> and <code>t</code> when I'm trying to write <code>t</code> to <code>f</code>, how would I do so? I tried a number of variants of this, and all of them result in a huge wall of text to the effect that <code>ofstream</code> doesn't know how to handle a tf::transform object, which isn't too surprising.</p>
  
  <p>Is there some way to make <code>ofstream</code> take arbitrary objects? Is there some format that I could readily convert it to that's more conducive to streaming? Ideally, if I convert it, I'd like to have a way to reversibly convert it to some matrix that I can pipe straight into and out of a file.</p>