summaryrefslogtreecommitdiff
path: root/src/options/options_set_option_template.cpp
blob: cfe642b7bce07170cd09d0a5dcd044ebae3edac1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*********************                                                        */
/*! \file options_set_option_template.cpp
 ** \verbatim
 ** Top contributors (to current version):
 **   Tim King, Paul Meng
 ** This file is part of the CVC4 project.
 ** Copyright (c) 2009-2017 by the authors listed in the file AUTHORS
 ** in the top-level source directory) and their institutional affiliations.
 ** All rights reserved.  See the file COPYING in the top-level source
 ** directory for licensing information.\endverbatim
 **
 ** \brief Implementation of OptionsHandler::setOption.
 **
 ** This template file is expanded into the cpp implementation of
 ** OptionsHandler::setOption. The file is essentially the contents
 ** of the ${smt_setoption_handlers} variable in the options/mkoptions
 ** script. This variable depends on all options files. To generate this file,
 ** first generate options/summary.sed.
 **/


#include <string>
#include <sstream>

#include "base/modal_exception.h"
#include "base/output.h"
#include "options/option_exception.h"
#include "options/options.h"
#include "options/options_handler.h"

${include_all_option_headers}
${option_handler_includes}

#line 35 "${template}"

using namespace std;

namespace CVC4 {

void Options::setOption(const std::string& key, const std::string& optionarg)
  throw(OptionException, ModalException) {
  options::OptionsHandler* handler = d_handler;
  Trace("options") << "SMT setOption(" << key << ", " << optionarg << ")" << endl;

  ${smt_setoption_handlers}

#line 48 "${template}"

  throw UnrecognizedOptionException(key);
}

}/* CVC4 namespace */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback