Ignore:
Timestamp:
Nov 14, 2010, 6:34:10 AM (11 years ago)
Author:
Peter Johansson
Message:

rewrite svndigest-copy-cache in C++. closes #463

File:
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/bin/AbstractParameter.h

    r1291 r1293  
    1 #ifndef _theplu_svndigest_parameter_
    2 #define _theplu_svndigest_parameter_
     1#ifndef _theplu_svndigest_abstract_parameter_
     2#define _theplu_svndigest_abstract_parameter_
    33
    44// $Id$
     
    4545
    4646  // class for command line options.
    47   class Parameter {
     47  class AbstractParameter {
    4848  public:
    49     Parameter(void);
    50     virtual ~Parameter(void);
     49    AbstractParameter(void);
     50    virtual ~AbstractParameter(void);
    5151    void parse( int argc, char *argv[]);
    52 
    53     std::string config_file(void) const;
    54    
    55     bool generate_config(void) const ;
    56     bool ignore_cache(void) const;
    5752
    5853    /**
     
    7368    yat::utility::CommandLine cmd_;
    7469    yat::utility::OptionHelp help_;
     70    yat::utility::OptionArg<std::string> root_;
     71
     72    // check that root is OK, i.e., an existing, readable and
     73    // accessible directory. throw cmd_error if not.
     74    void analyse_root(const std::string root);
    7575
    7676    // throw cmd_error if path doesn't exist
     
    8383  private:
    8484    void analyse(void);
    85     virtual void analyse2(void)=0;
     85    virtual void analyse1(void)=0;
    8686    void init(void);
    8787    // called at end of init(void)
    88     virtual void init2(void) = 0;
     88    virtual void init1(void) = 0;
    8989    void set_default(void);
    90     virtual void set_default2(void)=0;
     90    virtual void set_default1(void)=0;
    9191
    92     yat::utility::OptionArg<std::string> config_file_;
    93     yat::utility::OptionSwitch generate_config_;
    94     yat::utility::OptionSwitch ignore_cache_;
    95     yat::utility::OptionArg<std::string> root_;
    9692    std::string root_basename_;
    9793    std::string root_full_;
Note: See TracChangeset for help on using the changeset viewer.