Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members  

fun::Describable Class Reference

This is just a simple interface for objects which have some sort of description string which can be set and retrieved. More...

#include <Describable.h>

Inheritance diagram for fun::Describable:

fun::Serializable fun::LoadableClass List of all members.

Public Methods

virtual QString getDescription () const
 Returns this object's description.

virtual void setDescription (const QString &newDescr)
 Sets this object's description & emits the descrChanged() signal.

virtual void serialize (Serializer &ser) const
 Stores the Serializable object in the given Serializer.

virtual void deserialize (const Deserializer &ser)
 Note that this does not emit the descrChanged() signal.


Detailed Description

This is just a simple interface for objects which have some sort of description string which can be set and retrieved.

I wanted it to be a QObject so that it could emit a signal when its description changed; see Nameable.h for why it isn't.

Definition at line 32 of file Describable.h.


Member Function Documentation

void Describable::serialize Serializer   ser const [virtual]
 

Stores the Serializable object in the given Serializer.

Derived classes should always start by calling the superclass' serialize(). They should also call setSerializableClass() with their own class name. NOT_DONE include a simple example here.

Reimplemented from fun::Serializable.

Definition at line 33 of file Describable.cpp.

References fun::Serializer::putString().


The documentation for this class was generated from the following files:
Generated on Mon Aug 11 14:06:56 2003 for libfunutil by doxygen1.2.18