eckit::AutoStdPipe class

Wrapper around a stdio FILE* Use this for stack objects that automatically close

Base classes

class StdPipe
Simple wrapper for pipes.

Constructors, destructors, conversion operators

AutoStdPipe(const std::string& name, const std::string& mode = "r")
~AutoStdPipe() noexcept(…)
operator FILE*()
Get the FILE* but don't call fclose on it.

Public functions

auto isOpen() -> bool
void close() noexcept(…)