Ignore:
Timestamp:
May 24, 2011, 5:36:00 PM (8 years ago)
Author:
tbretz
Message:
Added PrintVersion directly to avoid clashes with exceptions.
File:
1 edited

Legend:

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

    r10707 r10796  
    4747    boost::function<std::string(std::string)> fNameMapper;
    4848    boost::function<void()>                   fPrintUsage;
     49    boost::function<void(const std::string&)> fPrintVersion;
    4950
    5051    /// Helper function which return the max of the two arguments in the first argument
     
    6162
    6263    virtual void PrintUsage() const { }
     64    virtual void PrintVersion() const;
    6365
    6466public:
     
    8991    void SetPrintUsage(const boost::function<void(void)> &func);
    9092    void SetPrintUsage();
     93
     94    void SetPrintVersion(const boost::function<void(const std::string &)> &func);
     95    void SetPrintVersion();
    9196
    9297    void AddEnv(const std::string &conf, const std::string &env)
Note: See TracChangeset for help on using the changeset viewer.