Changeset 1070 for trunk/lib


Ignore:
Timestamp:
Jun 6, 2010, 5:32:03 AM (11 years ago)
Author:
Peter Johansson
Message:

refs #307. write config if option for it is given

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/main_utility.cc

    r1067 r1070  
    2525#include "utility.h"
    2626
     27#include <cctype>
    2728#include <fstream>
     29#include <iostream>
    2830#include <string>
    2931#include <stdexcept>
     
    5254
    5355
     56  void write_config_and_exit(void)
     57  {
     58    std::cout << Configuration::instance();
     59    exit(EXIT_SUCCESS);
     60  }
    5461
    5562}} // end of namespace svndigest and namespace theplu
  • trunk/lib/main_utility.h

    r1067 r1070  
    4141  void load_config(const std::string& file);
    4242
     43  /**
     44     write configuration file to cout and exit successfully
     45   */
     46  void write_config_and_exit(void);
     47
    4348}} // end of namespace svndigest end of namespace theplu
    4449
Note: See TracChangeset for help on using the changeset viewer.