classes/parrotio.pmc - Parrot IO


These are the vtable functions for Parrot IO.

Methods ^

void class_init()

Class initialization.

void init()

Initializes the IO PMC.

void destroy()

Destroys the IO PMC, flushing and closing as necessary.

PMC *clone()

Clones the IO PMC.

For now both PMCs refer to the same ParrotIO object. If we have different IO layers, we might copy data and struct_val.

INTVAL get_bool()

Returns whether at EOF or not.

STRING *get_string_keyed_int(INTVAL n)

Return the name of the nth layer. n >= 0 returns layer names up from the bottom. If n is negative returns layer names from top down. For non-existing layers an empty string is returned.

void push_string (STRING *value)

Push the layer name value onto the PIO's layer stack.

STRING *pop_string ()

Pop a layer off the PIO's layer stack. Returns the layer name.


Initial version by leo 2003/06/23.