aboutsummaryrefslogtreecommitdiff
path: root/libbutl/process-io.hxx
blob: b70080cc22cba22482ed2b6b72b2716dc20d7164 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// file      : libbutl/process-io.hxx -*- C++ -*-
// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
// license   : MIT; see accompanying LICENSE file

#ifndef LIBBUTL_PROCESS_IO_HXX
#define LIBBUTL_PROCESS_IO_HXX

#include <ostream>

#include <libbutl/process.hxx>

namespace butl
{
  inline std::ostream&
  operator<< (std::ostream& o, const process_path& p)
  {
    return o << p.recall_string ();
  }

  inline std::ostream&
  operator<< (std::ostream& o, const process_args& a)
  {
    process::print (o, a.argv, a.argc);
    return o;
  }
}

#endif // LIBBUTL_PROCESS_IO_HXX