/usr/include/bobcat/align is in libbobcat-dev 3.23.01-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | #ifndef INCLUDED_BOBCAT_ALIGN_
#define INCLUDED_BOBCAT_ALIGN_
#include <ostream>
namespace FBB
{
typedef std::ios_base &(*Manipulator)(std::ios_base &);
inline std::ios_base ¢er(std::ios_base &stream)
{
return stream;
}
class Align
{
int d_row; // -1 or the row index to align
size_t d_col; // acts as field width when setting the width of
// an element.
Manipulator d_manip;
public:
Align(int row, size_t column, Manipulator manip);
Align(size_t col = 0, Manipulator manip = std::right);
explicit Align(Manipulator manip);
bool hasRow() const;
operator size_t() const; // .f
size_t col() const; // .f
size_t row() const; // .f
Manipulator manip() const; // .f
void setWidth(size_t width); // .f
void setManip(Manipulator manip); // .f
};
inline Align::operator size_t() const
{
return d_col;
}
inline size_t Align::col() const
{
return d_col;
}
inline size_t Align::row() const
{
return d_row;
}
inline bool Align::hasRow() const
{
return d_row != -1;
}
inline Manipulator Align::manip() const
{
return d_manip;
}
inline void Align::setManip(Manipulator manip)
{
d_manip = manip;
}
inline void Align::setWidth(size_t size)
{
d_col = size;
}
} // FBB
#endif
|