add remote page loading

This commit is contained in:
2019-11-27 19:55:31 +01:00
parent 7701e6771b
commit 41579fa3c6
18 changed files with 373 additions and 41 deletions

25
src/node_metadata.cpp Normal file
View File

@@ -0,0 +1,25 @@
#include "pch.h"
#include "log.h"
#include "node_metadata.h"
NodeMetadata::NodeMetadata() noexcept
{
m_nodeID = const_hash("metadata");
m_nodeID_s = "metadata";
}
Node* NodeMetadata::clone_instantiate() const
{
return new NodeMetadata();
}
void NodeMetadata::clone_copy(Node* dest) const
{
Node::clone_copy(dest);
NodeMetadata* n = static_cast<NodeMetadata*>(dest);
n->m_props = m_props;
}
void NodeMetadata::parse_attributes(kAttribute ka, const tinyxml2::XMLAttribute* attr)
{
Node::parse_attributes(ka, attr);
m_props[attr->Name()] = attr->Value();
}