Yate
Public Member Functions | Static Public Member Functions
GenObject Class Reference

#include <yateclass.h>

Inheritance diagram for GenObject:
AnalogLineEvent AsnMib AsnMibTree AsnObject ASNObjId AsnValue Cipher ClientLogic DataBlock DnsRecord GenPointer< Obj > HashList JBConnect JBEngine JBStreamSet JGRtpMedia JIDIdentity MessageDispatcher MessagePostHook MessageReceiver MGCPEpInfo MimeBody ObjList ObjVector Plugin RefObject RemoteBackupSubsystem RTPGroup RTPProcessor RTPSecure SASL ScriptParser ScriptRun SignallingFactory SignallingMessageTimer SocketAddr SocketFilter SS7PointCode SS7SCCPDataSegment SS7TCAPComponent SS7TCAPMessage SS7TCAPTransaction String TranslatorFactory Window XmlChild

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 ClientSound, AnalogLineEvent, ClientLogic, SignallingCircuitRange, JBEngine, RefObject, and MessageHandler.

Referenced by TelEngine::destruct().

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

Get a pointer to a derived class given that class name

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

Reimplemented in ISDNQ931CallMonitor, ISDNQ931Call, ISDNQ931Message, SS7ISUPCall, Cipher, SocketFilter, NamedList, DataBlock, HashList, NamedPointer, NamedString, Driver, Channel, String, Array, Module, ObjVector, CallEndpoint, ObjList, ScriptContext, DataEndpoint, ExpWrapper, JBStream, MimeLinesBody, RefObject, MimeStringBody, Plugin, MimeBinaryBody, DataTranslator, MimeSdpBody, DataSource, MimeMultipartBody, DataConsumer, Message, MimeBody, MimeAuthLine, and MimeHeaderLine.

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:
nameName of the class we are asking for
objPointer 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().

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 SS7TCAPComponent, SS7TCAPTransaction, DurationUpdate, ClientResource, ClientContact, ClientAccount, AnalogLine, JBStreamSetList, NamedString, ClientLogic, JBConnect, String, XmlElement, CallEndpoint, ScriptContext, DataEndpoint, JBStream, Plugin, JGSessionContent, MGCPEndpoint, SignallingComponent, MGCPEpInfo, ASNObjId, AsnMib, ChanAssist, JGRtpMedia, and Window.


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