#ifndef CT_ABSTRACTITEMATTRIBUTET_HPP #define CT_ABSTRACTITEMATTRIBUTET_HPP #include "ct_attributes/abstract/ct_abstractitemattributet.h" #include "ct_tools/ct_numerictostringconversiont.h" template CT_AbstractItemAttributeT::CT_AbstractItemAttributeT(const CT_OutAbstractItemAttributeModel *model, const CT_AbstractCategory *category, const CT_AbstractResult *result) : CT_AbstractItemAttribute(model, category, result) { } template CT_AbstractItemAttributeT::CT_AbstractItemAttributeT(const QString &modelName, const QString &categoryName, const CT_AbstractResult *result) : CT_AbstractItemAttribute(modelName, categoryName, result) { } template CT_AbstractItemAttributeT::CT_AbstractItemAttributeT(const QString &categoryName) : CT_AbstractItemAttribute(categoryName) { } template bool CT_AbstractItemAttributeT::toBool(const CT_AbstractItemDrawable *item, bool *ok) const { Q_UNUSED(item) if(ok != NULL) *ok = false; return false; } template double CT_AbstractItemAttributeT::toDouble(const CT_AbstractItemDrawable *item, bool *ok) const { Q_UNUSED(item) if(ok != NULL) *ok = false; return false; } template float CT_AbstractItemAttributeT::toFloat(const CT_AbstractItemDrawable *item, bool *ok) const { Q_UNUSED(item) if(ok != NULL) *ok = false; return false; } template long double CT_AbstractItemAttributeT::toLongDouble(const CT_AbstractItemDrawable *item, bool *ok) const { Q_UNUSED(item) if(ok != NULL) *ok = false; return false; } template int CT_AbstractItemAttributeT::toInt(const CT_AbstractItemDrawable *item, bool *ok) const { Q_UNUSED(item) if(ok != NULL) *ok = false; return false; } template quint64 CT_AbstractItemAttributeT::toUInt64(const CT_AbstractItemDrawable *item, bool *ok) const { Q_UNUSED(item) if(ok != NULL) *ok = false; return false; } template size_t CT_AbstractItemAttributeT::toSizeT(const CT_AbstractItemDrawable *item, bool *ok) const { Q_UNUSED(item) if(ok != NULL) *ok = false; return false; } template QString CT_AbstractItemAttributeT::toString(const CT_AbstractItemDrawable *item, bool *ok) const { if(ok != NULL) *ok = true; return CT_NumericToStringConversionT::toString(data(item)); } template CT_AbstractCategory::ValueType CT_AbstractItemAttributeT::type() const { return CT_AbstractCategory::staticValueTypeToCategoryType(); } template QString CT_AbstractItemAttributeT::typeToString() const { return CT_AbstractCategory::staticValueTypeToCategoryTypeString(); } #endif // CT_ABSTRACTITEMATTRIBUTET_HPP