| 1 | /* ---------------------------------------------------------------------------- |
| 2 | |
| 3 | * GTSAM Copyright 2010, Georgia Tech Research Corporation, |
| 4 | * Atlanta, Georgia 30332-0415 |
| 5 | * All Rights Reserved |
| 6 | * Authors: Frank Dellaert, et al. (see THANKS for the full author list) |
| 7 | |
| 8 | * See LICENSE for the license information |
| 9 | |
| 10 | * -------------------------------------------------------------------------- */ |
| 11 | |
| 12 | /** |
| 13 | * @file QPSParser.h |
| 14 | * @brief QPS parser implementation |
| 15 | * @author Ivan Dario Jimenez |
| 16 | * @date 3/5/16 |
| 17 | */ |
| 18 | |
| 19 | #pragma once |
| 20 | |
| 21 | #include <gtsam_unstable/dllexport.h> |
| 22 | #include <gtsam_unstable/linear/QP.h> |
| 23 | #include <fstream> |
| 24 | |
| 25 | namespace gtsam { |
| 26 | |
| 27 | class GTSAM_UNSTABLE_EXPORT QPSParser { |
| 28 | |
| 29 | private: |
| 30 | std::string fileName_; |
| 31 | struct MPSGrammar; |
| 32 | public: |
| 33 | |
| 34 | QPSParser(const std::string& fileName) : |
| 35 | fileName_(findExampleDataFile(name: fileName)) { |
| 36 | } |
| 37 | |
| 38 | QP Parse(); |
| 39 | }; |
| 40 | } |
| 41 | |
| 42 | |