#ifndef FUNC_STATUS_H
#define FUNC_STATUS_H
+#include <string>
+
/// The status of a function.
class FuncStatus
unsigned int v_;
+ std::string message_;
+
public:
///
FuncStatus();
- //
- FuncStatus & clear ();
///
- void operator |= (FuncStatus const & f);
+ void clear();
+ ///
+ void operator|=(FuncStatus const & f);
///
- FuncStatus & unknown(bool b);
+ void unknown(bool b);
///
bool unknown() const;
///
- FuncStatus & disabled (bool b);
+ void enabled(bool b);
+ ///
+ bool enabled() const;
+
+ ///
+ void setOnOff(bool b);
///
- bool disabled () const;
+ bool onoff(bool b) const;
///
- void setOnOff (bool b);
+ void message(std::string const & m);
///
- bool onoff (bool b) const;
+ std::string const & message() const;
};
#endif