Yate
Public Member Functions
ExpWrapper Class Reference

Object wrapper for evaluation. More...

#include <yatescript.h>

Inheritance diagram for ExpWrapper:
ExpOperation NamedString String GenObject

List of all members.

Public Member Functions

 ExpWrapper (GenObject *object, const char *name=0)
virtual ~ExpWrapper ()
virtual void * getObject (const String &name) const
virtual ExpOperationclone (const char *name) const
GenObjectobject () const

Detailed Description

Object wrapper for evaluation.

Helper class that allows wrapping entire objects in an operation


Constructor & Destructor Documentation

ExpWrapper ( GenObject object,
const char *  name = 0 
) [inline]

Constructor

Parameters:
objectPointer to the object to wrap
nameOptional name of the wrapper
virtual ~ExpWrapper ( ) [inline, virtual]

Destuctor, deletes the held object

References TelEngine::destruct().


Member Function Documentation

virtual ExpOperation* clone ( const char *  name) const [virtual]

Clone and rename method

Parameters:
nameName of the cloned operation
Returns:
New operation instance

Reimplemented from ExpOperation.

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 from NamedString.

GenObject* object ( ) const [inline]

Object access method

Returns:
Pointer to the held object

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