/* Copyright 2017 Herik Lima de Castro and Marcelo Medeiros Eler Distributed under MIT license, or public domain if desired and recognized in your jurisdiction. See file LICENSE for detail. */ #ifndef CSTLCOMPILERATTRIBUTES_H #define CSTLCOMPILERATTRIBUTES_H #include #include #include #include #include "cppwebframework_global.h" CWF_BEGIN_NAMESPACE /** * @brief This class search for expressions #{obj.get} and compiles it. */ class CPPWEBFRAMEWORKSHARED_EXPORT CSTLCompilerAttributes { QMap &objects; public: explicit CSTLCompilerAttributes(QMap &objects); QString buildAttributes(QMap &attr, bool keyValue = true); void compileAttributes(QMap &attr); void compile(QString &text, QString &outPutText); QMap getAttributes(const QXmlStreamAttributes &attributes); }; CWF_END_NAMESPACE #endif // CSTLCOMPILERATTRIBUTES_H