class CCL::PathClassifier

Overview

#include <pathclassifier.h>

class PathClassifier
{
public:
    // enums

    enum PathClass;

    // methods

    static PathClass classify (UrlRef path);
    static bool isRoot (UrlRef path);
    static bool isVolume (UrlRef path);
    static bool isRegular (UrlRef path);
    static bool isSameVolume (UrlRef path1, UrlRef path2);
    static bool needsExtraction (UrlRef path);
    static bool isCompressedFile (UrlRef path);
    static String getVolumeLabel (UrlRef path, const VolumeInfo& info);
    static MutableCString getVolumeIdentifier (UrlRef path, const VolumeInfo& info);
};

Detailed Documentation

Methods

static bool isRoot (UrlRef path)

kNativeRoot or kPackageRoot

static bool isVolume (UrlRef path)

kNativeVolume or kPackageVolume

static bool isRegular (UrlRef path)

kFile or kFolder

static bool needsExtraction (UrlRef path)

file inside a package which needs to be extracted

static bool isCompressedFile (UrlRef path)

file inside a package which is compressed

static String getVolumeLabel (UrlRef path, const VolumeInfo& info)

for display, may contain translated elements

static MutableCString getVolumeIdentifier (UrlRef path, const VolumeInfo& info)

for internal identification, language-indenpendent