21 #define Warn(...) Warning(__PRETTY_FUNCTION__, __VA_ARGS__)
23 #define Err(...) Error(__PRETTY_FUNCTION__, __VA_ARGS__)
25 #define Info(...) Information(__PRETTY_FUNCTION__, __LINE__, __VA_ARGS__)
28 #define SimpleWarn(...) Warning(NULL, __VA_ARGS__)
30 #define TIME_INFINITE 0
31 #define TIME_NONBLOCK ((Time)-1)
39 class FrameworkManager;
43 Message(
unsigned int myBufferSize) : bufferSize(myBufferSize) {
44 buffer =
new char[bufferSize];
55 typedef unsigned long long Time;
73 void Printf(
const char *format, ...);
84 friend class ::Widget_impl;
87 typedef enum { Auto = 0, Red = 31, Green = 32, Orange = 33 } color_t;
97 Object(
const Object *parent = NULL, std::string name =
"",
98 std::string type =
"");
134 std::vector<const Object *> *
TypeChilds(
void)
const;
141 std::vector<const Object *> *
Childs(
void)
const;
154 void Information(
const char *
function,
int line,
const char *format,
167 void Warning(
const char *
function,
const char *format, ...)
const;
180 void Error(
const char *
function,
const char *format, ...)
const;
194 class Object_impl *pimpl_;
195 void ColorPrintf(color_t,
const char *
function,
int line,
const char *format,
196 va_list *args)
const;
std::vector< const Object * > * TypeChilds(void) const
Childs of the same type.
Base class for all Framework's classes.
Definition: Object.h:83
namespace of the flair Framework
Definition: Ahrs.h:19
unsigned long long Time
Time definition, in ns.
Definition: Object.h:55
void Error(const char *function, const char *format,...) const
Formatted error.
const Object * Parent(void) const
Parent.
void Information(const char *function, int line, const char *format,...) const
Formatted information.
std::string ObjectName(void) const
Name.
void Warning(const char *function, const char *format,...) const
Formatted warning.
bool ErrorOccured(bool recursive=true) const
Has an errror occured?
std::string ObjectType(void) const
Type.
std::vector< const Object * > * Childs(void) const
Childs.
void Printf(const char *format,...)
Formatted print.
virtual ~Object()
Destructor.
Object(const Object *parent=NULL, std::string name="", std::string type="")
Constructor.