Yate
|
#include <yateclass.h>
Public Member Functions | |
GenObject () | |
virtual | ~GenObject () |
virtual bool | alive () const |
virtual void | destruct () |
virtual const String & | toString () const |
virtual void * | getObject (const String &name) const |
NamedCounter * | getObjCounter () const |
NamedCounter * | setObjCounter (NamedCounter *counter) |
Static Public Member Functions | |
static void * | getObject (const String &name, const GenObject *obj) |
static bool | getObjCounting () |
static void | setObjCounting (bool enable) |
static NamedCounter * | getObjCounter (const String &name, bool create=true) |
static ObjList & | getObjCounters () |
An object with just a public virtual destructor
GenObject | ( | ) |
Default constructor
|
inlinevirtual |
Destructor.
References GenObject::setObjCounter().
|
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 |
Destroys the object, disposes the memory.
Reimplemented in ClientSound, ClientLogic, RefObject, and MessageHandler.
Referenced by TelEngine::destruct(), and ClientSound::destruct().
|
inline |
Get the counter of this object
Referenced by TempObjectCounter::TempObjectCounter().
|
static |
Retrieve or allocate an object counter
name | Name of the counter |
create | True to create a new counter if needed |
|
static |
Access the object counters list
|
inlinestatic |
Get the global state of object counting
|
virtual |
Get a pointer to a derived class given that class name
name | Name of the class we are asking for |
Reimplemented in Cipher, SocketFilter, NamedList, DataBlock, HashList, NamedPointer, NamedString, Driver, String, Channel, Array, ObjVector, Module, ObjList, CallEndpoint, Plugin, RefObject, DataEndpoint, MimeLinesBody, MimeStringBody, MimeBinaryBody, DataTranslator, MimeSdpBody, MimeMultipartBody, DataSource, DataConsumer, Message, MimeBody, MimeAuthLine, and MimeHeaderLine.
Referenced by GenObject::getObject(), and NamedPointer::userObject().
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().
NamedCounter* setObjCounter | ( | NamedCounter * | counter | ) |
Set the counter of this object
counter | New counter object or NULL |
Referenced by GenObject::~GenObject().
|
inlinestatic |
Set the global state of object counting
enable | True to enable object counting, false to disable |
|
virtual |
Get a string representation of this object
Reimplemented in ClientFileItem, DurationUpdate, ClientResource, ClientContact, ClientAccount, NamedString, ClientLogic, String, XmlElement, CallEndpoint, Plugin, DataEndpoint, and Window.