#include <iosfwd>
+#include "LString.h"
+
///
class Spacing {
public:
///
Double,
///
- Other
+ Other,
+ ///
+ Default
};
///
- Spacing() {
- space = Single;
- value = getValue();
+ Spacing() : space(Single), value(1.0) {}
+ ///
+ bool isDefault() const {
+ return space == Default;
}
///
float getValue() const;
///
void set(Spacing::Space sp, char const * val) ;
///
- void writeFile(std::ostream &) const;
+ void writeFile(std::ostream &, bool para = false) const;
+ ///
+ string writeEnvirBegin() const;
+ ///
+ string writeEnvirEnd() const;
+ ///
+ friend bool operator==(Spacing const & a, Spacing const & b) {
+ return a.space == b.space && a.getValue() == b.getValue();
+ }
///
friend bool operator!=(Spacing const & a, Spacing const & b) {
- if (a.space == b.space && a.getValue() == b.getValue())
- return false;
- return true;
+ return !(a == b);
}
private:
///