~ubuntu-branches/ubuntu/hardy/gengetopt/hardy

« back to all changes in this revision

Viewing changes to src/skels/file_save.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2008-01-29 14:55:40 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20080129145540-bkah1bl330gpelmh
Tags: 2.22-1ubuntu1
* Merge with Debian; remaining changes:
  - Fix build failures with g++-4.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
{
18
18
 protected:
19
19
  string arg;
20
 
  bool check_given;
21
20
  string given;
22
 
  bool has_arg;
23
21
  string opt_name;
 
22
  string values;
24
23
 
25
24
 public:
26
 
  file_save_gen_class() :
27
 
    check_given (false), has_arg (false)
 
25
  file_save_gen_class()
28
26
  {
29
27
  }
30
28
  
31
 
  file_save_gen_class(const string &_arg, bool _check_given, const string &_given, bool _has_arg, const string &_opt_name) :
32
 
    arg (_arg), check_given (_check_given), given (_given), has_arg (_has_arg), opt_name (_opt_name)
 
29
  file_save_gen_class(const string &_arg, const string &_given, const string &_opt_name, const string &_values) :
 
30
    arg (_arg), given (_given), opt_name (_opt_name), values (_values)
33
31
  {
34
32
  }
35
33
 
61
59
    arg = _arg;
62
60
  }
63
61
 
64
 
  void set_check_given(bool _check_given)
65
 
  {
66
 
    check_given = _check_given;
67
 
  }
68
 
 
69
62
  void set_given(const string &_given)
70
63
  {
71
64
    given = _given;
72
65
  }
73
66
 
74
 
  void set_has_arg(bool _has_arg)
75
 
  {
76
 
    has_arg = _has_arg;
77
 
  }
78
 
 
79
67
  void set_opt_name(const string &_opt_name)
80
68
  {
81
69
    opt_name = _opt_name;
82
70
  }
83
71
 
 
72
  void set_values(const string &_values)
 
73
  {
 
74
    values = _values;
 
75
  }
 
76
 
84
77
  void generate_file_save(ostream &stream, unsigned int indent = 0);
85
78
  
86
79
};