MC_tm_param.cpp
Go to the documentation of this file.
1 // Copyright (C) 2000, International Business Machines
2 // Corporation and others. All Rights Reserved.
3 #include "MC_tm_param.hpp"
4 #include "BCP_parameters.hpp"
5 
6 using std::make_pair;
7 
8 template <>
10  // Create the list of keywords for parameter file reading
11  //--------------------------------------------------------------------------
12  // CharPar
13  keys.push_back(make_pair(BCP_string("MC_DisplaySolutionSignature"),
15  DisplaySolutionSignature)));
16 // keys.push_back(make_pair(BCP_string("MC_"),
17 // BCP_parameter(BCP_CharPar,
18 // )));
19  //--------------------------------------------------------------------------
20  // IntPar
21  keys.push_back(make_pair(BCP_string("MC_DigitsToLose"),
23  DigitsToLose)));
24 // keys.push_back(make_pair(BCP_string("MC_"),
25 // BCP_parameter(BCP_IntPar,
26 // )));
27  //--------------------------------------------------------------------------
28  // DoublePar
29 // keys.push_back(make_pair(BCP_string("MC_"),
30 // BCP_parameter(BCP_DoublePar,
31 // )));
32 
33  //--------------------------------------------------------------------------
34  // StringPar
35  keys.push_back(make_pair(BCP_string("MC_FeasSolFile"),
37  FeasSolFile)));
38  keys.push_back(make_pair(BCP_string("MC_InputFile"),
40  InputFile)));
41  keys.push_back(make_pair(BCP_string("MC_SolutionFile"),
43  SolutionFile)));
44 // keys.push_back(make_pair(BCP_string("MC_"),
45 // BCP_parameter(BCP_StringPar,
46 // )));
47  //--------------------------------------------------------------------------
48  // StringArrayPar
49 // keys.push_back(make_pair(BCP_string("MC_"),
50 // BCP_parameter(BCP_StringArrayPar,
51 // )));
52  //--------------------------------------------------------------------------
53  // BooleanListPar
54 // keys.push_back(make_pair(BCP_string("MC_TmVerbosity_PrunedNodeInfo"),
55 // BCP_parameter(BCP_BooleanListPar,
56 // Verbosity,
57 // BCP_TmVerb_PrunedNodeInfo)));
58 }
59 
60 //#############################################################################
61 
62 template <>
64  //--------------------------------------------------------------------------
65  // CharPar
66  set_entry(DisplaySolutionSignature, false);
67  //--------------------------------------------------------------------------
68  // IntPar
69  set_entry(DigitsToLose, 0);
70  //--------------------------------------------------------------------------
71  // DoublePar
72  //--------------------------------------------------------------------------
73  // StringPar
74  set_entry(FeasSolFile, "");
75  set_entry(InputFile, "graph.in");
76  set_entry(SolutionFile, "");
77  //--------------------------------------------------------------------------
78  // StringArrayPar
79  //--------------------------------------------------------------------------
80  // BooleanListPar
81 }
Character parameter.
void create_keyword_list()
Method for creating the list of keyword looked for in the parameter file.
void set_default_entries()
Method for setting the default values for the parameters.
BCP_vec< std::pair< BCP_string, BCP_parameter > > keys
The keyword, parameter pairs.
This class is a very simple impelementation of a constant length string.
Definition: BCP_string.hpp:13
String parameter.
void push_back(const_reference x)
Append x to the end of the vector.
void set_entry(const chr_params key, const char val)
This parameter indeintifies a single parameter entry.
Integer parameter.