|
Ginga
0.13.6.1771-df200
The iTV middleware.
|

Public Member Functions | |
| ParserState (int, int) | |
| ~ParserState () | |
| ParserState::Error | getError (string *) |
| Document * | process (xmlDoc *) |
Private Member Functions | |
| string | genId () |
| bool | isInUniqueSet (const string &) |
| void | addToUniqueSet (const string &) |
| bool | getData (const string &, void **) |
| bool | setData (const string &, void *, UserDataCleanFunc fn=nullptr) |
| bool | errElt (xmlNode *, ParserState::Error, const string &) |
| bool | errEltUnknown (xmlNode *) |
| bool | errEltMissingParent (xmlNode *) |
| bool | errEltBadParent (xmlNode *, const string &) |
| bool | errEltUnknownAttribute (xmlNode *, const string &) |
| bool | errEltMissingAttribute (xmlNode *, const string &) |
| bool | errEltBadAttribute (xmlNode *, const string &, const string &, const string &explain="") |
| bool | errEltUnknownChild (xmlNode *, const string &) |
| bool | errEltMissingChild (xmlNode *, const list< string > &) |
| bool | errEltBadChild (xmlNode *, const string &, const string &explain="") |
| bool | eltCacheIndex (xmlNode *, ParserElt **) |
| bool | eltCacheIndexParent (xmlNode *, ParserElt **) |
| bool | eltCacheIndexById (const string &, ParserElt **, const list< string > &) |
| bool | eltCacheIndexByTag (const list< string > &, list< ParserElt * > *) |
| bool | eltCacheAdd (ParserElt *) |
| Object * | objStackPeek () |
| Object * | objStackPop () |
| void | objStackPush (Object *) |
| bool | resolveComponentRef (Context *, ParserElt *, Object **) |
| bool | resolveGhostBindRef (Context *, ParserElt *, string *) |
| bool | resolveInterfaceRef (Context *, ParserElt *, Event **) |
| string | resolveLinkParamRef (const string &, const map< string, string > *, const map< string, string > *, const map< string, string > *) |
| bool | processNode (xmlNode *) |
Private Attributes | |
| Document * | _doc |
| xmlDoc * | _xml |
| Rect | _rect |
| int | _genid |
| set< string > | _unique |
| UserData | _udata |
| ParserState::Error | _error |
| string | _errorMsg |
| map< xmlNode *, ParserElt * > | _eltCache |
| list< Object * > | _objStack |
| enum ParserState::Error |
| ParserState::ParserState | ( | int | width, |
| int | height | ||
| ) |
References ERROR_NONE.
| ParserState::~ParserState | ( | ) |
|
private |
|
private |
References ParserElt::getNode().
|
private |
References g_assert_nonnull(), and tryset.
Referenced by popNcl().
|
private |
References tryset.
Referenced by popContext(), and popNcl().
|
private |
References g_assert_nonnull().
Referenced by popNcl().
|
private |
|
private |
References ERROR_NONE, g_assert(), g_assert_nonnull(), toCString, and xstrbuild().
|
private |
References ERROR_ELT_BAD_ATTRIBUTE.
Referenced by popAssessmentStatement(), popNcl(), pushCompoundStatement(), and pushSimpleCondition().
|
private |
References ERROR_ELT_BAD_CHILD.
Referenced by popAssessmentStatement(), pushAttributeAssessment(), and pushCompoundStatement().
|
private |
References ERROR_ELT_BAD_PARENT.
|
private |
References ERROR_ELT_MISSING_ATTRIBUTE.
Referenced by pushSimpleCondition().
|
private |
References ERROR_ELT_MISSING_CHILD, and g_assert().
Referenced by popAssessmentStatement(), popCausalConnector(), and popCompoundStatement().
|
private |
References ERROR_ELT_MISSING_PARENT.
|
private |
References ERROR_ELT_UNKNOWN.
|
private |
References ERROR_ELT_UNKNOWN_ATTRIBUTE.
|
private |
References ERROR_ELT_UNKNOWN_CHILD.
|
private |
References xstrbuild().
|
private |
References ParserElt::_udata, and UserData::getData().
Referenced by popRegion().
| ParserState::Error ParserState::getError | ( | string * | message | ) |
|
private |
|
private |
Referenced by popContext(), pushArea(), pushContext(), pushLink(), pushMedia(), and pushProperty().
|
private |
Referenced by popContext(), popMedia(), and popNcl().
|
private |
References g_assert_nonnull().
Referenced by pushContext(), pushMedia(), and pushNcl().
|
static |
References Predicate::addChild(), Predicate::ATOM, eltCacheIndexParent(), errEltBadAttribute(), errEltBadChild(), errEltMissingChild(), g_assert(), ParserElt::getAttribute(), Predicate::getChildren(), ParserElt::getData(), ParserElt::getNode(), ParserElt::getTag(), Predicate::getType(), Predicate::NEGATION, Predicate::setTest(), Predicate::toString(), TRACE, UDATA_GET, and unlikely.
|
static |
References errEltMissingChild(), ParserElt::getNode(), UDATA_GET, UDATA_SET, and unlikely.
|
static |
|
static |
References Context::addPort(), cast, eltCacheIndexById(), g_assert(), g_assert_nonnull(), objStackPeek(), objStackPop(), resolveInterfaceRef(), UDATA_GET, and unlikely.
|
static |
References g_assert(), instanceof, and objStackPop().
|
static |
References _doc, Context::addLink(), Object::addSelectionEvent(), Predicate::ATOM, Event::ATTRIBUTION, cast, Predicate::clone(), ParserConnRole::condition, Predicate::CONJUNCTION, Predicate::DISJUNCTION, eltCacheIndex(), eltCacheIndexById(), eltCacheIndexByTag(), errEltBadAttribute(), Action::event, ParserConnRole::eventType, Predicate::FALSUM, g_assert(), g_assert_nonnull(), ParserElt::getAttributes(), Predicate::getChildren(), Event::getId(), Event::getObject(), Document::getObjectByIdOrAlias(), Object::getSelectionEvent(), Predicate::getType(), Event::getType(), ParserLinkBind::iface, ParserConnRole::key, Predicate::NEGATION, ParserLinkBind::node, objStackPop(), ParserLinkBind::params, Action::predicate, ParserConnRole::predicate, Event::PRESENTATION, resolveGhostBindRef(), resolveInterfaceRef(), resolveLinkParamRef(), Event::SELECTION, Event::setParameter(), Action::transition, ParserConnRole::transition, UDATA_GET, unlikely, Action::value, ParserConnRole::value, and Predicate::VERUM.
|
static |
References _rect, g_assert(), g_assert_nonnull(), getData(), ParserElt::getParentNode(), pointerof, and toCPPString.
| Document * ParserState::process | ( | xmlDoc * | xml | ) |
References g_assert_nonnull(), and unlikely.
Referenced by process().
|
private |
References ATTR_NAME, ATTR_NONEMPTY, ATTR_REQUIRED, ATTR_UNIQUE, ParserSyntaxElt::attributes, ELT_CACHE, ELT_GEN_ID, ParserSyntaxElt::flags, g_assert(), g_assert_nonnull(), ParserSyntaxElt::parents, parser_syntax_table_get_possible_children(), parser_syntax_table_index(), ParserElt::ParserElt(), ParserSyntaxElt::pop, ParserSyntaxElt::push, ParserElt::setAttribute(), toCPPString, unlikely, xmlGetPropAsString(), xmlIsValidName(), and xstrbuild().
|
static |
|
static |
|
static |
|
static |
References assessCleanup(), rolesCleanup(), and UDATA_SET.
|
static |
References Predicate::CONJUNCTION, predCleanup(), and UDATA_SET.
|
static |
References Predicate::addChild(), eltCacheIndexParent(), errEltBadAttribute(), errEltBadChild(), g_assert(), ParserElt::getAttribute(), Predicate::getChildren(), ParserElt::getNode(), ParserElt::getTag(), Predicate::getType(), Predicate::NEGATION, parser_syntax_parse_bool(), Predicate::toString(), TRACE, UDATA_GET, UDATA_SET, and unlikely.
|
static |
|
static |
|
static |
References bindsCleanup(), cast, g_assert_nonnull(), objStackPeek(), paramsCleanup(), and UDATA_SET.
|
static |
References eltCacheIndexParent(), g_assert(), ParserElt::getAttribute(), ParserElt::getNode(), and UDATA_GET.
|
static |
|
static |
References _doc, Object::addAlias(), g_assert_nonnull(), ParserElt::getAttribute(), Document::getRoot(), and objStackPush().
|
static |
References eltCacheIndexParent(), g_assert(), ParserElt::getAttribute(), ParserElt::getNode(), and UDATA_GET.
|
static |
|
static |
|
static |
References Event::ATTRIBUTION, Predicate::clone(), ParserConnRole::condition, eltCacheIndexParent(), errEltBadAttribute(), errEltMissingAttribute(), ParserConnRole::eventType, g_assert(), g_assert_nonnull(), ParserElt::getAttribute(), ParserElt::getNode(), ParserElt::getTag(), ParserConnRole::key, ParserConnRole::node, parser_syntax_reserved_role_table_index(), ParserConnRole::predicate, ParserConnRole::role, Event::SELECTION, ParserConnRole::transition, UDATA_GET, unlikely, and ParserConnRole::value.
|
private |
References g_assert(), ParserElt::getAttribute(), Object::getId(), ParserElt::getNode(), ParserElt::getTag(), tryset, and unlikely.
Referenced by popNcl().
|
private |
References cast, g_assert(), g_assert_nonnull(), ParserElt::getAttribute(), Object::getAttributionEvent(), Object::getId(), Object::getLambda(), ParserElt::getNode(), Object::getPresentationEvent(), ParserElt::getTag(), instanceof, tryset, and unlikely.
Referenced by popContext(), and popNcl().
|
private |
Referenced by popNcl().
|
private |
References ParserElt::_udata, and UserData::setData().
|
private |
Referenced by popNcl(), pushMedia(), and pushNcl().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Referenced by popRegion(), and pushRegion().
|
private |
|
private |
|
private |
Referenced by pushMedia().