本文整理汇总了C++中KeySet::getKeySet方法的典型用法代码示例。如果您正苦于以下问题:C++ KeySet::getKeySet方法的具体用法?C++ KeySet::getKeySet怎么用?C++ KeySet::getKeySet使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KeySet
的用法示例。
在下文中一共展示了KeySet::getKeySet方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: set
/**
* Set all keys below parentKey.
*
* If the keyname of the parentKey is invalid (e.g. empty) all keys will be set.
*
* @copydoc kdbSet
*
* @copydetails doxygenKDBReturn
*
* @param returned the keyset where the keys are passed to the user
* @param parentKey the parentKey of returned
*
* @throw KDBException if there were problems with the database
*/
inline int KDB::set (KeySet & returned, Key & parentKey)
{
int ret = ckdb::kdbSet(handle, returned.getKeySet(), parentKey.getKey());
if (ret == -1)
{
throw KDBException(parentKey);
}
return ret;
}
示例2: ksSysconf
std::vector<PluginSpec> PluginVariantDatabase::getPluginVariants (PluginSpec const & whichplugin) const
{
PluginPtr plugin = this->impl->modules.load (whichplugin);
KeySet ksSysconf (this->variantImpl->pluginconf);
KeySet ksGenconf;
// read plugin variants via genconf
try
{
auto funcGenconf = reinterpret_cast<void (*) (ckdb::KeySet *, ckdb::Key *)> (plugin->getSymbol ("genconf"));
funcGenconf (ksGenconf.getKeySet (), 0);
}
catch (kdb::tools::MissingSymbol & e)
{
// no genconf, but maybe sysconf variants
KeySet placeholder;
return this->getPluginVariantsFromSysconf (whichplugin, ksSysconf, placeholder);
}
// get plugin variants from genconf, but also consider sysconf for disable/override
return this->getPluginVariantsFromGenconf (whichplugin, ksGenconf, ksSysconf);
}
示例3: append
/**
* @brief append a keyset
*
* @param toAppend keyset to append
*
* @return number of keys in the keyset
*
* @copydoc ksAppend()
*/
inline ssize_t KeySet::append (KeySet const & toAppend)
{
return ckdb::ksAppend(ks, toAppend.getKeySet());
}