7 #ifndef _DDL_H_INCLUDED_
8 #define _DDL_H_INCLUDED_
45 if (pvObj->IsPredefined())
70 if (-1 == nFrom || -1 == nTo ||
71 (
int)pvObj->size() < nFrom || (
int)pvObj->size() < nTo)
80 std::rotate(pvObj->begin() + nFrom,
81 pvObj->begin() + nFrom + 1,
82 pvObj->begin() + nTo + 1);
86 std::rotate(pvObj->begin() + nTo,
87 pvObj->begin() + nFrom,
88 pvObj->begin() + nFrom + 1);
107 if (pvObj->IsPredefined())
109 return Ref<T>(pvObj);
111 return new T(*pvObj);
156 template<
typename T = IDDL>
#define RETURN_NOERROR
Return status ERR_NOERROR, which requires the calling function's return type to be tResult.
#define RETURN_ERROR(code)
Return specific error code, which requires the calling function's return type to be tResult.
#define RETURN_IF_POINTER_NULL(_ptr)
Return ERR_POINTER if _ptr is nullptr, which requires the calling function's return type to be tResul...
A common result class usable as return value throughout.
tBool IsEqual(const _myType &strCmp, tSize nPos=0, tSize nLength=InvalidPos) const
This function checks if the two strings are equal (case sensitive)
Interface class for object representation of DDL descriptions.
The abstract helper class for representation classes for DDL descriptions.
virtual int GetCreationLevel() const
Getter for the creation level.
virtual bool IsOverwriteable() const
Getter for the predefinition flag.
static T * Ref(T *pvObj)
Functor for use with std::transform() to ref the objects where the elements of a vector point at,...
static T * DeleteChild(T *pvObj)
Functor for use with std::transform() to delete all objects where the elements of a vector point at.
virtual bool IsInitialized() const
Getter for the initialization flag.
virtual bool IsPredefined() const
Getter for the predefinition flag.
static tResult MoveChild(T *pvObj, const int nFrom, const int nTo)
Method moves element within the list.
static bool IsEqual(IDDL *poLHS, IDDL *poRHS)
Predicate to compare 2 DDL representation objects (for use with std::unique()).
static T * Clone(T *pvObj)
Functor for use with std::transform() to clone the objects where the elements of a vector point at.
static bool IsSorted(IDDL *poLHS, IDDL *poRHS)
Sort predicate to compare to 2 DDL representation objects (for use with std::sort()).
Namespace for the mainpage_pkg_ddl.
functional pattern to use std find algorithms
bool operator()(const T *poEntry)
Compare function for pattern.
const A_UTILS_NS::cString & m_strPattern
the name of the pattern
cDDLCompareFunctor(const A_UTILS_NS::cString &strPattern)
CTR.