A templated version of a composite entry, aimed at filling containers. More...
Public Member Functions | |
TreeReaderCompositeEntry (C< T > &target, std::function< T(nkExport::Node *)> entryFiller, nkMemory::StringView path) | |
virtual | ~TreeReaderCompositeEntry ()=default |
virtual void | fill (nkExport::Node *node) override |
Public Member Functions inherited from nkExport::TreeReaderEntry | |
TreeReaderEntry (nkMemory::StringView path) noexcept | |
TreeReaderEntry (const TreeReaderEntry &) noexcept | |
TreeReaderEntry (TreeReaderEntry &&) noexcept | |
virtual | ~TreeReaderEntry () |
nkMemory::StringView | getPath () const |
TreeReaderEntry & | operator= (const TreeReaderEntry &) noexcept |
TreeReaderEntry & | operator= (TreeReaderEntry &&) noexcept |
A templated version of a composite entry, aimed at filling containers.
nkExport::TreeReaderCompositeEntry< C, T >::TreeReaderCompositeEntry | ( | C< T > & | target, |
std::function< T(nkExport::Node *)> | entryFiller, | ||
nkMemory::StringView | path | ||
) |
Constructor.
target | The target container to fill. |
entryFiller | The callback filling one entry of the container, called for each entry to fill. |
path | The path within the tree of the note to update from. |
|
virtualdefault |
Destructor.
|
inlineoverridevirtual |
Fills the target from the node provided, using the target path.
Implements nkExport::TreeReaderEntry.