Changeset 10537 for trunk/FACT++


Ignore:
Timestamp:
05/03/11 18:25:26 (14 years ago)
Author:
tbretz
Message:
Encapsulated SQL support into ifdef.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/Configuration.cc

    r10372 r10537  
    269269#include <fstream>
    270270#include <iostream>
     271#include <iomanip>
    271272
    272273#include <boost/bind.hpp>
     
    275276#include <boost/program_options.hpp>
    276277
     278#define HAS_SQL
     279
     280#ifdef HAS_SQL
    277281#include <mysql++/mysql++.h>
     282#endif
    278283
    279284using namespace std;
     
    325330//!     - Shell we allow options to be given more than once?
    326331//
     332#ifdef HAS_SQL
    327333po::basic_parsed_options<char>
    328334    Configuration::parse_database(const string &database, const po::options_description& desc, bool allow_unregistered)
     
    432438    return result;
    433439}
     440#else
     441po::basic_parsed_options<char>
     442    Configuration::parse_database(const string &, const po::options_description &desc, bool)
     443{
     444    return po::parsed_options(&desc);
     445}
     446#endif
    434447
    435448// --------------------------------------------------------------------------
     
    440453fNameMapper(bind1st(mem_fun(&Configuration::DefaultMapper), this)),
    441454fPrintUsage(boost::bind(&Configuration::PrintUsage, this))
    442 
    443455{
    444456    po::options_description generic("Generic options");
Note: See TracChangeset for help on using the changeset viewer.