Dip  0.92.4
AP3_DecompParam.h
Go to the documentation of this file.
1 //===========================================================================//
2 // This file is part of the Decomp Solver Framework. //
3 // //
4 // Decomp is distributed under the Common Public License as part of the //
5 // COIN-OR repository (http://www.coin-or.org). //
6 // //
7 // Authors: Matthew Galati, SAS Institute Inc. (matthew.galati@sas.com) //
8 // Ted Ralphs, Lehigh University (ted@lehigh.edu) //
9 // Jiadong Wang, Lehigh University (jiw408@lehigh.edu) //
10 // //
11 // Copyright (C) 2002-2019, Lehigh University, Matthew Galati, and Ted Ralphs//
12 // All Rights Reserved. //
13 //===========================================================================//
14 
15 #ifndef AP3_DECOMP_PARAM_INCLUDED
16 #define AP3_DECOMP_PARAM_INCLUDED
17 
18 // --------------------------------------------------------------------- //
19 #include "UtilParameters.h"
20 
21 // --------------------------------------------------------------------- //
31 // --------------------------------------------------------------------- //
33  public:
34  string DataDir;
35  string Instance;
36 
37  public:
38  void getSettings(UtilParameters & utilParam){
39  static const char * common = "AP3";
40  DataDir = utilParam.GetSetting("DataDir", "", common);
41  Instance = utilParam.GetSetting("Instance", "", common);
42  }
43 
44  void dumpSettings(ostream * os = &cout){
45  static const char * common = "AP3";
46  (*os) << "\n=====================================================\n"
47  << "AP3_DECOMP PARAMETER SETTINGS \n";
48  (*os) << common << ": DataDir : " << DataDir << endl;
49  (*os) << common << ": Instance : " << Instance << endl;
50  (*os) << "=====================================================\n";
51  }
52 
53  public:
55  DataDir(""),
56  Instance("") {
57  };
59 };
60 
61 #endif
void dumpSettings(ostream *os=&cout)
string GetSetting(const char *name, const char *defaultValue, const char *section=NULL)
void getSettings(UtilParameters &utilParam)