libUTL++
File.h
1 #pragma once
2 
4 
5 #include <libutl/FSobject.h>
6 
8 
9 UTL_NS_BEGIN;
10 
12 
20 
22 class File : public FSobject
23 {
26 
27 public:
33  File(const String& path, const Directory* dir = nullptr)
34  : FSobject(path, dir)
35  {
36  }
37 
39  void make(uint_t mode = uint_t_max) const;
40 };
41 
43 
44 UTL_NS_END;
File in a filesystem.
Definition: File.h:22
#define UTL_CLASS_DEFID
Default init() and deInit() (which are merely place-holders).
Definition: macros.h:532
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
Definition: macros.h:688
Character string.
Definition: String.h:31
File(const String &path, const Directory *dir=nullptr)
Constructor.
Definition: File.h:33
Filesystem object.
Definition: FSobject.h:35
unsigned int uint_t
Unsigned integer.
Definition: types.h:59
Directory filesystem object.
Definition: Directory.h:75
const uint_t uint_t_max
Maximum uint_t value.