conexus logo

Conexus::Object Class Reference

This class provides a common inheritance hierarchy for all conexus objects. More...

#include <object.h>

Inheritance diagram for Conexus::Object:

Inheritance graph
[legend]

List of all members.

Public Types

typedef ConexusPointer< Objectpointer
 This typedef provides a common notation for smart pointers.

Public Member Functions

 ~Object ()
 Destructor does nothing.
const std::string & name ()
 Gets the object's name.
void set_name (const std::string &n)
 Sets the object's name and emits signal_name_changed after the name has changed.
sigc::signal< void > signal_name_changed ()
 Accessor for the signal emitted when then name is changed.

Protected Member Functions

 Object (const std::string &name=std::string())
 The only constructor accepts a name parameter and is protected to ensure that only children derived from Object will call the constructor directly.

Private Attributes

sigc::signal< void > m_signal_name_changed
 Signal emitted when the name is changed.
std::string m_name
 Internal storage for the object name.


Detailed Description

This class provides a common inheritance hierarchy for all conexus objects.

In addition to providing a common hierarchy this base class ensures that all descendants are also descendants of sigc::trackable allowing automatic signal disconnection on destruction.

This base class also provides a common mechanism for naming conexus objects.

Author:
Rick L Vinyard Jr

Member Typedef Documentation

typedef ConexusPointer<Object> Conexus::Object::pointer


Constructor & Destructor Documentation

Conexus::Object::Object ( const std::string &  name = std::string()  )  [inline, protected]

The only constructor accepts a name parameter and is protected to ensure that only children derived from Object will call the constructor directly.

Conexus::Object::~Object (  )  [inline]

Destructor does nothing.


Member Function Documentation

const std::string& Conexus::Object::name (  )  [inline]

Gets the object's name.

References m_name.

void Conexus::Object::set_name ( const std::string &  n  )  [inline]

Sets the object's name and emits signal_name_changed after the name has changed.

Reimplemented in Conexus::MessageQueue.

References m_name, and m_signal_name_changed.

sigc::signal<void> Conexus::Object::signal_name_changed (  )  [inline]

Accessor for the signal emitted when then name is changed.

References m_signal_name_changed.


Member Data Documentation

std::string Conexus::Object::m_name [private]

Internal storage for the object name.

Reimplemented in Conexus::MessageQueue.

Referenced by name(), and set_name().

sigc::signal<void> Conexus::Object::m_signal_name_changed [private]

Signal emitted when the name is changed.

Referenced by set_name(), and signal_name_changed().


The documentation for this class was generated from the following file:

Generated on Wed Jul 8 15:51:20 2009 for conexus by doxygen 1.5.8