xstring_context_t Class Reference
Detailed DescriptionThe xstring_context_t class is used to add context sensitivity to xstring lookups. Example: { adobe::attribute_set_t attribute_set; attribute_set.push_back(std::make_pair(adobe::static_name_t("context"), adobe::static_name_t("some_view"))); adobe::xstring_context_t mycontext(attribute_set); // anything here is looked up with the context='some_view'; other attributes remain unchanged } // now our context is out scope and we go back to what we had before. There is also a constructor that takes a name/value pair for simple context construction. Example: { adobe::xstring_context_t mycontext(adobe::static_name_t("context"), adobe::static_name_t("some_view")); // anything here is looked up with the context='some_view'; other attributes remain unchanged } // now our context is out scope and we go back to what we had before. There is also a constructor that takes a set of std::pair<adobe::name_t, adobe::name_t> for simple context construction. Example: { std::vector<std::pair<adobe::name_t, adobe::name_t> > my_set; // fill in my_set ... adobe::xstring_context_t mycontext(&my_set[0], &my_set[my_set.size()]); // anything here is looked up with a context affected by my_set } // now our context is out scope and we go back to what we had before. Definition at line 275 of file xstring.hpp. Member Typedef Documentation§ callback_proc_tDefinition at line 277 of file xstring.hpp. § preorder_predicate_tDefinition at line 278 of file xstring.hpp. Constructor & Destructor Documentation§ xstring_context_t() [1/3]
Definition at line 280 of file xstring.hpp. § xstring_context_t() [2/3]
Definition at line 297 of file xstring.hpp. § xstring_context_t() [3/3]
Definition at line 305 of file xstring.hpp. § ~xstring_context_t()
Definition at line 330 of file xstring.hpp. Member Function Documentation§ set_element_handler()
Definition at line 327 of file xstring.hpp. § set_preorder_predicate()
Definition at line 324 of file xstring.hpp. |