// Copyright (C) 2010, Guy Barrand. All rights reserved.
// See the file tools.license for terms.

#ifndef tools_sout
#define tools_sout

#include <string>

namespace tools {

class sout : public std::string {
  typedef std::string parent;
public:
  sout(const std::string& a_value) {
    parent::operator+=("\"");
    parent::operator+=(a_value);
    parent::operator+=("\"");
  }
public:
  sout(const sout& a_from):parent(a_from){}
  sout& operator=(const sout& a_from){parent::operator=(a_from);return *this;}
};

}

#endif
