void PyFeature::do_export() { PyEntity<base::IFeature>::do_export("Feature"); enum_<LinkType>("LinkType") .value("Tagged", LinkType::Tagged) .value("Untagged", LinkType::Untagged) .value("Indexed", LinkType::Indexed) ; class_<Feature, bases<base::Entity<base::IFeature>>>("Feature") .add_property("link_type", GETTER(LinkType, Feature, linkType), SETTER(LinkType, Feature, linkType)) .add_property("data", GETTER(DataArray, Feature, data), REF_SETTER(DataArray, Feature, data)) ; to_python_converter<std::vector<Feature>, vector_transmogrify<Feature>>(); to_python_converter<boost::optional<Feature>, option_transmogrify<Feature>>(); }
static char *hyphenate_words(pgspParserContext *ctx, char *src); static void xml_objstart(void *state); static void xml_objend(void *state); static void xml_arrend(void *state); static void xml_ofstart(void *state, char *fname, bool isnull); static void xml_ofend(void *state, char *fname, bool isnull); static void xml_aestart(void *state, bool isnull); static void xml_aeend(void *state, bool isnull); static void xml_scalar(void *state, char *token, JsonTokenType tokentype) ; static void init_json_semaction(JsonSemAction *sem, pgspParserContext *ctx); word_table propfields[] = { {P_NodeType, "t" ,"Node Type", NULL, true, conv_nodetype, SETTER(node_type)}, {P_RelationShip, "h" ,"Parent Relationship", NULL, true, conv_relasionship, NULL}, {P_RelationName, "n" ,"Relation Name", NULL, true, NULL, SETTER(obj_name)}, {P_FunctioName, "f" ,"Function Name", NULL, true, NULL, SETTER(obj_name)}, {P_IndexName, "i" ,"Index Name", NULL, true, NULL, SETTER(index_name)}, {P_CTEName, "c" ,"CTE Name", NULL, true, NULL, SETTER(obj_name)}, {P_TrgRelation, "w" ,"Relation", NULL, true, NULL, SETTER(trig_relation)}, {P_Schema, "s" ,"Schema", NULL, true, NULL, SETTER(schema_name)}, {P_Alias, "a" ,"Alias", NULL, true, NULL, SETTER(alias)}, {P_Output, "o" ,"Output", NULL, true, conv_expression, SETTER(output)}, {P_ScanDir, "d" ,"Scan Direction", NULL, true, conv_scandir, SETTER(scan_dir)}, {P_MergeCond, "m" ,"Merge Cond", NULL, true, conv_expression, SETTER(merge_cond)}, {P_Strategy, "g" ,"Strategy", NULL, true, conv_strategy, SETTER(strategy)}, {P_JoinType, "j" ,"Join Type", NULL, true, conv_jointype, SETTER(join_type)}, {P_SortMethod, "e" ,"Sort Method", NULL, true, conv_sortmethod, SETTER(sort_method)}, {P_SortKey, "k" ,"Sort Key", NULL, true, conv_expression, SETTER(sort_key)},