20 #ifndef NVUTIL_NVUTIL_H 21 #define NVUTIL_NVUTIL_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 336 const CORBA::Any&
find(
const SDOPackage::NVList& nv,
const char* name);
365 const CORBA::Long
find_index(
const SDOPackage::NVList& nv,
const char* name);
394 bool isString(
const SDOPackage::NVList& nv,
const char* name);
427 bool isStringValue(
const SDOPackage::NVList& nv,
const char* name,
459 std::string
toString(
const SDOPackage::NVList& nv,
const char* name);
506 #else // ORB_IS_RTORB 509 #endif // ORB_IS_RTORB 534 void append(SDOPackage::NVList& dest,
const SDOPackage::NVList& src);
560 const SDOPackage::NameValue& nv);
561 std::ostream&
operator<<(std::ostream& os,
const SDOPackage::NameValue& nv);
586 std::ostream&
operator<<(std::ostream& os,
const SDOPackage::NVList& nvlist);
611 std::ostream&
dump(std::ostream& out,
const SDOPackage::NVList& nv);
627 void dump(
const SDOPackage::NVList& nv);
642 std::string
toString(
const SDOPackage::NVList& nv);
646 #endif // NVUTIL_NVUTIL_H SDOPackage::NameValue newNV(const char *name, Value value)
Create NameValue.
Definition: NVUtil.h:79
std::ostream & operator<<(std::ostream &os, const SDOPackage::NameValue &nv)
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.
SDOPackage::NameValue newNVBool(const char *name, const CORBA::Boolean value)
Create NameValue typed CORBA::Boolean.
std::ostream & dump_to_stream(std::ostream &out, const SDOPackage::NameValue &nv)
Print information configured in NameValue as string type.
const CORBA::Any & find(const SDOPackage::NVList &nv, const char *name)
Return the value specified by name from NVList.
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.
void append(SDOPackage::NVList &dest, const SDOPackage::NVList &src)
Append an element to NVList.
std::ostream & dump(std::ostream &out, const SDOPackage::NVList &nv)
Print information configured in NVList as string type.
coil::Properties toProperties(const SDOPackage::NVList &nv)
Transform NVList to the properties.
Class represents a set of properties.
Definition: Properties.h:101
SDOPackage::NameValue newNVChar(const char *name, const CORBA::Char value)
Create NameValue typed CORBA::Char.
Property list class (derived from Java Properties)
bool isStringValue(const SDOPackage::NVList &nv, const char *name, const char *value)
Check whether the value of specified name 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.