WSF
usmtf::Validatable Class Reference

#include <Validatable.hpp>

Inheritance diagram for usmtf::Validatable:
Collaboration diagram for usmtf::Validatable:

Public Member Functions

bool IsValid () const noexcept
Public Member Functions inherited from usmtf::ErrorManager
virtual ~ErrorManager ()=default
bool HasErrors () const noexcept
void LogErrors (std::ostream &aOut) const noexcept
const std::vector< ValidationError > & GetErrors () const

Additional Inherited Members

Protected Member Functions inherited from usmtf::ErrorManager
void AddError (const ValidationError &aError) noexcept
void AddError (const std::string &aFailureReason, const std::string &aValueValidatied, const std::string &aOptionalSuggestion="") noexcept
void AddError (const std::string &aErrorMessage) noexcept
void AddErrors (const std::vector< ValidationError > &aErrors) noexcept
void ClearErrors () noexcept

Detailed Description

I wanted to unify the handling of Errors, validation of objects and error log exports. A Validatable class has the methods for managing its validation and logging its errors.

Member Function Documentation

◆ IsValid()


The documentation for this class was generated from the following files:
Copyrights Multiple, All Rights Reserved