Class CRootTable#

Inheritance Relationships#

Base Type#

Class Documentation#

class CRootTable : public toml_parser::CTable#

Root table.

Public Functions

inline CRootTable(CParser &rparser)#

Constructor.

Parameters:

rparser[in] Reference to the TOML parser.

virtual bool DeleteNode() override#

Delete the current node. Overload of sdv::toml::INodeUpdate::DeleteNode.

Attention

A successful deletion will cause all interfaces to the current node to become inoperable.

Returns:

Returns whether the deletion was successful.

inline virtual bool Inline() const override#

The derived class from the node collection can be inline or not. Overload of CNodeCollection::Inline.

Returns:

Returns whether the node is an inline node.

inline virtual bool Inline(bool bInline, bool bIncludeChildren = true) override#

Switch between inline and explicit table definition. Overload of CNodeCollection::Inline.

Remark

Additional node composition information will be removed and the order within the parent node might be changed.

Attention

It is not possible to switch to an explicit table definition if the table is part of an array, since the table doesn’t have a name.

Parameters:
  • bInline[in] When set, try to switch to inline. Otherwise try to switch to normal.

  • bIncludeChildren[in] When set and bInline is not set, applicable child nodes are converted as well (only tables and table-arrays can be defined as standard). Making a node inline is always including the children.

Returns:

Returns whether the switch was successful. A switch to the same type (normal to normal or inline to inline is always successful). When returning false, the switching might not be supported for this type.