Skip to content
AmayaHena edited this page Jul 11, 2020 · 2 revisions

Ctor

File();

USAGE: classic default ctor

File(const File &f);

USAGE: classic copy ctor

PARAMETER:

f: File Object

File(const std::string &path);

USAGE: set the path at the given path

PARAMETER:

path: a path to a file

Path Change

bool setPath(const std::string &path);

USAGE: change the current path to the given path

PARAMETER:

path: a path to a file

Management

bool isFile();

USAGE: check if the file exists

bool create();

USAGE: create the file if it doesn't exist yet

bool create(const std::vector<std::string> &in);

USAGE: create the if it doesn't exist yet, and write text inside

PARAMETER:

in: text will be written in the file

bool write(const std::vector<std::string> &in);

USAGE: write text in the file

PARAMETER:

in: text will be written in the file

bool rm();

USAGE: delete the current file

Getters

const std::string &getExtension() const;

USAGE: give the extension of the current path

const std::string &getName() const;

USAGE: give the name of the current path

const std::string &getPath() const;

USAGE: give the current path set

std::vector<std::string> getContent();

USAGE: give the content of the current path (no buffering)

Intro

Home

FileManager

File

Loader

Parser

FormatParser

JSONParser

XMLParser

Clone this wiki locally