gtsam  4.0.0
gtsam
QPSParser.h
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 
19 #pragma once
20 
22 #include <fstream>
23 
24 namespace gtsam {
25 
26 class QPSParser {
27 
28 private:
29  std::string fileName_;
30  struct MPSGrammar;
31 public:
32 
33  QPSParser(const std::string& fileName) :
34  fileName_(findExampleDataFile(fileName)) {
35  }
36 
37  QP Parse();
38 };
39 }
40 
string findExampleDataFile(const string &name)
Find the full path to an example dataset distributed with gtsam.
Definition: dataset.cpp:55
Struct contains factor graphs of a Quadratic Programming problem.
Definition: QP.h:31
Definition: QPSParser.h:26
Factor graphs of a Quadratic Programming problem.
Global functions in a separate testing namespace.
Definition: chartTesting.h:28