blob: c4699599577abca233e8e0357401f230da96107c (
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
|
/* -------------------------------------------
Copyright SoftwareLabs
------------------------------------------- */
#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 NewOS
{
using PropertyId = Int;
/// @brief Kernel property class.
class Property
{
public:
explicit Property(const StringView& sw)
: fName(sw)
{
}
virtual ~Property() = default;
public:
Property& operator=(const Property&) = default;
Property(const Property&) = default;
bool StringEquals(StringView& name);
const PropertyId& GetPropertyById();
private:
Ref<StringView> fName;
PropertyId fAction;
};
template <SSizeT N>
using PropertyArray = Array<Property, N>;
} // namespace NewOS
#endif // !_INC_PLIST_HPP__
|