40 #include "ling_class/EST_item_content_aux.h"
41 #include "ling_class/EST_item_aux.h"
42 #include "ling_class/EST_Item_Content.h"
43 #include "EST_String.h"
44 #include "EST_error.h"
46 #include "../base_class/EST_get_function_template.h"
60 if (f.relations.length() == 0)
61 return getValI(f, name, def, s);
65 p = f.relations.head();
66 EST_Item *i = item(f.relations.list(p).v);
67 return getVal(*i, name, def, s);
77 if (f.relations.length() == 0)
78 return getStringI(f, name, def, s);
82 p = f.relations.head();
83 EST_Item *i = item(f.relations.list(p).v);
84 return getString(*i, name, def, s);
93 if (f.relations.length() == 0)
94 return getIntegerI(f, name, def, s);
98 p = f.relations.head();
99 EST_Item *i = item(f.relations.list(p).v);
100 return getInteger(*i, name, def, s);
109 if (f.relations.length() == 0)
110 return getFloatI(f, name, def, s);
114 p = f.relations.head();
115 EST_Item *i = item(f.relations.list(p).v);
116 return getFloat(*i, name, def, s);
123 if (item_content.relations.
length() == 0)
126 EST_feat_status status=efs_ok;
128 v = getFloat(item_content,
"start", -1.0, status);
135 p = item_content.relations.
head();
143 if (item_content.relations.
length() == 0)
146 EST_feat_status status=efs_ok;
148 v = getFloat(item_content,
"mid", -1.0, status);
151 v = (start(item_content)+end(item_content))/2.0;
158 p = item_content.relations.
head();
166 if (item_content.relations.
length() == 0)
169 EST_feat_status status=efs_ok;
171 v = getFloat(item_content,
"time", -1.0, status);
174 v = mid(item_content);
181 p = item_content.relations.
head();
189 if (item_content.relations.
length() == 0)
192 EST_feat_status status=efs_ok;
194 v = getFloat(item_content,
"end", -1.0, status);
201 p = item_content.relations.
head();
const int length() const
number of key value pairs in list
EST_Litem * head() const
Return First key value pair in list.
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.