本文整理汇总了C++中Param::getName方法的典型用法代码示例。如果您正苦于以下问题:C++ Param::getName方法的具体用法?C++ Param::getName怎么用?C++ Param::getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Param
的用法示例。
在下文中一共展示了Param::getName方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: addByteBufferWrapper
void WRAPPEDPARAM::addByteBufferWrapper(const Param& buffer,
vector& wrappedParams,
PackageList& packageList)
{
new WrappedParam("$Buffer", buffer.getName(), wrappedParams, NULL,
packageList);
new WrappedParam("$Size", buffer.getName(), wrappedParams, NULL,
packageList);
}
示例2: addByteBufferWrapperWithOffset
void WRAPPEDPARAM::addByteBufferWrapperWithOffset(const Param& buffer,
vector& wrappedParams,
PackageList& packageList)
{
new WrappedParam("$BufferWithOffset", buffer.getName(), wrappedParams, NULL,
packageList);
new WrappedParam("$BufferOffset", buffer.getName(), wrappedParams, NULL,
packageList);
new WrappedParam("$BufferLength", buffer.getName(), wrappedParams, NULL,
packageList);
}
示例3: addDirectWrapper
void WRAPPEDPARAM::addDirectWrapper(const Param& param,
const Type* paramType,
vector& wrappedParams,
PackageList& packageList)
{
new WrappedParam(paramType->getBaseJavaName(), param.getName(),
wrappedParams, paramType, packageList);
}
示例4: setWay
void Comments::setWay(string way,string paramName)
{
Param *current;
for(int i = 0;i<_fctParameters.size();i++) {
current = _fctParameters[i];
if(current->getName()==paramName)
current->setWay(getWay(way)); // Uses getWay() function from Way.cpp
}
}
示例5: process
short SetParam::process(SqlciEnv * sqlci_env)
{
if (get_arglen() == -1)
{
// set param to null value
Param * param = sqlci_env->get_paramlist()->get(param_name);
if (param)
param->makeNull();
else
{
param = new Param(param_name, (char*)0);
sqlci_env->get_paramlist()->append(param);
param->makeNull();
}
}
else
if (!get_argument())
{
/* RESET PARAM command */
if (!param_name)
{
/* RESET all params */
Param * param = sqlci_env->get_paramlist()->getFirst();
while (param)
{
sqlci_env->get_paramlist()->remove(param->getName());
delete param;
param = sqlci_env->get_paramlist()->getNext();
}
}
else
{
Param * param = sqlci_env->get_paramlist()->get(param_name);
sqlci_env->get_paramlist()->remove(param_name);
delete param;
}
}
else
{
/* SET PARAM command */
Param * param = sqlci_env->get_paramlist()->get(param_name);
if (param) {
param->setValue(this);
} else
{
param = new Param(param_name, this);
sqlci_env->get_paramlist()->append(param);
}
}
return 0;
}
示例6: addStructureWrapper
void WRAPPEDPARAM::addStructureWrapper(
const Param& structure,
const Type* currentType,
vector& wrappedParams,
PackageList& packageList)
{
addDirectWrapper(structure, currentType, wrappedParams,
packageList);
new WrappedParam(
"$StructureSize",
structure.getName(),
wrappedParams,
NULL,
packageList);
}
示例7: copyParam
Param::Param(const Param &other)
: m_childNodes()
, m_parentNode(nullptr)
, m_name(other.getName())
, m_data(other.asStdString(""))
{
// Loop through other and recreate the param tree (Depth first)
std::function<void(Param&, const Param&)> copyParam = [&](Param &parent, const Param &oParam)
{
for(const auto &child : oParam.m_childNodes)
{
Param& newNode = parent.push(child.second.get()->getName());
copyParam(newNode, *child.second.get());
}
parent.m_data = oParam.asStdString();
parent.m_name = oParam.getName();
};
copyParam(*this, other);
}
示例8: reset_pattern
short Reset::reset_pattern(SqlciEnv * sqlci_env)
{
if (!get_argument())
{
/* RESET all patterns */
Param * pattern = sqlci_env->get_patternlist()->getFirst();
while (pattern)
{
sqlci_env->get_patternlist()->remove(pattern->getName());
pattern = sqlci_env->get_patternlist()->getNext();
}
}
else
{
Param * pattern = sqlci_env->get_patternlist()->get(get_argument());
if (pattern)
{
sqlci_env->get_patternlist()->remove(get_argument());
}
}
return 0;
}