#ifndef COUNTERS_H
#define COUNTERS_H
-#ifdef __GNUG__
-#pragma interface
-#endif
-
#include "LString.h"
#include <map>
-#include <vector>
+
/// This represents a single counter.
class Counter {
string master() const;
/// sets the master counter for this counter
void setMaster(string const & m);
- ///
-
private:
+ ///
int value_;
/// contains master counter name; master counter is the counter
/// that, if stepped (incremented) zeroes this counter. E.g.
/// Every instantiation is an array of counters of type Counter.
class Counters {
public:
- ///
- Counters();
- ///
- //~Counters();
/// Add a new counter to array.
void newCounter(string const & newc);
/// Add new counter having oldc as its master.
string const & labeltype,
string const & langtype = "latin",
int head = 0);
- /// Maps numbers to enumeration of sectioning counter name strings.
- std::vector<string> enums;
- std::vector<string> sects;
-
private:
/// Maps counter (layout) names to actual counters.
typedef std::map<string, Counter> CounterList;