Classes | Namespaces | Functions
NVUtil.cpp File Reference

NameValue and NVList utility functions. More...

#include <map>
#include <algorithm>
#include <coil/stringutil.h>
#include <rtm/NVUtil.h>
#include <rtm/CORBA_SeqUtil.h>
Include dependency graph for NVUtil.cpp:

Go to the source code of this file.

Classes

struct  NVUtil::nv_find
 Functor to find a NVList. More...
 
struct  NVUtil::to_prop
 Functor to transform NVList into the properties. More...
 

Namespaces

 NVUtil
 Utility for NameValue.
 

Functions

void NVUtil::append (SDOPackage::NVList &dest, const SDOPackage::NVList &src)
 Append an element to NVList. More...
 
bool NVUtil::appendStringValue (SDOPackage::NVList &nv, const char *name, const char *value)
 Append the specified string to element of NVList. More...
 
void NVUtil::copyFromProperties (SDOPackage::NVList &nv, const coil::Properties &prop)
 Copy the properties to NVList. More...
 
void NVUtil::copyToProperties (coil::Properties &prop, const SDOPackage::NVList &nv)
 Copy NVList to the Proeprties. More...
 
void NVUtil::dump (const SDOPackage::NVList &nv)
 Print information configured in NVList as a string type to Standard Outport. More...
 
std::ostream & NVUtil::dump_to_stream (std::ostream &out, const SDOPackage::NVList &nv)
 Print information configured in NVList as a string type. More...
 
const CORBA::Any & NVUtil::find (const SDOPackage::NVList &nv, const char *name)
 Return the value specified by name from NVList. More...
 
const CORBA::Long NVUtil::find_index (const SDOPackage::NVList &nv, const char *name)
 Return the index of element specified by name from NVList. More...
 
bool NVUtil::isString (const SDOPackage::NVList &nv, const char *name)
 Validate whether value type specified by name is string type. More...
 
bool NVUtil::isStringValue (const SDOPackage::NVList &nv, const char *name, const char *value)
 Check whether the value of specified name specified matches the specified string. More...
 
SDOPackage::NameValue NVUtil::newNVAny (const char *name, const CORBA::Any &value)
 Create NameValue typed CORBA::Any. More...
 
SDOPackage::NameValue NVUtil::newNVBool (const char *name, const CORBA::Boolean value)
 This operation creates NameValue typed CORBA::Boolean. More...
 
SDOPackage::NameValue NVUtil::newNVChar (const char *name, const CORBA::Char value)
 Create NameValue typed CORBA::Char. More...
 
SDOPackage::NameValue NVUtil::newNVOctet (const char *name, const CORBA::Octet value)
 Create NameValue typed CORBA::Octet. More...
 
coil::Properties NVUtil::toProperties (const SDOPackage::NVList &nv)
 Transform NVList to the properties. More...
 
std::string NVUtil::toString (const SDOPackage::NVList &nv, const char *name)
 Get NVList of specifid name as string. More...
 
std::string NVUtil::toString (const SDOPackage::NVList &nv)
 Get information configured in NVList as a string type. More...
 

Detailed Description

NameValue and NVList utility functions.

Date
Date
2008-01-13 07:41:08
Author
Noriaki Ando n-and.nosp@m.o@ai.nosp@m.st.go.nosp@m..jp

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.

Id
NVUtil.cpp 2019 2011-01-06 17:02:23Z n-ando

Definition in file NVUtil.cpp.



openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Jun 6 2019 19:26:01