NeKernel dev
Loading...
Searching...
No Matches
Property.h
Go to the documentation of this file.
1/* ========================================
2
3 Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
4
5======================================== */
6
7#ifndef CFKIT_PROPS_H
8#define CFKIT_PROPS_H
9
10#include <CFKit/GUIDWrapper.h>
11#include <NeKit/Array.h>
12#include <NeKit/Config.h>
13#include <NeKit/Function.h>
14#include <NeKit/KString.h>
15
16#define kMaxPropLen (256U)
17
18namespace Kernel::CF {
21
24class Property {
25 public:
27 virtual ~Property();
28
29 public:
30 Property& operator=(const Property&) = default;
31 Property(const Property&) = default;
32
36
37 private:
41};
42
43template <SizeT N>
45} // namespace Kernel::CF
46
47namespace Kernel {
48using namespace Kernel::CF;
49}
50
51#endif // !CFKIT_PROPS_H
#define BOOL
Definition Array.h:15
Property & operator=(const Property &)=default
Property(const Property &)=default
KBasicString & GetKey()
Gets the key (name) of property.
Definition Property.cc:31
PropertyId & GetValue()
Gets the value of the property.
Definition Property.cc:38
PropertyId fValue
Definition Property.h:39
BOOL StringEquals(KBasicString<> &name)
Check if property's name equals to name.
Definition Property.cc:24
virtual ~Property()
Destructor.
KString fName
Definition Property.h:38
Ref< XRN::GUID > fGUID
Definition Property.h:40
Property()
Constructor.
Kernel string class, not dynamic.
Definition KString.h:20
Reference wrapper class. /// =========================================================== ///.
Definition Ref.h:22
CFKit.
Definition GUIDWizard.h:18
UIntPtr PropertyId
handle to anything (number, ptr, string...)
Definition Property.h:20
Array< Property, N > PropertyArray
Definition Property.h:44
UPS inline definitions.
Definition Device.h:12
__UINTPTR_TYPE__ UIntPtr
Definition Config.h:62
KBasicString<> KString
Definition KString.h:76
#define kMaxPropLen
Definition Property.h:16