Loader class, available in: Global contextSupport for loading files in the Framsticks format. Used in the experiment definition to retrieve experiment state (see OnExpLoad function in standard.expdef). Registered objects (addClass) are handled automaticaly. Loader can call user functions defined by setBreakLabel.This class has 20 members:
sdleiF
int AfterObject ROAfterObject break condition
int BeforeObject ROBeforeObject break condition
int BeforeUnknown ROBeforeUnknown break condition
string comment ROlast comment
object currentObjectcurrent object
int firstComment RO0 .. 1 (false/true)first comment
string objectNamecurrent object's class name
int OnComment ROOnComment break condition
int OnError ROOnError break condition
int status ROloader status
snoitcnuF
function abort()doesn't return a valueabort loading
function addClass(object)doesn't return a valueadd class definition
function clearClasses()doesn't return a valueremove all definitions
function go()returns intload until next break
function loadObject()doesn't return a valueload current object
function removeClass(object)doesn't return a valueremove class definition
function run()returns intcontinue loading
function setBreak(int break_conditions)doesn't return a valuedefine break condition
function setBreakLabel(int break_condition, string label)doesn't return a valueassociate code label with the break condition
function skipObject()doesn't return a valueskip current object
Global context