Logo Search packages:      
Sourcecode: djvulibre version File versions

bool DjVuPort::inherits ( const GUTF8String class_name  )  const [inline, virtual]

Should return 1 if the called class inherits class class_name#. When a destination receives a request, it can retrieve the pointer to the source DjVuPort#. This virtual function should be able to help to identify the source of the request. For example, {DjVuFile} is also derived from DjVuPort#. In order for the receiver to recognize the sender, the {DjVuFile} should override this function to return TRUE# when the class_name# is either DjVuPort# or DjVuFile#

Reimplemented in DjVuDocEditor, DjVuDocument, DjVuFile, DjVuSimplePort, and DjVuMemoryPort.

Definition at line 493 of file DjVuPort.h.

Referenced by DjVuMemoryPort::inherits(), DjVuSimplePort::inherits(), DjVuFile::inherits(), and DjVuDocument::inherits().

   return (class_name == "DjVuPort");

Generated by  Doxygen 1.6.0   Back to index