summaryrefslogtreecommitdiffstats
path: root/include/core/NodePath.hpp
blob: 3f75ca173e11a98e0d6967ee8e795f33817ef6bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#ifndef NODEPATH_H
#define NODEPATH_H

#if defined(_WIN32)
#  ifdef _GD_CPP_CORE_API_IMPL
#    define GD_CPP_CORE_API __declspec(dllexport)
#  else
#    define GD_CPP_CORE_API __declspec(dllimport)
#  endif
#else
#  define GD_CPP_CORE_API
#endif

#include "String.hpp"

#include <godot/godot_node_path.h>

namespace godot {


class GD_CPP_CORE_API NodePath
{
	godot_node_path _node_path;
public:
	NodePath();

	NodePath(const NodePath &other);

	NodePath(const String& from);

	NodePath(const char *contents);

	String get_name(const int idx) const;

	int get_name_count() const;

	String get_property() const;

	String get_subname(const int idx) const;

	int get_subname_count() const;

	bool is_absolute() const;

	bool is_empty() const;

	operator String() const;

	void operator =(const NodePath& other);

	~NodePath();
};



}

#endif // NODEPATH_H