cstlcompilerfor.h 812 B

1234567891011121314151617181920212223242526272829303132
  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 CSTLCOMPILERFOR_H
  8. #define CSTLCOMPILERFOR_H
  9. #include <QMap>
  10. #include <QXmlStreamAttributes>
  11. #include "cppwebframework_global.h"
  12. CWF_BEGIN_NAMESPACE
  13. /**
  14. * @brief Extracts and valites all attibutes from a "for" tag.
  15. */
  16. class CPPWEBFRAMEWORKSHARED_EXPORT CSTLCompilerFor
  17. {
  18. public:
  19. QMap<QString, QString> attributes;
  20. /**
  21. * @brief This constructor processes and validates the attributes of "for" tags.
  22. * @param const QXmlStreamAttributes &attr : XML tag attributes.
  23. */
  24. explicit CSTLCompilerFor(const QXmlStreamAttributes &attr);
  25. };
  26. CWF_END_NAMESPACE
  27. #endif // CSTLCOMPILERFOR_H