99 EST_error(
"{FND} Feature %s not defined\n", name);
107 if (strchr(name,
'.') ==
NULL)
114 if (v.
type() == val_type_feats)
115 return feats(v)->val_path(nname.
after(
"."), d);
125 if (strchr(name,
'.') ==
NULL)
132 if (v.
type() == val_type_feats)
133 return feats(v)->val_path(nname.
after(
"."));
135 EST_error(
"Feature %s not feature valued\n", (
const char *)fname);
149 if (strchr(name,
'.') ==
NULL)
155 if (v.
type() == val_type_feats)
156 return feats(v)->present(nname.
after(
"."));
168 if (strchr(name,
'.') ==
NULL)
177 if (v.
type() == val_type_feats)
178 feats(v)->set_path(nname.
after(
"."),sval);
180 EST_error(
"Feature %s not feature valued\n",
181 (
const char *)fname);
202 for(p.
begin(from); p; ++p)
210 return "<<Features>>";
213 #if defined(INSTANTIATE_TEMPLATES)
void set_val(const EST_String &name, const EST_Val &sval)
#define Instantiate_TStructIterator_T(CONTAINER, IP, ENTRY, TAG)
EST_Features & operator=(const EST_Features &a)
EST_Val est_val(const EST_Item_featfunc f)
#define VAL_REGISTER_CLASS(NAME, CLASS)
void set_path(const EST_String &name, const EST_Val &sval)
EST_TKVL< EST_String, EST_Val > * features
EST_String error_name(const EST_Features &a)
Templated Key-Value Item. Serves as the items in the list of the EST_TKVL class.
const EST_Val & f(const EST_String &path) const
EST_TList< EST_TKVI< K, V > > list
Linked list of key-val pairs. Don't use this as it will be made private in the future.
val_type type(void) const
int present(const EST_String &name) const
#define Instantiate_TIterator_T(CONTAINER, IP, ENTRY, TAG)
const EST_Val & val_path(const EST_String &path) const
void begin(const Container &over)
Set the iterator ready to run over this container.
int present(const K &rkey) const
Returns true if key is present.
EST_Features & A(const EST_String &path) const
static EST_Val feature_default_value
EST_String after(int pos, int len=1) const
Part after pos+len.
const EST_Val & val(const char *name) const
EST_String before(int pos, int len=0) const
Part before position.
void merge_features(EST_Features &to, EST_Features &from)