mirror of
https://github.com/QuasarApp/QuasarAppLib.git
synced 2025-04-30 11:44:40 +00:00
added the new validableobject interface
This commit is contained in:
parent
246ea80b36
commit
ee6df818d0
@ -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
|
#endif // HUMANREADABLEOBJECT_H
|
||||||
|
18
validableobject.cpp
Normal file
18
validableobject.cpp
Normal 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
35
validableobject.h
Normal 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
|
Loading…
x
Reference in New Issue
Block a user