| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2.1 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Lesser General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Lesser General Public |
| 15 | * License along with this library; if not, write to the Free Software |
| 16 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 17 | */ |
| 18 |
| 19 | #ifndef LOTTIEPARSER_H |
| 20 | #define LOTTIEPARSER_H |
| 21 |
| 22 | #include "lottiemodel.h" |
| 23 | #include <map> |
| 24 | #include <rlottie.h> |
| 25 |
| 26 | class LottieParserImpl; |
| 27 | class LottieParser { |
| 28 | public: |
| 29 | ~LottieParser(); |
| 30 | LottieParser(char* str, const char *dir_path, std::map<int32_t, int32_t> *colorReplacement, rlottie::FitzModifier fitzModifier = rlottie::FitzModifier::None); |
| 31 | std::shared_ptr<LOTModel> model(); |
| 32 | bool hasParsingError(); |
| 33 | private: |
| 34 | LottieParserImpl *d; |
| 35 | bool parsingError = false; |
| 36 | }; |
| 37 |
| 38 | #endif // LOTTIEPARSER_H |
| 39 |