OStringStream.hh 605 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
// (C) Copyright 2016 by Autodesk, Inc.

#ifndef BASE_OSTRINGSTREAM_HH_INCLUDED
#define BASE_OSTRINGSTREAM_HH_INCLUDED

#include <Base/Utils/IOutputStream.hh>

namespace Base {

10
class BASEDLLEXPORT OStringStream : public IOutputStream
11 12
{
public:
13 14 15 16 17 18
  virtual IOutputStream& print(const char);
  virtual IOutputStream& print(const int);
  virtual IOutputStream& print(const size_t);
  virtual IOutputStream& print(const double);
  virtual IOutputStream& print(const char* const);
  virtual IOutputStream& print(const Command&);
19 20 21 22 23 24 25

  std::string str;
};

}//namespace Base

#endif//BASE_OSTRINGSTREAM_HH_INCLUDED