MD::SerialiseHelper Class
class MD::SerialiseHelperHelper for serialisation. More...
| Header: | #include <md4qt/doc.h> |
| CMake: | find_package(md4qt REQUIRED COMPONENTS md4qt)target_link_libraries(mytarget PRIVATE md4qt::md4qt) |
Public Functions
| SerialiseHelper() | |
| bool | isFirst() const |
| void | pop() |
| void | push(const MD::Item *item) |
| void | setFirst(bool on = true) |
| void | startLine(QTextStream &stream) |
Detailed Description
This helps to handle parenting during serialisation, to start new lines of parents.
Member Function Documentation
[constexpr noexcept default] SerialiseHelper::SerialiseHelper()
Default-constructs an instance of SerialiseHelper.
bool SerialiseHelper::isFirst() const
Returns whether serialiser at the first item in the block.
Note: Only paragraph sets this flag at this time.
void SerialiseHelper::pop()
Pop last item.
void SerialiseHelper::push(const MD::Item *item)
Push new item.
item Item.
void SerialiseHelper::setFirst(bool on = true)
Set whether serialiser at the first item in the block.
Note: Only paragraph sets this flag at this time.
on Value.
See also isFirst().
void SerialiseHelper::startLine(QTextStream &stream)
Start line.
stream Stream.