This should cover all requirements from the assignment, but a more specific use case will be added later.
17 lines
479 B
C++
17 lines
479 B
C++
#pragma once
|
|
#include "Gedeng/Node.h"
|
|
#include "Gedeng/String.h"
|
|
|
|
namespace Gedeng {
|
|
|
|
class NodeSystem {
|
|
// Load a node with all its children from a node definition file (`.gnd`) on
|
|
// disk.
|
|
static Node load_nodes_from_disk(const String &path);
|
|
|
|
// Save a node and all its children to disk, at the given path. It is
|
|
// recommended to end the path with `.gnd`.
|
|
static void save_nodes_to_disk(const Node &node, const String &path);
|
|
};
|
|
|
|
} // namespace Gedeng
|