Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

NVUtil.py File Reference

NameValue and NVList utility functions. More...

#include "omniORB.py"
#include "OpenRTM.py"
#include "SDOPackage.py"
#include "SDOPackage__POA.py"

Classes

class  to_prop
class  nv_find
 Get value in NVList specified by name. More...

Functions

 newNV (name, value)
 Create NameVale.
 newNVBool (name, value)
 Create CORBA::Boolean value type NameVale.
 newNVOctet (name, value)
 Create CORBA::Octet value type NameVale.
 newNVAny (name, value)
 copyFromProperties (nv, prop)
 Copy to NVList from Proeprties.
 copyToProperties (prop, nvlist)
 toProperties (nv)
 find (nv, name)
 find_index (nv, name)
 isString (nv, name)
 Whether the name of NVList's value is CORBA::string.
 isStringValue (nv, name, value)
 toString (nv, name)
 Get string value in NVList specified by name.
 appendStringValue (nv, name, value)
 append (dest, src)
 dump (nv)


Detailed Description

NameValue and NVList utility functions.

Date:
Date
2007/09/11
Author:
Noriaki Ando <n-ando@aist.go.jp> and Shinji Kurihara
Copyright (C) 2006 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

append dest  ,
src 
 

appendStringValue nv  ,
name  ,
value 
 

copyFromProperties nv  ,
prop 
 

Copy to NVList from Proeprties.

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

Parameters:
nv NVList to store Properties values
prop Properties that is copies from

copyToProperties prop  ,
nvlist 
 

dump nv   ) 
 

find nv  ,
name 
 

find_index nv  ,
name 
 

isString nv  ,
name 
 

Whether the name of NVList's value is CORBA::string.

This operation returns boolean value whether the name of NVList's value is CORBA::string.

Parameters:
nv NVList to be searched
prop name to seartch in NVList

isStringValue nv  ,
name  ,
value 
 

newNV name  ,
value 
 

Create NameVale.

This operation creates NameVale. CORBA::Char, CORBA::Boolean, CORBA::Octet creation is not supported. These type of NameValue should be created by using newNVChar(), newNVBool(), newNVOctet() functions.

Parameters:
name name of NameValue
value value of NameValue
Returns:
NameValue

newNVAny name  ,
value 
 

newNVBool name  ,
value 
 

Create CORBA::Boolean value type NameVale.

This operation creates CORBA::Boolean value type NameVale.

Parameters:
name name of NameValue
value value of NameValue
Returns:
NameValue

newNVOctet name  ,
value 
 

Create CORBA::Octet value type NameVale.

This operation creates CORBA::Octet value type NameVale.

Parameters:
name name of NameValue
value value of NameValue
Returns:
NameValue

toProperties nv   ) 
 

toString nv  ,
name 
 

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:
nv NVList to be searched
name name to to serach
Returns:
string value named by name


Generated on Mon Oct 29 15:51:43 2007 for OpenRTM by  doxygen 1.4.3