Yate
|
#include <yateclass.h>
Public Member Functions | |
GenObject () | |
virtual | ~GenObject () |
virtual bool | alive () const |
virtual void | destruct () |
virtual const String & | toString () const |
virtual const String & | traceId () 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.
|
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 ClientLogic, ClientSound, RefObject, and MessageHandler.
Referenced by ClientSound::destruct().
|
inline |
Get the counter of this object
Referenced by TempObjectCounter::TempObjectCounter(), and 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 RefObject, ObjList, ObjVector, Array, String, NamedString, NamedPointer, HashList, DataBlock, NamedList, SocketFilter, SocketRef, Cipher, MimeHeaderLine, MimeAuthLine, MimeBody, MimeMultipartBody, MimeSdpBody, MimeBinaryBody, MimeStringBody, MimeLinesBody, Message, Plugin, DataConsumer, DataSource, DataTranslator, DataEndpoint, CallEndpoint, Module, Channel, and Driver.
Referenced by 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 getObject().
NamedCounter * setObjCounter | ( | NamedCounter * | counter | ) |
Set the counter of this object
counter | New counter object or NULL |
|
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 Window, ClientLogic, ClientAccount, ClientContact, ClientResource, DurationUpdate, ClientFileItem, String, NamedString, Plugin, DataEndpoint, CallEndpoint, and XmlElement.
|
virtual |
Get the trace ID associated with this object