![]() |
nsbaci 1.0
|
Base result type for file operations. More...
#include <fileService.h>


Public Member Functions | |
| FileResult () | |
| Default constructor creates a successful result. | |
| FileResult (std::vector< nsbaci::Error > errs) | |
| Constructs a result from a vector of errors. | |
| FileResult (nsbaci::Error error) | |
| Constructs a failed result from a single error. | |
| FileResult (FileResult &&) noexcept=default | |
| FileResult & | operator= (FileResult &&) noexcept=default |
| FileResult (const FileResult &)=default | |
| FileResult & | operator= (const FileResult &)=default |
| Public Member Functions inherited from nsbaci::BaseResult | |
| BaseResult () | |
| Default constructor creates a successful result. | |
| BaseResult (std::vector< nsbaci::Error > errs) | |
| Constructs a result from a vector of errors. | |
| BaseResult (nsbaci::Error error) | |
| Constructs a failed result from a single error. | |
| BaseResult (BaseResult &&) noexcept=default | |
| BaseResult & | operator= (BaseResult &&) noexcept=default |
| BaseResult (const BaseResult &)=default | |
| BaseResult & | operator= (const BaseResult &)=default |
Additional Inherited Members | |
| Public Attributes inherited from nsbaci::BaseResult | |
| bool | ok |
| True if the operation succeeded. | |
| std::vector< nsbaci::Error > | errors |
| Errors encountered (empty if ok is true). | |
Base result type for file operations.
Extends BaseResult with file-specific semantics. All file operation results inherit from this type.
|
inlineexplicit |
Constructs a result from a vector of errors.
| errs | Vector of errors encountered during the operation. |

|
inlineexplicit |
Constructs a failed result from a single error.
| error | The error that caused the operation to fail. |
