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")
def push_back(seq, elem)
Push the new element back to the CORBA sequence.
def for_each(seq, f)
Apply the functor to all CORBA sequence elements.
def copyToProperties(prop, nvlist)
Copy to Proeprties from NVList.
The Properties class represents a persistent set of properties.
def appendStringValue(nv, name, value)
def toString(nv, name=None)
Get string value in NVList specified by name.
def isStringValue(nv, name, value)
def dump_to_stream(out, nv)
Print information configured in NVList as a string type std::ostream& dump_to_stream(std::ostream& ou...
def find(seq, f)
Return the index of CORBA sequence element that functor matches.
def toProperties(nv)
coil::Properties toProperties(const SDOPackage::NVList& nv);
def find(nv, name)
Get value in NVList specified by name.
def copyFromProperties(nv, prop)
Copy to NVList from Proeprties.
def newNV(name, value)
Create NameVale.