Enzo
Loading...
Searching...
No Matches
Scope.h
1#pragma once
2#include "Engine/Core/Path.h"
3#include <string>
4
5namespace enzo::nt {
25class Scope
26{
27 public:
28 Scope(const Path& path, std::string scopeType) : path_{path}, scopeType_{std::move(scopeType)}
29 {
30 }
31
33 const Path& getPath() const { return path_; }
34
36 const std::string& getType() const { return scopeType_; }
37
38 private:
39 Path path_;
40 std::string scopeType_;
41};
42} // namespace enzo::nt
A default path class for creation and manipulation of tree-based paths.
Definition Path.h:14
One place nodes live, either the root or the inside of a node that holds one.
Definition Scope.h:26
const std::string & getType() const
Returns the kind of nodes this scope holds, such as "geometry".
Definition Scope.h:36
const Path & getPath() const
Returns the path this scope sits at, which its nodes are children of.
Definition Scope.h:33