CPackageEntity



Provides implementation of some common methods of the IPackageEntity interface.

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

class CPackageEntity :public virtual IPackageEntity
{
public:
    // Properties
    IPackage *getPackage() override;
    // // Since 9.0.0
    String getNamespace() override;

    // Supported platforms
    int getPlatformCount() override;
    PLATFORM_VERSION getPlatform(const int index) override;

    // Header files
    int getHeaderFileCount() override;
    String getHeaderFile(const int index) override;

    void Release() override;

    CPackageEntity(
        IPackage *package, // Package to which the entity belongs
        const String &ns); // Namespace to which the entity belongs
    virtual ~CPackageEntity() = default;

    void AddPlatform(const PLATFORM_VERSION &platform); // Add new platform to the list
    void AddHeaderFile(const String &value); // Add new header file to the list(use path relative to the Packages directory)
};
Namespace: nitisa
Include: Nitisa/Core/PackageEntity.h