5 #include <libutl/Collection.h> 6 #include <libutl/Factory.h> 7 #include <libutl/FSobject.h> 100 virtual void unlink();
102 void unlinkRecursive();
108 return getFlag(flg_flat);
153 return scan(flags, factory, pred, predVal,
nullptr);
162 void rescan(
uint_t flags = 0,
165 bool predVal =
true);
171 scan_recursive_flat = 2,
172 scan_followLinks = 4,
173 scan_excludeDotDirs = 8,
192 setFlag(flg_flat, flat);
void serialize(bool &b, Stream &stream, uint_t io, uint_t mode=ser_default)
Serialize a boolean.
void deInit()
De-initialize UTL++.
const Collection * entries() const
Get the collection of entries.
default representation (via getSerializeMode())
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
Directory(const String &path, const Directory *dir=nullptr)
Constructor.
size_t scan(uint_t flags=0, Factory *factory=nullptr, const Predicate *pred=nullptr, bool predVal=true)
Scan the directory to populate the entries collection.
Collection * entries()
Get the collection of entries.
void copy(T *dest, const T *src, size_t len)
Copy one array of objects to another.
bool isFlat() const
Determine whether a flat scan was done.
Logical predicate abstraction.
unsigned int uint_t
Unsigned integer.
Directory filesystem object.
const uint_t uint_t_max
Maximum uint_t value.
Root of UTL++ class hierarchy.
int compare(bool lhs, bool rhs)
Compare two boolean values.
void dump(const FwdIt &begin, const FwdIt &end, Stream &os, uint_t level=uint_t_max, bool key=false, bool printClassName=false, uint_t indent=0, const char *separator=nullptr)
Dump objects to the given stream (with Object::dump()).
void init()
Initialize UTL++.
Object creation abstraction.