cstlcompilerimport.h 805 B

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