cGenericAssignableWatch< T > Class Template Reference
[Internal classes]

Template Watch class, for any type that supports operator<<, and operator>> for assignment. More...

#include <cwatch.h>

Inheritance diagram for cGenericAssignableWatch< T >:
cWatchBase cNoncopyableOwnedObject cOwnedObject noncopyable cNamedObject cObject

List of all members.

Public Member Functions

virtual const char * getClassName () const
virtual bool supportsAssignment () const
virtual std::string info () const
virtual void assign (const char *s)

Detailed Description

template<typename T>
class cGenericAssignableWatch< T >

Template Watch class, for any type that supports operator<<, and operator>> for assignment.


Member Function Documentation

template<typename T>
virtual void cGenericAssignableWatch< T >::assign ( const char *  s  )  [inline, virtual]

Changes the watched variable's value.

May only be called if supportsAssignment() returns true.

Reimplemented from cWatchBase.

template<typename T>
virtual const char* cGenericAssignableWatch< T >::getClassName (  )  const [inline, virtual]

Returns a pointer to the class name string.

This method is implemented using typeid (C++ RTTI), and it does not need to be overridden in subclasses.

Reimplemented from cObject.

template<typename T>
virtual std::string cGenericAssignableWatch< T >::info (  )  const [inline, virtual]

Can be redefined to produce a one-line description of object.

The string appears in the graphical user interface (Tkenv) e.g. when the object is displayed in a listbox. The returned string should possibly be at most 80-100 characters long, and must not contain newline.

See also:
detailedInfo()

Reimplemented from cObject.


The documentation for this class was generated from the following file:
Generated on Tue Dec 2 11:16:28 2014 for OMNeT++ Simulation Library by  doxygen 1.6.3