class CCL::DocumentMetaInfo

Meta Information saved with documents.

#include <documentmetainfo.h>

class DocumentMetaInfo: public CCL::AttributeAccessor
{
public:
    // construction

    DocumentMetaInfo (IAttributeList& attributes);

    // methods

    METAINFO_ATTRIBUTE_STRING (MimeType, Meta::kDocumentMimeType);

    Meta::kDocumentGenerator METAINFO_ATTRIBUTE_STRING (
        Creator,
        Meta::kDocumentCreator
    );

    Meta::kDocumentGenerator Meta::kDocumentTitle METAINFO_ATTRIBUTE_INT (
        FormatVersion,
        Meta::kDocumentFormatVersion
    );

    METAINFO_ATTRIBUTE_STRING (Description, Meta::kDocumentDescription);

    Meta::kDocumentKeywords METAINFO_ATTRIBUTE_STRING (
        LocalizedTitle,
        Meta::kDocumentLocalizedTitle
    );
};

Inherited Members

public:
    // methods

    virtual const IAttributeList& getList () const = 0;
    Variant getVariant (StringID id) const;
    int64 getInt64 (StringID id) const;
    int getInt (StringID id) const;
    bool getBool (StringID id) const;
    double getFloat (StringID id) const;
    String getString (StringID id) const;
    MutableCString getCString (StringID id, TextEncoding encoding = Text::kASCII) const;
    IUnknown* getUnknown (StringID id) const;
    IUnknownIterator* newUnknownIterator (StringID id) const;
    tresult getResult (StringID id) const;
    bool getInt64 (int64& value, StringID id) const;
    bool getInt (int& value, StringID id) const;
    bool getBool (bool& value, StringID id) const;
    bool getFloat (double& value, StringID id) const;
    bool getFloat (float& value, StringID id) const;
    bool getString (String& value, StringID id) const;

    bool getCString (
        MutableCString& value,
        StringID id,
        TextEncoding encoding = Text::kASCII
    ) const;

    bool getUnknown (IUnknown*& value, StringID id) const;
    virtual IAttributeList& getList () = 0;
    IAttributeList* newAttributes ();
    IAttributeQueue* newAttributeQueue ();
    IAttributeList* newPersistentAttributes ();
    bool set (StringID id, int64 v);
    bool set (StringID id, int v);
    bool set (StringID id, tresult v);
    bool set (StringID id, bool b, int flags = 0);
    bool set (StringID id, double v);
    bool set (StringID id, StringRef s);
    bool set (StringID id, CStringRef s, TextEncoding encoding = Text::kASCII);
    bool set (StringID id, CStringPtr s, TextEncoding encoding = Text::kASCII);
    bool set (StringID id, IUnknown* u, int flags = 0);
    bool queue (StringID id, IUnknown* u, int flags = 0);
    IUnknown* unqueueUnknown (StringID id);
    virtual IAttributeList& getList ();
    virtual const IAttributeList& getList () const;