cstlcompilerobject.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /*
  2. Copyright 2017 Herik Lima de Castro and Marcelo Medeiros Eler
  3. Distributed under MIT license, or public domain if desired and
  4. recognized in your jurisdiction.
  5. See file LICENSE for detail.
  6. */
  7. #ifndef CSTLCOMPILEROBJECT_H
  8. #define CSTLCOMPILEROBJECT_H
  9. // clazy:excludeall=const-signal-or-slot
  10. #include <QObject>
  11. #include "cppwebframework_global.h"
  12. CWF_BEGIN_NAMESPACE
  13. /**
  14. * @brief The Properties class is an auxiliar class to the CSTLCompiler.
  15. */
  16. class CPPWEBFRAMEWORKSHARED_EXPORT CSTLCompilerObject : public QObject
  17. {
  18. Q_OBJECT
  19. QString value;
  20. QString type;
  21. public:
  22. /**
  23. * @brief This constructor can set the CSTLCompilerObject's parent.
  24. * @param QObject *parent : parent.
  25. */
  26. explicit CSTLCompilerObject(QObject *parent = nullptr)
  27. : QObject(parent)
  28. {}
  29. public slots:
  30. /**
  31. * @brief Returns the value.
  32. * @return QString : Value.
  33. */
  34. inline QString getValue() const noexcept { return value; }
  35. /**
  36. * @brief Sets the value.
  37. * @param const QString &value : Value.
  38. */
  39. inline void setValue(const QString &value) noexcept { this->value = value; }
  40. /**
  41. * @brief Returns the type.
  42. * @return QString : Type.
  43. */
  44. inline QString getType() const noexcept { return type; }
  45. /**
  46. * @brief Sets the type.
  47. * @param const QString &value : Type.
  48. */
  49. inline void setType(const QString &value) noexcept { type = value; }
  50. };
  51. CWF_END_NAMESPACE
  52. #endif // CSTLCOMPILEROBJECT_H