Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
FileCrawlerfinal

#include "crawler.hh"

Inheritance diagram for FileCrawler:
[legend]

Public Member Functions

ASE_DEFINE_MAKE_SHARED (FileCrawler)
String2assign (const String &utf8path, bool existingfile) override
Resourcecanonify (const String &utf8cwd, const String &utf8fragment, bool constraindir, bool constrainfile) override
Stringcanonify_fspath (const String &fspath, const String &fsfragment, bool constraindir, bool constrainfile)
Resourcecurrent_folder () override
Stringexpand_fsdir (const String &fsdir)
ResourceSlist_entries () override
- Public Member Functions inherited from EmittableImpl
voidemit_event (const String &type, const String &detail, const ValueR fields={}) override
voidemit_notify (const String &detail) override
ASE_USE_RESULT Connectionon_event (const String &eventselector, const EventHandler &eventhandler) override
- Public Member Functions inherited from Emittable
voidjs_trigger (const String &eventselector, JsTrigger callback)

Protected Member Functions

String2assign_ (const String &utf8path, bool existingfile, bool notify=true)
boolentries_ (const ResourceS *n, ResourceS *q) override
boolfolder_ (const Resource *n, Resource *q) override
- Protected Member Functions inherited from ObjectImpl
virtual~ObjectImpl ()=0
- Protected Member Functions inherited from EmittableImpl
virtual~EmittableImpl ()
- Protected Member Functions inherited from VirtualBase
virtual~VirtualBase () noexcept=0
- Protected Member Functions inherited from Object
virtual~Object ()=0
- Protected Member Functions inherited from ResourceCrawler
ResourceCrawler ()

Additional Inherited Members

- Public Types inherited from ResourceCrawler
usingString2 = std::pair< String, String >
- Public Attributes inherited from ResourceCrawler
Member<&ResourceCrawler::entries_ >entries
Member<&ResourceCrawler::folder_ >folder

Detailed Description

Class implementing a file system crawler.

Member Function Documentation

assign_()

FileCrawler::String2 assign_ ( const String & utf8path,
bool existingfile,
bool notify = true
)
protected

Open a new folder and make it the current folder.

folder_()

bool folder_ ( const Resource * n,
Resource * q
)
overrideprotectedvirtual

Implements ResourceCrawler.

entries_()

bool entries_ ( const ResourceS * n,
ResourceS * q
)
overrideprotectedvirtual

Implements ResourceCrawler.

ASE_DEFINE_MAKE_SHARED()

ASE_DEFINE_MAKE_SHARED ( FileCrawler )

list_entries()

ResourceS list_entries ( )
overridevirtual

List all entries in the current folder.

Implements ResourceCrawler.

current_folder()

Resource current_folder ( )
overridevirtual

Return the current folder.

Implements ResourceCrawler.

assign()

String2 assign ( const String & utf8path,
bool existingfile
)
overridevirtual

Move to a different path.

Implements ResourceCrawler.

canonify()

Resource canonify ( const String & utf8cwd,
const String & utf8fragment,
bool constraindir,
bool constrainfile
)
overridevirtual

Canonify a UTF-8 path name, optionally constraining it to a folder or file.

Implements ResourceCrawler.

canonify_fspath()

String canonify_fspath ( const String & fspath,
const String & fsfragment,
bool constraindir,
bool constrainfile
)

Canonify a path (file system encoding), optionally constraining it to a directory or file.

expand_fsdir()

String expand_fsdir ( const String & fsdir)

Expand directory name (file system encoding) to absolute folder path.