|
swift
|
CRTP class template from which a derived class can inherit string streaming operations. More...
#include <mixinstring.h>
Public Member Functions | |
| QString | toQString (bool i18n=false) const |
| Cast as QString. | |
| std::string | toStdString (bool i18n=false) const |
| To std string. | |
| QString | stringForStreaming () const |
| String for streaming operators. | |
Friends | |
| QDebug | operator<< (QDebug debug, const Derived &obj) |
| Stream << overload to be used in debugging messages. | |
| QNoDebug | operator<< (QNoDebug nodebug, const Derived &obj) |
| Operator << when there is no debug stream. | |
| QTextStream & | operator<< (QTextStream &stream, const Derived &obj) |
| Operator << based on text stream. | |
| std::ostream & | operator<< (std::ostream &ostr, const Derived &obj) |
| Stream operator << for std::cout. | |
CRTP class template from which a derived class can inherit string streaming operations.
| Derived | Must implement a public method QString convertToQString(bool i18n = false) const. |
Definition at line 28 of file mixinstring.h.
| QString swift::misc::mixin::String< Derived >::stringForStreaming | ( | ) | const |
String for streaming operators.
Definition at line 86 of file mixinstring.h.
| QString swift::misc::mixin::String< Derived >::toQString | ( | bool | i18n = false | ) | const |
Cast as QString.
Definition at line 74 of file mixinstring.h.
| std::string swift::misc::mixin::String< Derived >::toStdString | ( | bool | i18n = false | ) | const |
To std string.
Definition at line 80 of file mixinstring.h.
Stream << overload to be used in debugging messages.
Definition at line 32 of file mixinstring.h.
|
friend |
Operator << when there is no debug stream.
Definition at line 39 of file mixinstring.h.
|
friend |
Operator << based on text stream.
Definition at line 46 of file mixinstring.h.
|
friend |
Stream operator << for std::cout.
Definition at line 53 of file mixinstring.h.