CPackageComponent



Basic implementation of the IPackageComponent interface. We suggest to use it as a base class for your package components.

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

class CPackageComponent :public virtual IPackageComponent, public CPackageEntity
{
public:
    void Save(Variant &dest, IPropertyList *properties, IEventList *events) override;
    void Load(const Variant &src, IPropertyList *properties, IEventList *events) override;
    void Export(std::wofstream &f, const String &shift, const String &owner, IPropertyList *properties, IEventList *events, const String &form, const String &dialog_box) override;
    void ExportExtra(std::wofstream &f, const String &shift, IComponent *component) override;
    bool CreateListItem(IComponent *component, IListItem *parent, IListItem **item, IPackageComponentListener *listener = nullptr) override; // Creates nothing. Return false

    CPackageComponent(
        IPackage *package, // Package to which the entity belongs
        const String &ns); // Namespace to which the entity belongs
};
Namespace: nitisa
Include: Nitisa/Core/PackageComponent.h