Content


NTL
Core
CEventList

CEventList



Storage for event descriptions of some entity(form, control,...). It is used in packages.

You can find more information in comments below. Overrided methods can be found in corresponding base interface.

class CEventList :public virtual IEventList
{
public:
    IPackage *getPackage() override;
    IClass *getParent() override;
    int getCount() override;
    IEvent *getEvent(const int index) override;
    IEvent *getEvent(const String &name) override;
    IPackageEntity *getEntity() override;

    void Release() override;
    void Save(Variant &dest) override;
    void Load(const Variant &src) override;
    void Export(std::wofstream &f, const String &shift, const String &owner, const String &form, const String &dialog_box) override;

    CEventList(IPackage *package, IClass *parent, IPackageEntity *entity); // Create empty event list 
    virtual ~CEventList();

    void Delete(const int index); // Delete event by index 
    void Delete(IEvent *item); // Delete event 
    void Delete(const String &name); // Delete event by name 
    void Clear(); // Delete all events 

    template<class Type> Type *Add(Type *item); // Add new property 
};
Namespace: nitisa
Include: Nitisa/Package/Core/EventList.h