lookupobjectmember : output |
Output the block to the stream.
Any other method of any other object can call this method. This is called 'public' access.
The data-type returned is "voidtype";
This method is contained in the object "lookupobjectmember".
The method takes the following arguments:
filedef : Pointer to tgl_structure_parser
Not sure.
obj : Pointer to @schemaobj
Not sure.
This method is overridden from an abstract method with the same signature found in the object @block.
The files "../cppxmlobj/reflect/jscript_object_navigator.hpp", "schema/schema_obj.hpp" and "tgl_structure_parser.hpp" are included.
Lookup an object and get it's member. When we ae about to actually search, we use the type they pass in, but if it wasn't specified, we use "object".
ph::reflect::jscript_object_navigator n(obj->root(), filedef->console(), false, false); ph::common::object_base *no = n.navigate(obj, _location); if (!no) { filedef->error("Could not find location [" + _location + "] in object."); return; } xmlobj::xmlobj *root = dynamic_cast<xmlobj::xmlobj *>(no); if (!root) { filedef->error("Internal error. How could the object returned not be an xmlobj?."); return; } xmlobj *found = root->findwithtype( _objecttype == "" ? "object" : _objecttype, obj->get(_lookupmember)); if (found != 0) filedef->write_output(found->get(_membername));