20 from omniORB
import any
23 import SDOPackage, SDOPackage__POA
52 any_val = any.to_any(value)
54 print(
"ERROR NVUtil.newNV : Can't convert to any. ", type(value))
58 nv = SDOPackage.NameValue(name, any_val)
86 keys = prop.propertyNames()
90 for i
in range(nv_len):
93 for i
in range(keys_len):
94 nv.append(
newNV(keys[i], prop.getProperty(keys[i])))
121 val = str(any.from_any(nv.value, keep_structs=
True))
122 prop.setProperty(str(nv.name),val)
124 print(OpenRTM_aist.Logger.print_exception())
139 self.
_prop.setProperty(nv.name, nv.value)
177 return str(self.
_name) == str(nv.name)
210 return nv[index].value
251 value =
find(nv, name)
252 val = any.from_any(value, keep_structs=
True)
253 return type(val) == str
318 ret_value =
find(nv, name)
319 val = any.from_any(ret_value, keep_structs=
True)
323 print(OpenRTM_aist.Logger.print_exception())
355 tmp_str = nv[index].value.value()
356 values = OpenRTM_aist.split(tmp_str,
",")
365 nv[index].value = any.to_any(tmp_str)
387 for i
in range(len(src)):
399 for i
in range(len(nv)):
400 val = any.from_any(nv[i].value, keep_structs=
True)
402 out[0] += (nv[i].name +
": " + str(nv[i].value) +
"\n")
404 out[0] += (nv[i].name +
": not a string value \n")