blob: cffdb84d4c306bb1c1f2aaa6473ff8e967bfce73 (
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
|
/*
* ========================================================
*
* 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__
|