not needed
[prop.git] / prop-src / labelgen.h
blob22162c2c90a56a81cff3e033c4a43278e7b87e36
1 #ifndef label_generators_h
2 #define label_generators_h
4 ///////////////////////////////////////////////////////////////////////////////
5 // Label generator
6 ///////////////////////////////////////////////////////////////////////////////
7 class LabelGen {
9 LabelGen(const LabelGen&); // no copy constructor
10 void operator = (const LabelGen&); // no assignment
12 private:
13 const char * prefix;
14 int counter;
15 const char * last;
16 public:
18 LabelGen(const char *);
19 ~LabelGen();
21 const char * new_label ();
22 const char * this_label() const { return last; }
25 #endif