libqi-api
2.8.7.4
|
#include <print.hpp>
Classes | |
struct | Column |
Contains the data and options needed to fill and format one column of a line. More... | |
class | IndentLevel |
Encapsulates in a RAII style a shift or an indentation level of a PrettyPrintStream instance. More... | |
struct | Line |
Public Types | |
enum | Option { Option::Colorized = 1 << 0, Option::Documentation = 1 << 1, Option::RawSignatures = 1 << 2 } |
enum | RecurseOption : bool { RecurseOption::DoNotRecurse = false, RecurseOption::Recurse = true } |
using | Options = qi::Flags< Option > |
using | IndentLevelPtr = std::unique_ptr< IndentLevel > |
using | Columns = std::vector< Column > |
using | string_ref = boost::string_ref |
Static Public Member Functions | |
static Line | makeSectionHeader (const Line &line) |
static Line | makeSubSectionHeader (const Line &line) |
Public Attributes | |
friend | IndentLevel |
Static Public Attributes | |
static const string_ref | infoLabel |
static const string_ref | methodsLabel |
static const string_ref | signalsLabel |
static const string_ref | propertiesLabel |
static const string_ref | membersLabel |
static const string_ref | returnTypeLabel |
static const string_ref | returnDescrLabel |
static const string_ref | elementTypeLabel |
static const string_ref | keyTypeLabel |
static const string_ref | parametersLabel |
static const string_ref | signalTypesLabel |
Provides facilities to print informations about types into a stream in a user friendly formatting. It also supports indentation. This class is movable but not copyable, thus not regular.
Example: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
using qi::detail::PrettyPrintStream::Columns = std::vector<Column> |
using qi::detail::PrettyPrintStream::IndentLevelPtr = std::unique_ptr<IndentLevel> |
using qi::detail::PrettyPrintStream::string_ref = boost::string_ref |
|
strong |
|
strong |
|
explicit |
|
delete |
|
inline |
IndentLevelPtr qi::detail::PrettyPrintStream::makeIndentLevel | ( | ) |
|
inline |
With PrettyPrintStream& s, P printable, the following is valid: s.print(printable);
|
delete |
|
inline |
void qi::detail::PrettyPrintStream::print | ( | const Line & | line | ) |
void qi::detail::PrettyPrintStream::print | ( | const MetaObject & | mobj | ) |
void qi::detail::PrettyPrintStream::print | ( | const MetaMethod & | method, |
int | offsetLabel = 0 , |
||
RecurseOption | recurse = RecurseOption::Recurse |
||
) |
void qi::detail::PrettyPrintStream::print | ( | const MetaSignal & | signal, |
int | offsetLabel = 0 , |
||
RecurseOption | recurse = RecurseOption::Recurse |
||
) |
void qi::detail::PrettyPrintStream::print | ( | const MetaProperty & | property, |
int | offsetLabel = 0 , |
||
RecurseOption | recurse = RecurseOption::Recurse |
||
) |
void qi::detail::PrettyPrintStream::print | ( | TypeInterface * | type | ) |
void qi::detail::PrettyPrintStream::print | ( | StructTypeInterface & | structType | ) |
void qi::detail::PrettyPrintStream::print | ( | ListTypeInterface & | listType | ) |
void qi::detail::PrettyPrintStream::print | ( | MapTypeInterface & | mapType | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |