/usr/include/bobcat/x2a is in libbobcat-dev 4.01.03-2ubuntu1.
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 | #ifndef INCLUDED_BOBCAT_X2A_
#define INCLUDED_BOBCAT_X2A_
#include <sstream>
#include <string>
namespace FBB
{
class X2a: public std::ostringstream
{
static bool s_lastFail;
public:
template <typename T> // initialize from
X2a(T const &x); // (insertable) type 1.f
X2a(X2a const &other); // 2.f
X2a(double x, size_t behind);
X2a(double x, size_t width, size_t behind);
X2a &operator=(X2a const &rhs); // opassign.f
operator std::string const() const; // opstring.f
bool lastFail(); // .f
};
template <typename T> // initialize from
inline X2a::X2a(T const &x) // (insertable) type
{
s_lastFail = (*this << x).fail();
}
inline X2a::X2a(X2a const &other)
:
std::ostringstream(other.str())
{}
inline X2a::operator std::string const() const
{
return str();
}
inline X2a &X2a::operator=(X2a const &rhs)
{
str(rhs.str());
return *this;
}
inline bool X2a::lastFail()
{
return s_lastFail;
}
// Free Functions
inline std::ostream &operator<<(std::ostream &ostr, X2a const &x2a)
{
return ostr << x2a.str();
}
} // FBB
#endif
|