Loading...
Searching...
No Matches
connectionObject.h
Go to the documentation of this file.
// -*- Mode: C++; tab-width: 2; -*-
// vi: set ts=2:
//
#ifndef BALL_VIEW_KERNEL_CONNECTIONOBJECT_H
#define BALL_VIEW_KERNEL_CONNECTIONOBJECT_H
#ifndef BALL_COMMON_MACROS_H
# include <BALL/COMMON/macros.h>
#endif
namespace BALL
{
namespace VIEW
{
class Message;
class BALL_VIEW_EXPORT ConnectionObject
{
public:
ConnectionObject();
virtual ~ConnectionObject();
virtual void clear();
virtual void destroy();
void registerConnectionObject(ConnectionObject &object);
void unregisterConnectionObject(ConnectionObject &object);
bool isConnectionObjectRegistered(const ConnectionObject &object);
ConnectionObject* getParent() const;
ConnectionObject* getRoot();
virtual void onNotify(Message *message);
virtual bool isValid() const;
virtual void dump(std::ostream& s = std::cout, Size depth = 0) const;
protected:
void notify_(Message *message);
void notify_(Message &message);
protected:
void onNotify_(Message* message);
private:
void setParent_(ConnectionObject &object);
void clearParent_();
bool processing_message_queue_;
std::list<Message *> message_queue_;
ConnectionObject *parent_;
std::list<ConnectionObject *> children_connection_objects_;
};
# ifndef BALL_NO_INLINE_FUNCTIONS
# include <BALL/VIEW/KERNEL/connectionObject.iC>
# endif
} } // namespace
#endif // BALL_VIEW_KERNEL_CONNECTIONOBJECT_H
BALL_VIEW_EXPORT
#define BALL_VIEW_EXPORT
Definition COMMON/global.h:52
BALL::VIEW::ConnectionObject::notify_
void notify_(Message &message)
BALL::VIEW::ConnectionObject::destroy
virtual void destroy()
BALL::VIEW::ConnectionObject::isConnectionObjectRegistered
bool isConnectionObjectRegistered(const ConnectionObject &object)
BALL::VIEW::ConnectionObject::unregisterConnectionObject
void unregisterConnectionObject(ConnectionObject &object)
BALL::VIEW::ConnectionObject::notify_
void notify_(Message *message)
BALL::VIEW::ConnectionObject::getParent
ConnectionObject * getParent() const
BALL::VIEW::ConnectionObject::isValid
virtual bool isValid() const
BALL::VIEW::ConnectionObject::onNotify
virtual void onNotify(Message *message)
BALL::VIEW::ConnectionObject::~ConnectionObject
virtual ~ConnectionObject()
BALL::VIEW::ConnectionObject::ConnectionObject
ConnectionObject()
BALL::VIEW::ConnectionObject::clear
virtual void clear()
BALL::VIEW::ConnectionObject::onNotify_
void onNotify_(Message *message)
BALL::VIEW::ConnectionObject::dump
virtual void dump(std::ostream &s=std::cout, Size depth=0) const
BALL::VIEW::ConnectionObject::getRoot
ConnectionObject * getRoot()
BALL::VIEW::ConnectionObject::registerConnectionObject
void registerConnectionObject(ConnectionObject &object)
BALL::VIEW::Message
Definition message.h:53
macros.h
BALL::VIEW
Definition constraints.h:35
BALL
Definition constants.h:13
BALL::Size
BALL_SIZE_TYPE Size
Definition COMMON/global.h:114