vectorhasany : pass |
This method is called to test if the condition should pass or not.
Any other method of any other object can call this method. This is called 'public' access.
The data-type returned is "booltype"; Returns "true" if the condition passes.
This method is contained in the object "vectorhasany".
The method takes the following arguments:
filedef : Pointer to tgl_structure_parser
Not sure.
obj : Pointer to @schemaobj
Not sure.
first : booltype
If true, then return true only if the first item is true.
last : booltype
If true, then return true only if the last item is true.
This method is overridden from an abstract method with the same signature found in the object @condition.
The files "tgl_condition.hpp", "schema/schema_obj.hpp" and "tgl_structure_parser.hpp" are included.
Implement a logical or. This means that if any pass, we pass.
ph::xmlobj::xmlobj_vector *v = dynamic_cast<ph::xmlobj::xmlobj_vector *>(obj->get_composite_object(_vector)); if (!v) return _fail; for (std::vector<ph::common::object_base *>::iterator i=v->begin(); i != v->end(); i++) { if (!(*i)->pretendable()) { filedef->error("Object has no pretendable interface."); return _fail; } ph::tools::schema::schema_obj *o = dynamic_cast<ph::tools::schema::schema_obj *>( (*i)->pretendable()->realobject()); if (o) { if (_condition->pass(filedef, o, first, last)) return !_fail; } } return _fail;