xieite ::file_pipe {}
Defined in fragment xieite :file_pipe
(header-only:
<xieite/io/file_pipe.hpp>
)
Derives from multiple functors and inherits their call operators.
Declaration
struct file_pipe {file_pipe ()noexcept ;file_pipe (std ::string_view ,std ::string_view )noexcept ;#if XIEITE_PLTF_TYPE_WINDOWS file_pipe (std ::wstring_view ,std ::wstring_view )noexcept ;#endif ~file_pipe ();void open (std ::string_view ,std ::string_view )noexcept ;#if XIEITE_PLTF_TYPE_WINDOWS void open (std ::wstring_view ,std ::wstring_view )noexcept ;#endif int close ()noexcept ;std ::FILE * get ()const noexcept ;int desc ()const noexcept ; };
Example
Possible output:import xieite ;int main () {xieite ::dump (xieite ::read (xieite ::file_pipe ("echo Hello, world!" ,"r" ).get ())); }
Hello, world!