MimIR
MimIR is my Intermediate Representation
Loading...
Searching...
No Matches
mim::Out Class Reference

A file name from the command line and the stream to write to;. More...

#include <mim/plugin.h>

Public Member Functions

 Out ()=default
 Out (std::string name)
std::string & name ()
 Bound to a fe::Cli option, e.g. --output-mim.
std::ostream * os ()
 The stream to write to; nullptr if this output was not requested, std::cout for "-".

Detailed Description

A file name from the command line and the stream to write to;.

See also
arg_value.

Definition at line 98 of file plugin.h.

Constructor & Destructor Documentation

◆ Out() [1/2]

mim::Out::Out ( )
default

◆ Out() [2/2]

mim::Out::Out ( std::string name)
inlineexplicit

Definition at line 101 of file plugin.h.

References name().

Member Function Documentation

◆ name()

std::string & mim::Out::name ( )
inline

Bound to a fe::Cli option, e.g. --output-mim.

Definition at line 104 of file plugin.h.

Referenced by Out().

◆ os()

std::ostream * mim::Out::os ( )
inline

The stream to write to; nullptr if this output was not requested, std::cout for "-".

Opens the file upon first use, so an output no one writes to leaves no file behind.

Definition at line 108 of file plugin.h.


The documentation for this class was generated from the following file: