Base class for input, output, control and local termio flags. More...
#include <DwmTermios.hh>


Public Member Functions | |
| bool | IsSet (const std::string &flagName) const |
Returns true if the given flagName is set, else returns false. | |
| bool | Set (const std::string &flagName) |
Sets the flag for the given flagName. | |
| bool | Unset (const std::string &flagName) |
Unsets the flag for the given flagName. | |
| virtual const TermioFlagInfo_t * | KnownFlags () const =0 |
| Returns the known flags. | |
Protected Member Functions | |
| const TermioFlagInfo_t * | FindFlag (const std::string &flagName) const |
Protected Attributes | |
| tcflag_t * | _flagPtr |
| const TermioFlagInfo_t * | _flagInfo |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const TermioFlags &flags) |
| Prints to an ostream. | |
Base class for input, output, control and local termio flags.
|
pure virtual |
Returns the known flags.
Implemented in Dwm::TermioControlFlags, Dwm::TermioInputFlags, Dwm::TermioLocalFlags, and Dwm::TermioOutputFlags.
| bool Dwm::TermioFlags::Set | ( | const std::string & | flagName | ) |
Sets the flag for the given flagName.
Returns true on success, false on failure.
| bool Dwm::TermioFlags::Unset | ( | const std::string & | flagName | ) |
Unsets the flag for the given flagName.
Returns true on success, false on failure.