Rerun C++ SDK
Loading...
Searching...
No Matches
entity_path.hpp
1#pragma once
2
3#include <string_view>
4#include <vector>
5
6namespace rerun {
7
8 /// Escape an individual part of an entity path.
9 ///
10 /// For instance, `escape_entity_path_path("my image!")` will return `"my\ image\!"`.
11 std::string escape_entity_path_part(std::string_view str);
12
13 /// Construct an entity path by escaping each part of the path.
14 ///
15 /// For instance, `rerun::new_entity_path({"world", 42, "unescaped string!"})` will return
16 /// `"world/42/escaped\ string\!"`.
17 std::string new_entity_path(const std::vector<std::string_view>& path);
18
19} // namespace rerun
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
std::string new_entity_path(const std::vector< std::string_view > &path)
Construct an entity path by escaping each part of the path.
std::string escape_entity_path_part(std::string_view str)
Escape an individual part of an entity path.