Einhugur Framework for C++

DocumentType Class

A class to represent document types which can for example be used to filter File Dialogs.

Object
   DocumentType

class DocumentType

Constructors

DocumentTypeUse this constructor to construct a document type that is only based on old style MAcOS MacType.
DocumentTypeUse this constructor to construct a document type that only based on a file extension.
DocumentTypeUse this constructor to construct a document type that is primarily based on a file extension and secondarily based on old style MAcOS MacType.

Methods

GetExtensionReturns the extension.
GetType
IsOfTypeReturns true if the supplied FileSystemItem has the correct extension or if the supplied OSType is the correct OSType for this document type.
Release (Inherited)Decreases reference count by one and deletes the object if the reference count reached zero.
Retain (Inherited)Increases the reference count by one.