TEMU
4.4
The Terma Emulator
|
#include </builds/termade/temu/temu/include/temu-c/Support/Objsys.h>
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) |
Generic object interface The object interface provides generic functionality such as serialisation and sanity checking support.
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
void(* temu_ObjectIface::deserialise) (void *Obj, const char *BaseName, void *Ctxt) |
Optional function Called after an object has been restored from a snapshot, this function can read additional properties to the snapshot and take other actions.
Note that with the pseudoproperties supporting snapshotting, this function is very rarely needed.
void(* temu_ObjectIface::printObject) (void *Obj) |
Optional function
Pretty prints the object to stdout, called by the object-print command.
void(* temu_ObjectIface::serialise) (void *Obj, const char *BaseName, void *Ctxt) |
Optional function Called after an object has been written to the snapshot, this function can write out additional properties to the snapshot and take other actions.
Note that with the pseudoproperties supporting snapshotting, this function is very rarely needed.
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.