Enzo
Loading...
Searching...
No Matches
PrimPath.h
1#pragma once
2#include <string>
3#include <vector>
4
5namespace enzo {
6
8{
9public:
10 static constexpr char Delimiter = '/';
11
12 PrimPath() = default;
13 explicit PrimPath(const std::string &path);
14
15 const std::string &string() const { return path_; }
16 const std::vector<std::string> &components() const { return components_; }
17 std::string name() const;
18 PrimPath parent() const;
19 bool isRoot() const { return components_.empty(); }
20 bool empty() const { return path_.empty(); }
21
22private:
23 std::string path_;
24 std::vector<std::string> components_;
25};
26
27} // namespace enzo
Definition PrimPath.h:8