本文整理汇总了C++中XmlAttributesHelper类的典型用法代码示例。如果您正苦于以下问题:C++ XmlAttributesHelper类的具体用法?C++ XmlAttributesHelper怎么用?C++ XmlAttributesHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了XmlAttributesHelper类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: attrs
void
CommunicatorDescriptorBuilder::addAdapter(const XmlAttributesHelper& attrs)
{
AdapterDescriptor desc;
desc.name = attrs("name");
if(attrs.contains("id"))
{
desc.id = attrs("id");
}
else
{
string fqn = "${server}";
if(ServiceDescriptorPtr::dynamicCast(_descriptor))
{
fqn += ".${service}";
}
desc.id = fqn + "." + desc.name;
}
desc.replicaGroupId = attrs("replica-group", "");
desc.priority = attrs("priority", "");
desc.registerProcess = attrs.asBool("register-process", false);
if(desc.id == "")
{
throw "empty `id' for adapter `" + desc.name + "'";
}
desc.serverLifetime = attrs.asBool("server-lifetime", true);
_descriptor->adapters.push_back(desc);
addProperty(_hiddenProperties, desc.name + ".Endpoints", attrs("endpoints", "default"));
if(attrs.contains("proxy-options"))
{
addProperty(_hiddenProperties, desc.name + ".ProxyOptions", attrs("proxy-options", ""));
}
}
开发者ID:hadoop835,项目名称:ice,代码行数:34,代码来源:DescriptorBuilder.cpp
示例2:
void
PropertySetDescriptorBuilder::addPropertySet(const XmlAttributesHelper& attrs)
{
if(attrs.contains("id") || !attrs.contains("refid"))
{
throw "only <properties refid=\"\"> can be a child of a <properties> element";
}
if(!_descriptor.properties.empty())
{
throw "<properties refid=\"\"> can't be defined after a <property> element";
}
_descriptor.references.push_back(attrs("refid"));
_inPropertySetRef = true;
}
开发者ID:hadoop835,项目名称:ice,代码行数:14,代码来源:DescriptorBuilder.cpp
示例3: attrs
void
ServerDescriptorBuilder::init(const ServerDescriptorPtr& desc, const XmlAttributesHelper& attrs)
{
CommunicatorDescriptorBuilder::init(desc, attrs);
_descriptor = desc;
_descriptor->id = attrs("id");
_descriptor->exe = attrs("exe");
_descriptor->activationTimeout = attrs("activation-timeout", "");
_descriptor->deactivationTimeout = attrs("deactivation-timeout", "");
_descriptor->pwd = attrs("pwd", "");
_descriptor->activation = attrs("activation", "manual");
_descriptor->applicationDistrib = attrs.asBool("application-distrib", true);
_descriptor->allocatable = attrs.asBool("allocatable", false);
_descriptor->user = attrs("user", "");
}
开发者ID:updowndown,项目名称:myffff,代码行数:15,代码来源:DescriptorBuilder.cpp
示例4: addProperty
void
CommunicatorDescriptorBuilder::addLog(const XmlAttributesHelper& attrs)
{
if(attrs.contains("property"))
{
addProperty(_hiddenProperties, attrs("property"), attrs("path"));
}
_descriptor->logs.push_back(attrs("path"));
}
开发者ID:hadoop835,项目名称:ice,代码行数:9,代码来源:DescriptorBuilder.cpp
注:本文中的XmlAttributesHelper类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论