本文整理汇总了C++中ContainerNode::writeNewContainer方法的典型用法代码示例。如果您正苦于以下问题:C++ ContainerNode::writeNewContainer方法的具体用法?C++ ContainerNode::writeNewContainer怎么用?C++ ContainerNode::writeNewContainer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ContainerNode
的用法示例。
在下文中一共展示了ContainerNode::writeNewContainer方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: writeObject
void EpConfig::writeObject(ContainerNode &node) const throw(Error)
{
ContainerNode this_node = node.writeNewContainer("EpConfig");
NODE_WRITE_OBJ( this_node, uaConfig);
NODE_WRITE_OBJ( this_node, logConfig);
NODE_WRITE_OBJ( this_node, medConfig);
}
示例2: writeObject
void AccountMwiConfig::writeObject(ContainerNode &node) const throw(Error)
{
ContainerNode this_node = node.writeNewContainer("AccountMwiConfig");
NODE_WRITE_BOOL ( this_node, enabled);
NODE_WRITE_UNSIGNED( this_node, expirationSec);
}
示例3: writeObject
void BuddyConfig::writeObject(ContainerNode &node) const throw(Error)
{
ContainerNode this_node = node.writeNewContainer("BuddyConfig");
NODE_WRITE_STRING ( this_node, uri);
NODE_WRITE_BOOL ( this_node, subscribe);
}
示例4: writeObject
void ServoSettings::writeObject(ContainerNode &node) const throw(Error) {
ContainerNode this_node = node.writeNewContainer(string("ServoConfig_").append(Suffix));
NODE_WRITE_INT(this_node, _Calibration_Left);
NODE_WRITE_INT(this_node, _Calibration_Top);
NODE_WRITE_INT(this_node, _Calibration_Right);
}
示例5: writeQosParams
void writeQosParams( ContainerNode &node,
const pj_qos_params &qos) throw(Error)
{
ContainerNode this_node = node.writeNewContainer("qosParams");
NODE_WRITE_NUM_T( this_node, pj_uint8_t, qos.flags);
NODE_WRITE_NUM_T( this_node, pj_uint8_t, qos.dscp_val);
NODE_WRITE_NUM_T( this_node, pj_uint8_t, qos.so_prio);
NODE_WRITE_NUM_T( this_node, pj_qos_wmm_prio, qos.wmm_prio);
}
示例6: writeObject
void TransportConfig::writeObject(ContainerNode &node) const throw(Error)
{
ContainerNode this_node = node.writeNewContainer("TransportConfig");
NODE_WRITE_UNSIGNED ( this_node, port);
NODE_WRITE_UNSIGNED ( this_node, portRange);
NODE_WRITE_STRING ( this_node, publicAddress);
NODE_WRITE_STRING ( this_node, boundAddress);
NODE_WRITE_NUM_T ( this_node, pj_qos_type, qosType);
writeQosParams ( this_node, qosParams);
NODE_WRITE_OBJ ( this_node, tlsConfig);
}