///
std::ostream & os() { return os_; }
///
- int & line() { return line_; }
+ int line() const { return line_; }
///
int & tab() { return tab_; }
+ ///
+ friend MathMLStream & operator<<(MathMLStream &, char const *);
private:
///
std::ostream & os_;
OctaveStream & operator<<(OctaveStream &, char const *);
///
OctaveStream & operator<<(OctaveStream &, char);
+///
+OctaveStream & operator<<(OctaveStream &, int);
class WriteStream {
public:
///
- WriteStream(std::ostream & os, bool fragile);
+ WriteStream(std::ostream & os, bool fragile, bool latex);
///
explicit WriteStream(std::ostream & os_);
- /// yes... the references will be removed some day...
- int & line() { return line_; }
+ ///
+ int line() const { return line_; }
///
bool fragile() const { return fragile_; }
///
+ bool latex() const { return latex_; }
+ ///
std::ostream & os() { return os_; }
///
bool & firstitem() { return firstitem_; }
+ ///
+ void addlines(unsigned int);
private:
///
std::ostream & os_;
///
bool fragile_;
+ /// are we writing to .tex?
+ int latex_;
/// are we at the beginning of an MathArray?
bool firstitem_;
///
///
WriteStream & operator<<(WriteStream &, unsigned int);
-
#endif