本文整理汇总了C++中idataarray::Pointer::getClassVersion方法的典型用法代码示例。如果您正苦于以下问题:C++ Pointer::getClassVersion方法的具体用法?C++ Pointer::getClassVersion怎么用?C++ Pointer::getClassVersion使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类idataarray::Pointer
的用法示例。
在下文中一共展示了Pointer::getClassVersion方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: dcProxy
// -----------------------------------------------------------------------------
//
// -----------------------------------------------------------------------------
DataContainerArrayProxy::DataContainerArrayProxy(DataContainerArray* dca)
{
if(NULL == dca)
{
return;
}
QList<DataContainer::Pointer> containers = dca->getDataContainers();
for(int i = 0; i < containers.size(); i++) // Loop on each Data Container
{
DataContainer::Pointer container = containers.at(i);
DataContainerProxy dcProxy(container->getName(), Qt::Checked); // Create a new DataContainerProxy
// Now loop over each AttributeMatrix in the data container that was selected
DataContainer::AttributeMatrixMap_t attrMats = container->getAttributeMatrices();
QMapIterator<QString, AttributeMatrix::Pointer> iter(attrMats);
while(iter.hasNext())
{
iter.next();
QString amName = iter.key();
AttributeMatrix::Pointer attrMat = iter.value();
AttributeMatrixProxy amProxy(amName, Qt::Checked, attrMat->getType());
QList<QString> attrArrayNames = attrMat->getAttributeArrayNames();
QListIterator<QString> attrArrayNamesIter(attrArrayNames);
while(attrArrayNamesIter.hasNext())
{
QString aaName = attrArrayNamesIter.next();
QString daPath = container->getName() + "/" + amName + "/";
IDataArray::Pointer attrArray = attrMat->getAttributeArray(aaName);
DataArrayProxy daProxy(daPath, aaName, Qt::Checked, attrArray->getTypeAsString(), attrArray->getClassVersion() );
amProxy.dataArrays.insert(aaName, daProxy);
}
dcProxy.attributeMatricies.insert(amName, amProxy); // Add the new AttributeMatrix to the DataContainerProxy
}
dataContainers.insert(dcProxy.name, dcProxy);
}
}