OpenRTM-aist-Python 2.0.0
Classes | Functions
C:/docs/OpenRTM-aist-Python/OpenRTM_aist/NVUtil.py File Reference

NameValue and NVList utility functions. More...

Classes

class  OpenRTM_aist.NVUtil.to_prop
 
class  OpenRTM_aist.NVUtil.nv_find
 

Functions

def OpenRTM_aist.NVUtil.newNV (name, value)
 
def OpenRTM_aist.NVUtil.copyFromProperties (nv, prop)
 
def OpenRTM_aist.NVUtil.copyToProperties (prop, nvlist)
 
def OpenRTM_aist.NVUtil.toProperties (nv)
 coil::Properties toProperties(const SDOPackage::NVList& nv);
 
def OpenRTM_aist.NVUtil.find (nv, name)
 
def OpenRTM_aist.NVUtil.find_index (nv, name)
 
def OpenRTM_aist.NVUtil.isString (nv, name)
 
def OpenRTM_aist.NVUtil.isStringValue (nv, name, value)
 
def OpenRTM_aist.NVUtil.toString (nv, name=None)
 
def OpenRTM_aist.NVUtil.appendStringValue (nv, name, value)
 
def OpenRTM_aist.NVUtil.append (dest, src)
 
def OpenRTM_aist.NVUtil.dump_to_stream (out, nv)
 
def OpenRTM_aist.NVUtil.dump (nv)
 

Detailed Description

NameValue and NVList utility functions.

Date
Date
2007/09/11
Author
Noriaki Ando n-and.nosp@m.o@ai.nosp@m.st.go.nosp@m..jp and Shinji Kurihara

Copyright (C) 2006-2008 Noriaki Ando Task-intelligence Research Group, Intelligent Systems Research Institute, National Institute of Advanced Industrial Science and Technology (AIST), Japan All rights reserved.

Function Documentation

◆ copyFromProperties()

def OpenRTM_aist.NVUtil.copyFromProperties (   nv,
  prop 
)

Copy to NVList from Proeprties

This operation copies Properties to NVList. Created NVList's values are CORBA::string.

Parameters
nvNVList to store Properties values
propProperties that is copies from

void copyFromProperties(SDOPackage::NVList& nv, const coil::Properties& prop);

◆ copyToProperties()

def OpenRTM_aist.NVUtil.copyToProperties (   prop,
  nvlist 
)

Copy to Proeprties from NVList

This operation copies NVList to Properties.

Parameters
propProperties to store NVList values
nvNVList that is copies from

void copyToProperties(coil::Properties& prop, const SDOPackage::NVList& nv);

◆ dump_to_stream()

def OpenRTM_aist.NVUtil.dump_to_stream (   out,
  nv 
)

Print information configured in NVList as a string type std::ostream& dump_to_stream(std::ostream& out, const SDOPackage::NVList& nv)

◆ find()

def OpenRTM_aist.NVUtil.find (   nv,
  name 
)

Get value in NVList specified by name

This operation returns Any type of value specified by name. Created NVList's values are CORBA::string.

Parameters
nvNVList to be searched
propname to seartch in NVList

◆ newNV()

def OpenRTM_aist.NVUtil.newNV (   name,
  value 
)

Create NameVale

This operation creates NameVale.

Parameters
namename of NameValue
valuevalue of NameValue
Returns
NameValue

◆ toString()

def OpenRTM_aist.NVUtil.toString (   nv,
  name = None 
)

Get string value in NVList specified by name

This operation returns string value in NVList specified by name. If the value in NVList specified by name is not CORBA::string type this operation returns empty string value.

Parameters
nvNVList to be searched
namename to to serach
Returns
string value named by name