-- DefineInfo -- F.Damberger 8.Feb.2008 -- This script defines a simple function to write out all the functions avalable -- with a given object class. -- Execute the script once. -- Afterwards, you can print the names of all the functions available from an -- object class by typing on the terminal windows LUA> command line: -- Info( NameOfObjectClass ) -- example: -- Info(Project) -- prints all the functions available from a project -- (note that the name of the ObjectClass must capitalized) -- The output looks something like: -- assignSpin -- linkSpins -- getSpinLinks -- ... --Unfortunately it is not alphabetical. -- I.e. if you have a project reference "MyProject" -- obtained for example with: -- MyProject = cara:getProject("NameOfMyProject") -- Then you can call all the functions: -- MyProject:assignSpin() -- MyProject:linkSpins() -- MyProject:getSpinLinks() -- Note that many of these functions require input parameters between the () -- They are left out here for simplicity. -- You can get more details on each function or object class from -- the CARA/LUA programmers manual -- and the release notes -- both available at the cara website. -- To get functions available from the top-level Object "cara" type: -- Info(Repository) -- because "cara" references the repository which is class "Repository". -- This returns: -- getAuthor -- getExperiment -- save -- getRecord -- getProject -- ... -- which means that you can execute the following functions: -- cara:getAuthor() -- cara:getExperiment() -- cara:save -- cara:getRecord() -- cara:getProject() function Info( Object ) for a,b in pairs( Object ) do print(a) end end