added nodes.

This commit is contained in:
Christoph Holzheuer
2026-04-02 15:15:28 +02:00
parent b05180f575
commit 0b54793b08
43 changed files with 4371 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
#ifndef NTX_ICLASSTYPE_H
#define NTX_ICLASSTYPE_H
#include <ntx.h>
namespace ntx
{
/**
* @brief Minimales Interface für den 'ClassType' Aspekt: Der CType entspricht
* dem Element-namen eines Knotens im XML. Die ClassTypeId ist eine performante
* Repräsentation (z.B. Hash) dieses Namens. Kann unterschiedliche Implementierungen haben,
* z.B.: einfaches Hochzählen, Hash des Strings, den String selbst oder eine Meta-Klasse,
* vgl. QObject.
*/
class NtxIClassType
{
public:
virtual ~NtxIClassType() = default;
virtual const NtxClassTypeId getClassTypeId() const = 0;
virtual const NtxString& getClassTypeLabel() const = 0;
protected:
// ✅ Protected - nur abgeleitete Klassen und Friends
virtual void setClassTypeLabel(const NtxString& idString) = 0;
virtual void setClassTypeId(NtxClassTypeId classTypeId) = 0;
};
} // namespace ntx
#endif // NTX_ICLASSTYPE_H