本文整理汇总了C++中Chain::getName方法的典型用法代码示例。如果您正苦于以下问题:C++ Chain::getName方法的具体用法?C++ Chain::getName怎么用?C++ Chain::getName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Chain
的用法示例。
在下文中一共展示了Chain::getName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getProtein
RESULT
CHECK(const Protein* getProtein() const throw())
Protein p1("X");
SecondaryStructure s1("s1");
p1.append(s1);
const Protein p2(p1);
TEST_EQUAL(s1.getProtein()->getName(), "X")
RESULT
CHECK(Chain* getChain() throw())
Chain c1;
SecondaryStructure s1("s1");
c1.append(s1);
s1.getChain()->setName("X");
TEST_EQUAL(c1.getName(), "X")
RESULT
CHECK(const Chain* getChain() const throw())
Chain c1("X");
SecondaryStructure s1("s1");
c1.append(s1);
const Chain p2(c1);
TEST_EQUAL(s1.getChain()->getName(), "X")
RESULT
CHECK(Residue* getResidue(Position position) throw())
SecondaryStructure s1("s1");
TEST_EQUAL(s1.getResidue(0), 0)
Residue r1("X");
s1.insert(r1);
示例2: getValue
bool ChainNode::getValue (const String& strMemberName, String& strValue)
{
bool bValueSet = false;
Chain* pObject = dynamic_cast<Chain*>(m_pObject);
if (strMemberName == L"value")
{
ValueObject* pValueObj = dynamic_cast<ValueObject*>(m_pObject);
if (pValueObj)
{
if (!pValueObj->isNothing())
{
strValue = pValueObj->toString();
bValueSet = true;
}
}
}
else if (strMemberName == L"Name")
{
if (pObject->hasValue_Name())
{
strValue = (StringObjectImpl(pObject->getName())).toString();
bValueSet = true;
}
}
else if (strMemberName == L"Desc")
{
if (pObject->hasValue_Desc())
{
strValue = (StringObjectImpl(pObject->getDesc())).toString();
bValueSet = true;
}
}
else if (strMemberName == L"Code")
{
if (pObject->hasValue_Code())
{
strValue = (StringObjectImpl(pObject->getCode())).toString();
bValueSet = true;
}
}
else if (strMemberName == L"State")
{
if (pObject->hasValue_State())
{
strValue = (EnumStateTypeImpl(pObject->getState())).toString();
bValueSet = true;
}
}
else if (strMemberName == L"PointGeometry")
{
if (pObject->hasValue_PointGeometry())
{
strValue = (EnumPointGeometryTypeImpl(pObject->getPointGeometry())).toString();
bValueSet = true;
}
}
else if (strMemberName == L"DTMAttribute")
{
if (pObject->hasValue_DTMAttribute())
{
strValue = (EnumDTMAttributeTypeImpl(pObject->getDTMAttribute())).toString();
bValueSet = true;
}
}
else if (strMemberName == L"TimeStamp")
{
if (pObject->hasValue_TimeStamp())
{
strValue = (StringObjectImpl(pObject->getTimeStamp())).toString();
bValueSet = true;
}
}
else if (strMemberName == L"Role")
{
if (pObject->hasValue_Role())
{
strValue = (EnumSurveyRoleTypeImpl(pObject->getRole())).toString();
bValueSet = true;
}
}
else if (strMemberName == L"Station")
{
if (pObject->hasValue_Station())
{
strValue = (DoubleObjectImpl(pObject->getStation())).toString();
bValueSet = true;
}
}
else if (strMemberName == L"Zone")
{
if (pObject->hasValue_Zone())
{
strValue = (StringObjectImpl(pObject->getZone())).toString();
bValueSet = true;
}
}
else if (strMemberName == L"Status")
{
if (pObject->hasValue_Status())
{
//.........这里部分代码省略.........