added the new validableobject interface

This commit is contained in:
Andrei Yankovich 2022-08-06 22:01:02 +03:00
parent 246ea80b36
commit ee6df818d0
3 changed files with 55 additions and 2 deletions

View File

@ -30,9 +30,9 @@ protected:
};
/**
* @brief HRO This is short abriviature of the HumanReadableObject class.
* @brief iHRO This is short abriviature of the HumanReadableObject class.
*/
typedef HumanReadableObject HRO;
typedef HumanReadableObject iHRO;
}
#endif // HUMANREADABLEOBJECT_H

18
validableobject.cpp Normal file
View File

@ -0,0 +1,18 @@
//#
//# Copyright (C) 2022-2022 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#include "validableobject.h"
namespace QuasarAppUtils{
ValidableObject::ValidableObject()
{
}
}

35
validableobject.h Normal file
View File

@ -0,0 +1,35 @@
//#
//# Copyright (C) 2022-2022 QuasarApp.
//# Distributed under the GPLv3 software license, see the accompanying
//# Everyone is permitted to copy and distribute verbatim copies
//# of this license document, but changing it is not allowed.
//#
#ifndef VALIDABLEOBJECT_H
#define VALIDABLEOBJECT_H
namespace QuasarAppUtils{
/**
* @brief The ValidableObject class is Base interface for all object that can be checked to valid.
*/
class ValidableObject
{
public:
ValidableObject();
/**
* @brief isValid This method return true if the object is valid else false.
* @return true if the object is valid else false.
*/
virtual bool isValid() const = 0;
};
/**
* @brief iVO This is short abriviature of the ValidableObject class.
*/
typedef ValidableObject iVO;
}
#endif // VALIDABLEOBJECT_H