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

« back to all changes in this revision

Viewing changes to src/skels/group_counter.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 group_name;
 
20
  string name;
20
21
 
21
22
 public:
22
23
  group_counter_gen_class()
23
24
  {
24
25
  }
25
26
  
26
 
  group_counter_gen_class(const string &_group_name) :
27
 
    group_name (_group_name)
 
27
  group_counter_gen_class(const string &_group_name, const string &_name) :
 
28
    group_name (_group_name), name (_name)
28
29
  {
29
30
  }
30
31
 
56
57
    group_name = _group_name;
57
58
  }
58
59
 
 
60
  void set_name(const string &_name)
 
61
  {
 
62
    name = _name;
 
63
  }
 
64
 
59
65
  void generate_group_counter(ostream &stream, unsigned int indent = 0);
60
66
  
61
67
};