
#ifndef AUTIL_APP_OSTREAM_HH
#define AUTIL_APP_OSTREAM_HH

#include <iostream>
#include <pspell/app_string.hh>

namespace autil {

  class AppOstream : public PspellAppendableString 
  {
    ostream * o_;
  public:
    AppOstream(ostream & o) : o_(&o) {}
    void append (const char * str) 
    {
      *o_ << str;
    }
    void append (const char * str, unsigned int size) 
    {
      o_->write(str, size);
    }
  };

}

#endif
