2016-06-18 03:24:55 +08:00
|
|
|
/* ----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
|
|
|
|
* Atlanta, Georgia 30332-0415
|
|
|
|
* All Rights Reserved
|
|
|
|
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
|
|
|
|
|
|
|
|
* See LICENSE for the license information
|
|
|
|
|
|
|
|
* -------------------------------------------------------------------------- */
|
|
|
|
|
2016-03-07 23:29:43 +08:00
|
|
|
/**
|
2022-07-27 03:59:32 +08:00
|
|
|
* @file QPSParser.h
|
2016-03-07 23:29:43 +08:00
|
|
|
* @brief QPS parser implementation
|
|
|
|
* @author Ivan Dario Jimenez
|
2016-06-18 03:24:55 +08:00
|
|
|
* @date 3/5/16
|
2016-03-07 23:29:43 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-07-20 13:03:42 +08:00
|
|
|
#include <gtsam_unstable/dllexport.h>
|
2016-03-07 23:29:43 +08:00
|
|
|
#include <gtsam_unstable/linear/QP.h>
|
|
|
|
#include <fstream>
|
|
|
|
|
|
|
|
namespace gtsam {
|
|
|
|
|
2023-07-20 13:03:42 +08:00
|
|
|
class GTSAM_UNSTABLE_EXPORT QPSParser {
|
2016-03-07 23:29:43 +08:00
|
|
|
|
|
|
|
private:
|
2016-04-27 14:04:16 +08:00
|
|
|
std::string fileName_;
|
2016-03-07 23:29:43 +08:00
|
|
|
struct MPSGrammar;
|
|
|
|
public:
|
|
|
|
|
|
|
|
QPSParser(const std::string& fileName) :
|
2016-04-27 14:04:16 +08:00
|
|
|
fileName_(findExampleDataFile(fileName)) {
|
2016-03-07 23:29:43 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
QP Parse();
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|