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, all rights reserved.
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/Defines.h>
13#include <NeKit/Function.h>
14#include <NeKit/KString.h>
15
16#define kMaxPropLen (256U)
17
18namespace CF {
19using namespace Kernel;
20
23
26class Property {
27 public:
29 virtual ~Property();
30
31 public:
32 Property& operator=(const Property&) = default;
33 Property(const Property&) = default;
34
37 KString& GetKey();
38
39 private:
43};
44
45template <SizeT N>
47} // namespace CF
48
49namespace Kernel {
50using namespace CF;
51}
52
53#endif // !CFKIT_PROPS_H
Property & operator=(const Property &)=default
Property(const Property &)=default
BOOL StringEquals(KString &name)
Check if property's name equals to name.
Definition Property.cc:24
PropertyId & GetValue()
Gets the value of the property.
Definition Property.cc:38
Property()
Constructor.
PropertyId fValue
Definition Property.h:41
virtual ~Property()
Destructor.
KString fName
Definition Property.h:40
Ref< XRN::GUID > fGUID
Definition Property.h:42
KString & GetKey()
Gets the key (name) of property.
Definition Property.cc:31
Definition Array.h:15
Kernel string class, not dynamic.
Definition KString.h:19
Definition Ref.h:18
#define BOOL
Definition macros.h:25
#define kMaxPropLen
Definition Property.h:16
CFKit.
Definition GUIDWizard.h:18
UIntPtr PropertyId
handle to anything (number, ptr, string...)
Definition Property.h:22
Array< Property, N > PropertyArray
Definition Property.h:46
USER_PROCESS inline definitions.
Definition Qr.h:793
__UINTPTR_TYPE__ UIntPtr
Definition Defines.h:60