11 #ifndef ZYPP_BASE_DRUNKENBISHOP_H 12 #define ZYPP_BASE_DRUNKENBISHOP_H 18 #include <zypp/base/PtrTypes.h> 19 #include <zypp/base/Flags.h> 70 DrunkenBishop(
const std::string & data_r,
const std::string & title_r = std::string() );
73 DrunkenBishop(
const std::string & data_r,
const std::string & title_r,
unsigned height_r );
80 DrunkenBishop(
const std::string & data_r,
const std::string & title_r,
unsigned height_r,
unsigned width_r );
82 DrunkenBishop(
const std::string & data_r,
unsigned height_r,
unsigned width_r )
97 std::ostream &
dumpOn( std::ostream &
str, Options options_r = Options() )
const 98 {
return dumpOn(
str, std::string(), options_r ); }
100 std::ostream &
dumpOn( std::ostream &
str,
const std::string & prefix_r, Options options_r = Options() )
const;
103 std::string
asString( Options options_r = Options() )
const 104 {
return asString( std::string(), options_r ); }
106 std::string
asString(
const std::string & prefix_r, Options options_r = Options() )
const;
109 std::vector<std::string>
asLines( Options options_r = Options() )
const 110 {
return asLines( std::string(), options_r ); }
112 std::vector<std::string>
asLines(
const std::string & prefix_r, Options options_r = Options() )
const;
130 #endif // ZYPP_BASE_DRUNKENBISHOP_H
DrunkenBishop()
Default ctor: empty board (1x1)
std::ostream & operator<<(std::ostream &str, const DrunkenBishop &obj)
friend std::ostream & operator<<(std::ostream &str, const DrunkenBishop &obj)
DrunkenBishop implementation.
String related utilities and Regular expression matching.
ZYPP_DECLARE_FLAGS(Options, OptionBits)
DrunkenBishop(const std::string &data_r, unsigned height_r)
Ctor.
DrunkenBishop(const std::string &data_r, unsigned height_r, unsigned width_r)
Ctor.
std::ostream & dumpOn(std::ostream &str, Options options_r=Options()) const
Render board to steam.
std::vector< std::string > asLines(Options options_r=Options()) const
Render to an array of lines.
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(DrunkenBishop::Options)
std::string asString(Options options_r=Options()) const
Render board as string.
RW_pointer< Impl > _pimpl
Implementation class.
Easy-to use interface to the ZYPP dependency resolver.
Random art fingerprint visualization Visualize fingerprint data on a [17x9] (SSH) or [19x11] (GPG) or...