GenObject Class Reference

#include <yateclass.h>

Inheritance diagram for GenObject:

Cipher ClientLogic DataBlock GenPointer HashList MessageDispatcher MessagePostHook MessageReceiver MimeBody ObjList Plugin RefObject SocketAddr SocketFilter String TranslatorFactory Window

List of all members.

Public Member Functions

virtual ~GenObject ()
virtual bool alive () const
virtual void destruct ()
virtual const StringtoString () const
virtual void * getObject (const String &name) const

Static Public Member Functions

static void * getObject (const String &name, const GenObject *obj)


Detailed Description

An object with just a public virtual destructor

Constructor & Destructor Documentation

virtual ~GenObject (  )  [inline, virtual]

Destructor.


Member Function Documentation

virtual bool alive (  )  const [virtual]

Check if the object is still valid and safe to access. Note that you should not trust this result unless the object is locked by other means.

Returns:
True if the object is still useable

Reimplemented in RefObject.

virtual void destruct (  )  [virtual]

Destroys the object, disposes the memory.

Reimplemented in RefObject, MessageHandler, ClientLogic, and ClientSound.

Referenced by TelEngine::destruct(), and ClientSound::destruct().

virtual const String& toString (  )  const [virtual]

Get a string representation of this object

Returns:
A reference to a String representing this object which is either null, the object itself (for objects derived from String) or some form of identification

Reimplemented in String, NamedString, Plugin, DataEndpoint, CallEndpoint, Window, ClientLogic, ClientAccount, ClientContact, ClientResource, and DurationUpdate.

virtual void* getObject ( const String name  )  const [virtual]

Get a pointer to a derived class given that class name

Parameters:
name Name of the class we are asking for
Returns:
Pointer to the requested class or NULL if this object doesn't implement it

Reimplemented in ObjList, Array, String, NamedString, NamedPointer, HashList, DataBlock, NamedList, SocketFilter, Cipher, MimeHeaderLine, MimeAuthLine, MimeBody, MimeMultipartBody, MimeSdpBody, MimeBinaryBody, MimeStringBody, MimeLinesBody, Message, Plugin, DataConsumer, DataSource, DataTranslator, DataEndpoint, CallEndpoint, Module, Channel, and Driver.

Referenced by GenObject::getObject().

static void* getObject ( const String name,
const GenObject obj 
) [inline, static]

Helper method to get the pointer to a derived class

Parameters:
name Name of the class we are asking for
obj Pointer to the object to get derived class from
Returns:
Pointer to the requested class or NULL if this object doesn't implement it

References GenObject::getObject().


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

Generated on Sat May 28 18:28:23 2011 for Yate by  doxygen 1.5.6