From 09dd11ddf800898c00ecb04a65fb5cd10fb481fa Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 8 May 2024 12:32:41 +0200 Subject: MHR-23: :boom: changes, reworked project tree. Signed-off-by: Amlal El Mahrouss --- NewKernel/CFKit/Property.hpp | 46 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 NewKernel/CFKit/Property.hpp (limited to 'NewKernel/CFKit/Property.hpp') diff --git a/NewKernel/CFKit/Property.hpp b/NewKernel/CFKit/Property.hpp new file mode 100644 index 00000000..c0fcda90 --- /dev/null +++ b/NewKernel/CFKit/Property.hpp @@ -0,0 +1,46 @@ +/* ------------------------------------------- + + Copyright Mahrouss Logic + +------------------------------------------- */ + +#ifndef _INC_PLIST_HPP__ +#define _INC_PLIST_HPP__ + +#include +#include +#include +#include + +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 fName; + PropertyId fAction; + }; + + template + using PropertyArray = Array; +} // namespace NewOS + +#endif // !_INC_PLIST_HPP__ -- cgit v1.2.3