Loader - AmayaHena/Nyx GitHub Wiki
Ctor
Loader();
USAGE: classic default ctor
Loader(const std::string &path);
USAGE: loading the given path at the creation
PARAMETER:
path: a path to a file
File Management
bool load(const std::string &path);
USAGE: add a File to the Loader container
PARAMETER:
path: a path to a file
bool delFile(const std::string &path);
USAGE: del a File to the Loader container from the path
PARAMETER:
path: a path to a file
bool delFile(size_t pos = 0);
USAGE: del a File to the Loader container from the position
PARAMETER:
pos: position in the container
Getters
bool isFile(const std::string &s);
USAGE: check if the path given is already in the container
PARAMETER:
path: a path to a file
size_t getFileNb();
USAGE: give the number of file(s) in the container
Operator overload
File &operator[](size_t pos)
USAGE: return the File from the given position in the container
PARAMETER:
pos: a position in the container