本文整理汇总了C++中StringAttr::isEmpty方法的典型用法代码示例。如果您正苦于以下问题:C++ StringAttr::isEmpty方法的具体用法?C++ StringAttr::isEmpty怎么用?C++ StringAttr::isEmpty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类StringAttr
的用法示例。
在下文中一共展示了StringAttr::isEmpty方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: finalizeOptions
virtual bool finalizeOptions(IProperties *globals)
{
if (!optVersionStr.isEmpty())
{
optVersion = atof( optVersionStr.get() );
if( optVersion <= 0 )
{
throw MakeStringException( 0, "Version option must be followed by a real number > 0" );
}
}
else
{
fprintf(stderr, "\nWARNING: ESDL Version not specified.\n");
}
if (optSource.isEmpty())
throw MakeStringException( 0, "Source ESDL XML definition file must be provided" );
if (optService.isEmpty())
throw MakeStringException( 0, "Name of ESDL based service must be provided" );
if (optWSProcAddress.isEmpty())
throw MakeStringException( 0, "Server address of ESDL process server must be provided" );
if (optWSProcPort.isEmpty())
throw MakeStringException( 0, "Port on which ESDL process is listening must be provided" );
return true;
}
示例2: finalizeOptions
virtual bool finalizeOptions(IProperties *globals)
{
if (optWSProcAddress.isEmpty())
throw MakeStringException( 0, "Server address of WsESDLConfig process server must be provided" );
if (optWSProcPort.isEmpty())
throw MakeStringException( 0, "Port on which WsESDLConfig is listening must be provided" );
return true;
}
示例3: validate
bool CPackageNode::validate(StringArray &warn, StringArray &err) const
{
if (!node)
return true;
StringAttr packageId = node->queryProp("@id");
if (packageId.isEmpty())
err.append("Package has no id attribute");
Owned<IPropertyTreeIterator> files = node->getElements("SuperFile");
ForEach(*files)
{
IPropertyTree &super = files->query();
StringAttr superId = super.queryProp("@id");
if (superId.isEmpty())
err.append("SuperFile has no id attribute");
if (!super.hasProp("SubFile"))
{
VStringBuffer msg("Package['%s']/SuperFile['%s'] has no SubFiles defined", packageId.str(), superId.str());
warn.append(msg.str());
}
}
return true;
}
示例4: setPMID
void setPMID(const char *_target, const char *name, bool globalScope)
{
if (!name || !*name)
throw MakeStringExceptionDirect(PKG_MISSING_PARAM, "PackageMap name parameter required");
if (!globalScope)
{
target.set(_target);
if (target.isEmpty())
throw MakeStringExceptionDirect(PKG_MISSING_PARAM, "Target cluster parameter required");
ensureClusterInfo();
pmid.append(target).append("::");
}
pmid.append(name);
pmid.toLowerCase();
}
示例5: init
void init()
{
StringBuffer xpath("Software/ThorCluster[@name=\"");
xpath.append(clusterName).append("\"]");
Owned<IRemoteConnection> conn = querySDS().connect("/Environment", myProcessSession(), RTM_LOCK_READ, SDS_LOCK_TIMEOUT);
environment.setown(createPTreeFromIPT(conn->queryRoot()));
options = environment->queryPropTree(xpath.str());
if (!options)
throwUnexpected();
groupName.set(options->queryProp("@nodeGroup"));
if (groupName.isEmpty())
groupName.set(options->queryProp("@name"));
VStringBuffer spareS("%s_spares", groupName.get());
spareGroupName.set(spareS);
group.setown(queryNamedGroupStore().lookup(groupName));
spareGroup.setown(queryNamedGroupStore().lookup(spareGroupName));
}