#include <yateclass.h>
Public Member Functions | |
virtual | ~GenObject () |
virtual bool | alive () const |
virtual void | destruct () |
virtual const String & | toString () const |
virtual void * | getObject (const String &name) const |
Static Public Member Functions | |
static void * | getObject (const String &name, const GenObject *obj) |
virtual ~GenObject | ( | ) | [inline, virtual] |
Destructor.
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.
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
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
name | Name of the class we are asking for |
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().
Helper method to get the pointer to a derived class
name | Name of the class we are asking for | |
obj | Pointer to the object to get derived class from |
References GenObject::getObject().