Enzo
Loading...
Searching...
No Matches
src
Engine
Operator
PrimPath.h
1
#pragma once
2
#include <string>
3
#include <vector>
4
5
namespace
enzo {
6
7
class
PrimPath
8
{
9
public
:
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
22
private
:
23
std::string path_;
24
std::vector<std::string> components_;
25
};
26
27
}
// namespace enzo
enzo::PrimPath
Definition
PrimPath.h:8
Generated by
1.12.0