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


Public Member Functions | |
| saveResult () | |
| Default constructor creates a successful result. | |
| saveResult (std::vector< nsbaci::Error > errs) | |
| Constructs a result from a vector of errors. | |
| saveResult (nsbaci::Error error) | |
| Constructs a failed result from a single error. | |
| saveResult (saveResult &&) noexcept=default | |
| saveResult & | operator= (saveResult &&) noexcept=default |
| saveResult (const saveResult &)=default | |
| saveResult & | operator= (const saveResult &)=default |
| Public Member Functions inherited from FileResult | |
| 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). | |
Result type for file save operations.
Contains only success/failure status and error information since save operations do not return additional data on success.
|
inlineexplicit |
Constructs a result from a vector of errors.
| errs | Vector of errors encountered during the save. |

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