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