TEMU  2
The Terma Emulator
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
temu_ObjectIface Struct Reference

#include <temu-c/Support/Objsys.h>

Collaboration diagram for temu_ObjectIface:

Data Fields

void(* serialise )(void *Obj, const char *BaseName, void *Ctxt)
 
void(* deserialise )(void *Obj, const char *BaseName, void *Ctxt)
 
int(* checkSanity )(void *Obj, int Report)
 
void(* timeSourceSet )(void *Obj)
 
void(* printObject )(void *Obj)
 

Detailed Description

Generic object interface The object interface provides generic functionality such as serialisation and sanity checking support.

Definition at line 1904 of file Objsys.h.

Field Documentation

int(* temu_ObjectIface::checkSanity)(void *Obj, int Report)

Return zero if the object is connected as expected, return non-zero if the object is not fully connected the default check will ensure that all the Interface references are connected, but does not care about optional interfaces or

Definition at line 1932 of file Objsys.h.

void(* temu_ObjectIface::deserialise)(void *Obj, const char *BaseName, void *Ctxt)

Optional function Called after an object has been restored from a checkpoint, this function can read additional properties to the checkpoint and take other actions.

Note that with the pseudoproperties supporting checkpointing, this function is very rarely needed.

Definition at line 1924 of file Objsys.h.

void(* temu_ObjectIface::printObject)(void *Obj)

Optional function

Pretty prints the object to stdout, called by the object-print command.

Definition at line 1948 of file Objsys.h.

void(* temu_ObjectIface::serialise)(void *Obj, const char *BaseName, void *Ctxt)

Optional function Called after an object has been written to the checkpoint, this function can write out additional properties to the checkpoint and take other actions.

Note that with the pseudoproperties supporting checkpointing, this function is very rarely needed.

Definition at line 1913 of file Objsys.h.

void(* temu_ObjectIface::timeSourceSet)(void *Obj)

Optional function

Called when the time source has been set on the object The function can for example post initial events.

Definition at line 1940 of file Objsys.h.


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