blob: 855f5469e7e16961a635e7dbaf47f83d3f620013 (
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
|
/*
* ========================================================
*
* hCore
* Copyright Mahrouss Logic, all rights reserved.
*
* ========================================================
*/
#ifndef _INC_PLIST_HPP__
#define _INC_PLIST_HPP__
#include <NewKit/Array.hpp>
#include <NewKit/Defines.hpp>
#include <NewKit/Function.hpp>
#include <NewKit/String.hpp>
namespace hCore
{
using PropertyId = Int;
class Property
{
public:
explicit Property(const StringView &sw)
: m_sName(sw) {}
virtual ~Property() = default;
public:
Property &operator=(const Property &) = default;
Property(const Property &) = default;
bool StringEquals(StringView &name);
const PropertyId &GetPropertyById();
private:
Ref<StringView> m_sName;
PropertyId m_Action;
};
template<SSizeT N> using PropertyArray = Array<Property, N>;
} // namespace hCore
#endif // !_INC_PLIST_HPP__
|