XCKS file reader.
More...
#include <xcksreader.hpp>
|
static bool | parseXCKS (XCKSReaderHandler &xcksReaderHandler, std::istream &is, const std::filesystem::path &basePath) |
| Convenience method for parsing an XCKS file from an input stream. More...
|
|
static bool | parseXCKS (XCKSReaderHandler &xcksReaderHandler, const std::filesystem::path &fileFullPath) |
| Convenience method for parsing an XCKS file from a file. More...
|
|
static bool | parseXCKS (XCKSReaderHandler &xcksReaderHandler, const std::filesystem::path &filePath, const std::filesystem::path &basePath) |
| Convenience method for parsing an XCKS file from a file and a base path. More...
|
|
XCKS file reader.
Definition at line 45 of file xcksreader.hpp.
◆ XCKSReader() [1/3]
libxcks::XCKSReader::XCKSReader |
( |
| ) |
|
|
delete |
Deleted default constructor.
◆ XCKSReader() [2/3]
libxcks::XCKSReader::XCKSReader |
( |
const XCKSReader & |
| ) |
|
|
delete |
Deleted copy constructor.
◆ XCKSReader() [3/3]
Constructor.
- Parameters
-
[in] | xcksReaderHandler | The XCKS file reader handler. |
Definition at line 55 of file xcksreader.cpp.
◆ ~XCKSReader()
libxcks::XCKSReader::~XCKSReader |
( |
| ) |
|
|
virtual |
◆ operator=()
Deleted copy assignment operator.
◆ parse() [1/3]
bool libxcks::XCKSReader::parse |
( |
const std::filesystem::path & |
fileFullPath | ) |
|
|
virtual |
Parses an XCKS file from a file.
- Note
- Errors must be handled in
XCKSReaderHandler::onFatalError
(the provided XCKS file reader's handler).
- Parameters
-
[in] | fileFullPath | The path of the file to parse. This path must be an absolute path. |
- Returns
true
if the XCKS file has been successfully read from the given file, false
otherwise.
Definition at line 91 of file xcksreader.cpp.
◆ parse() [2/3]
bool libxcks::XCKSReader::parse |
( |
const std::filesystem::path & |
filePath, |
|
|
const std::filesystem::path & |
basePath |
|
) |
| |
|
virtual |
Parses an XCKS file from a file and a base path.
- Note
- Errors must be handled in
XCKSReaderHandler::onFatalError
(the provided XCKS file reader's handler).
- Parameters
-
[in] | filePath | The path of the file to parse. This path can be an absolute path or relative path. |
[in] | basePath | The base path of the read XCKS file. It is independent from filePath . This path must be an absolute path of a directory and must ends with a path separator. |
- Returns
true
if the XCKS file has been successfully read from the given file and base path, false
otherwise.
Definition at line 116 of file xcksreader.cpp.
◆ parse() [3/3]
bool libxcks::XCKSReader::parse |
( |
std::istream & |
is, |
|
|
const std::filesystem::path & |
basePath |
|
) |
| |
|
virtual |
Parses an XCKS file from an input stream.
- Note
- Errors must be handled in
XCKSReaderHandler::onFatalError
(the provided XCKS file reader's handler).
- Parameters
-
[in,out] | is | The input stream. |
[in] | basePath | The base path of the read XCKS file. This path must be an absolute path of a directory and must ends with a path separator. |
- Returns
true
if the XCKS file has been successfully read from the given stream, false
otherwise.
Reimplemented in libxcks::ZXCKSReader.
Definition at line 73 of file xcksreader.cpp.
◆ parseXCKS() [1/3]
bool libxcks::XCKSReader::parseXCKS |
( |
XCKSReaderHandler & |
xcksReaderHandler, |
|
|
const std::filesystem::path & |
fileFullPath |
|
) |
| |
|
static |
Convenience method for parsing an XCKS file from a file.
- Note
- Errors must be handled in
XCKSReaderHandler::onFatalError
(the provided XCKS file reader's handler).
- Parameters
-
[in] | xcksReaderHandler | The XCKS file reader handler. |
[in] | fileFullPath | The path of the file to parse. This path must be an absolute path. |
- Returns
true
if the XCKS file has been successfully read from the given file, false
otherwise.
Definition at line 154 of file xcksreader.cpp.
◆ parseXCKS() [2/3]
bool libxcks::XCKSReader::parseXCKS |
( |
XCKSReaderHandler & |
xcksReaderHandler, |
|
|
const std::filesystem::path & |
filePath, |
|
|
const std::filesystem::path & |
basePath |
|
) |
| |
|
static |
Convenience method for parsing an XCKS file from a file and a base path.
- Note
- Errors must be handled in
XCKSReaderHandler::onFatalError
(the provided XCKS file reader's handler).
- Parameters
-
[in] | xcksReaderHandler | The XCKS file reader handler. |
[in] | filePath | The path of the file to parse. This path can be an absolute path or relative path. |
[in] | basePath | The base path of the read XCKS file. It is independent from filePath . This path must be an absolute path of a directory and must ends with a path separator. |
- Returns
true
if the XCKS file has been successfully read from the given file and base path, false
otherwise.
Definition at line 166 of file xcksreader.cpp.
◆ parseXCKS() [3/3]
bool libxcks::XCKSReader::parseXCKS |
( |
XCKSReaderHandler & |
xcksReaderHandler, |
|
|
std::istream & |
is, |
|
|
const std::filesystem::path & |
basePath |
|
) |
| |
|
static |
Convenience method for parsing an XCKS file from an input stream.
- Note
- Errors must be handled in
XCKSReaderHandler::onFatalError
(the provided XCKS file reader's handler).
- Parameters
-
[in] | xcksReaderHandler | The XCKS file reader handler. |
[in,out] | is | The input stream. |
[in] | basePath | The base path of the read XCKS file. This path must be an absolute path of a directory and must ends with a path separator. |
- Returns
true
if the XCKS file has been successfully read from the given stream, false
otherwise.
Definition at line 142 of file xcksreader.cpp.
◆ readerHandler
The documentation for this class was generated from the following files: