|
libxcks
0.1.0.1
|
A directories structure for XCKS files. More...

Classes | |
| class | const_file_iterator |
| A forward iterator on files of a directory structure. More... | |
| class | Directory |
| A directory of the directory structure for XCKS files. More... | |
| class | Element |
| An element of the directory structure for XCKS files. More... | |
| class | File |
| An file of the directory structure for XCKS files. More... | |
Public Member Functions | |
| XCKSDirStruct () | |
| Default constructor. More... | |
| XCKSDirStruct (const XCKSDirStruct &)=delete | |
| Deleted copy constructor. More... | |
| XCKSDirStruct & | operator= (const XCKSDirStruct &)=delete |
| Deleted assignment operator. More... | |
| const_file_iterator | files_begin () const |
| Returns an iterator pointing at the first file of the directory structure. More... | |
| const_file_iterator | files_end () const |
| Returns an iterator pointing at the one-after-the-last file of directory structure. More... | |
| bool | addFile (const filesystem::path &filename, void *data=nullptr) |
| Adds a new file in the directory structure. More... | |
Protected Attributes | |
| Element * | root |
| Root of the directory structure. More... | |
A directories structure for XCKS files.
Represents a directories structure with relative paths from a root directory.
Definition at line 64 of file xcksfilewriter.cpp.
|
inline |
Default constructor.
Definition at line 77 of file xcksfilewriter.cpp.
|
delete |
Deleted copy constructor.
| bool libxcks::XCKSDirStruct::addFile | ( | const filesystem::path & | filename, |
| void * | data = nullptr |
||
| ) |
Adds a new file in the directory structure.
| filename | The name of the file to add (relative form). |
| data | The data associated with the file. |
true is the file has been created in the structure, false otherwise. Definition at line 522 of file xcksfilewriter.cpp.
| XCKSDirStruct::const_file_iterator libxcks::XCKSDirStruct::files_begin | ( | ) | const |
Returns an iterator pointing at the first file of the directory structure.
Definition at line 481 of file xcksfilewriter.cpp.
|
inline |
Returns an iterator pointing at the one-after-the-last file of directory structure.
Definition at line 507 of file xcksfilewriter.cpp.
|
delete |
Deleted assignment operator.
|
protected |
Root of the directory structure.
Definition at line 71 of file xcksfilewriter.cpp.