#ifndef INCLUDED_BOBCAT_INDENT_
#define INCLUDED_BOBCAT_INDENT_

#include <ostream>

namespace FBB
{

class Indent
{
    friend std::ostream &indent(std::ostream &out);

    static size_t s_width;
    static size_t s_inc;

    public:
        static void setWidth(size_t width);             // .f
        static void setInc(size_t inc);                 // .f
        static void clear();                            // .f
        static void inc();                              // .f
        static void dec();
};

inline void Indent::clear()
{
    s_width = 0;
}
inline void Indent::inc()
{
    s_width += s_inc;
}
inline void Indent::setInc(size_t inc)
{
    s_inc = inc;
}
inline void Indent::setWidth(size_t width)
{
    s_width = width;
}

    // Free functions

std::ostream &indent(std::ostream &out);

//#include "nlindent.f"

std::ostream &incindent(std::ostream &out);
std::ostream &indentinc(std::ostream &out);

std::ostream &decindent(std::ostream &out);
std::ostream &indentdec(std::ostream &out);

} // namespace FBB

#endif
