added nodes.
This commit is contained in:
37
nodes/nodes/ntxiclasstype.h
Normal file
37
nodes/nodes/ntxiclasstype.h
Normal 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
|
||||
Reference in New Issue
Block a user