diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-23 19:13:48 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-03-23 19:15:17 +0100 |
| commit | a13e1c0911c0627184bc38f18c7fdda64447b3ad (patch) | |
| tree | 073a62c09bf216e85a3f310376640fa1805147f9 /dev/Kernel/CFKit/Property.h | |
| parent | 149fa096eb306d03686b3b67e813cf1a78e08cd0 (diff) | |
meta(kernel): Reworked repository's filesystem structure.
Removing useless parts of the project too.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/Kernel/CFKit/Property.h')
| -rw-r--r-- | dev/Kernel/CFKit/Property.h | 56 |
1 files changed, 0 insertions, 56 deletions
diff --git a/dev/Kernel/CFKit/Property.h b/dev/Kernel/CFKit/Property.h deleted file mode 100644 index e4588ad6..00000000 --- a/dev/Kernel/CFKit/Property.h +++ /dev/null @@ -1,56 +0,0 @@ -/* ------------------------------------------- - - Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved. - -------------------------------------------- */ - -#ifndef CFKIT_PROPS_H -#define CFKIT_PROPS_H - -#include <NewKit/Array.h> -#include <NewKit/Defines.h> -#include <NewKit/Function.h> -#include <NewKit/KString.h> -#include <CFKit/GUIDWrapper.h> - -#define kMaxPropLen (256U) - -namespace CFKit -{ - using namespace NeOS; - - /// @brief handle to anything (number, ptr, string...) - using PropertyId = UIntPtr; - - /// @brief Kernel property class. - /// @example /prop/smp_max or /prop/kern_ver - class Property - { - public: - Property(); - virtual ~Property(); - - public: - Property& operator=(const Property&) = default; - Property(const Property&) = default; - - BOOL StringEquals(KString& name); - PropertyId& GetValue(); - KString& GetKey(); - - private: - KString fName{kMaxPropLen}; - PropertyId fValue{0UL}; - Ref<XRN::GUID> fGUID{}; - }; - - template <SizeT N> - using PropertyArray = Array<Property, N>; -} // namespace CFKit - -namespace NeOS -{ - using namespace CFKit; -} - -#endif // !CFKIT_PROPS_H |
