#include <DviFile.h>
Inheritance diagram for DviFileEvent:
Public Types | |
enum | eventTypes { setchar, setrule, fontchange, special, page, preamble, postamble } |
Public Member Functions | |
virtual void | debug () const |
Writes a representation of this event on cerr. | |
eventTypes | type () const |
Gets the type of this event. | |
const unsigned char | opcode () const |
Gets the underlying opcode which produced this event. | |
void | release () |
Release this event. | |
Static Public Member Functions | |
verbosities | verbosity (const verbosities level) |
Sets the verbosity for DviFileEvent and its subclasses. | |
Protected Member Functions | |
DviFileEvent (unsigned char opcode, eventTypes t, DviFile *dp=0) | |
Creates a new event. | |
Static Protected Attributes | |
verbosities | verbosity_ = normal |
All the features of a DVI file which calling code might be interested in are represented by one of the subclasses of this, and these are obtained in order by calling the DviFile#getEvent method on DviFile
.
The design here is likely to be adjusted in future releases of this library. Although it is possible now, you should avoid constructing any of the subtypes DviFileEvent
yourself, but use only those returned to you by DviFile#getEvent.
The documentation here concentrates on how the methods and variables here relate to the underlying quantities obtained from the DVI file. For fuller information on these, see the DVI standard.
|
|
|
Creates a new event.
|
|
Writes a representation of this event on cerr.
Reimplemented in DviFileSetChar, DviFileSetRule, DviFileFontChange, DviFileSpecial, DviFilePage, and DviFilePreamble.
|
|
Gets the underlying opcode which produced this event.
|
|
Release this event.
Client code which has been given an event by DviFile#getEvent should call this method on that event when it has no further use for it. This releases or reclaims all resources associated with it. This may call |
|
Gets the type of this event.
This information can also be obtained in a more object-oriented style by attempting a cast to the appropriate subtype, using, for example,
|
|
Sets the verbosity for DviFileEvent and its subclasses.
|
|
|