20 #ifndef NVUTIL_NVUTIL_H 21 #define NVUTIL_NVUTIL_H 25 #include <coil/Properties.h> 26 #include <rtm/idl/SDOPackageSkel.h> 78 template <
class Value>
79 SDOPackage::NameValue
newNV(
const char* name, Value value)
81 SDOPackage::NameValue
nv;
82 nv.name = CORBA::string_dup(name);
148 SDOPackage::NameValue
newNVChar(
const char* name,
const CORBA::Char value);
175 SDOPackage::NameValue
newNVBool(
const char* name,
176 const CORBA::Boolean value);
203 SDOPackage::NameValue
newNVOctet(
const char* name,
const CORBA::Octet value);
230 SDOPackage::NameValue
newNVAny(
const char* name,
const CORBA::Any& value);
257 #else // ORB_IS_RTORB 259 #endif // ORB_IS_RTORB 506 #else // ORB_IS_RTORB 509 #endif // ORB_IS_RTORB 594 #endif // NVUTIL_NVUTIL_H SDOPackage::NameValue newNV(const char *name, Value value)
Create NameValue.
bool isString(const SDOPackage::NVList &nv, const char *name)
Validate whether value type specified by name is string type.
SDOPackage::NameValue newNVOctet(const char *name, const CORBA::Octet value)
Create NameValue typed CORBA::Octet.
bool appendStringValue(SDOPackage::NVList &nv, const char *name, const char *value)
Append the specified string to element of NVList.
std::vector< std::pair< std::string, std::string > > NVList
SDOPackage::NameValue newNVBool(const char *name, const CORBA::Boolean value)
This operation creates NameValue typed CORBA::Boolean.
const CORBA::Long find_index(const SDOPackage::NVList &nv, const char *name)
Return the index of element specified by name from NVList.
void copyToProperties(coil::Properties &prop, const SDOPackage::NVList &nv)
Copy NVList to the Proeprties.
std::string toString(const SDOPackage::NVList &nv, const char *name)
Get NVList of specifid name as string.
const CORBA::Any & find(const SDOPackage::NVList &nv, const char *name)
Return the value specified by name from NVList.
void dump(const SDOPackage::NVList &nv)
Print information configured in NVList as a string type to Standard Outport.
void append(SDOPackage::NVList &dest, const SDOPackage::NVList &src)
Append an element to NVList.
prop
Organization::get_organization_property ();.
coil::Properties toProperties(const SDOPackage::NVList &nv)
Transform NVList to the properties.
Class represents a set of properties.
SDOPackage::NameValue newNVChar(const char *name, const CORBA::Char value)
Create NameValue typed CORBA::Char.
bool isStringValue(const SDOPackage::NVList &nv, const char *name, const char *value)
Check whether the value of specified name specified matches the specified string. ...
void copyFromProperties(SDOPackage::NVList &nv, const coil::Properties &prop)
Copy the properties to NVList.
SDOPackage::NameValue newNVAny(const char *name, const CORBA::Any &value)
Create NameValue typed CORBA::Any.