本文整理汇总了C++中CSVRow::getCell方法的典型用法代码示例。如果您正苦于以下问题:C++ CSVRow::getCell方法的具体用法?C++ CSVRow::getCell怎么用?C++ CSVRow::getCell使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSVRow
的用法示例。
在下文中一共展示了CSVRow::getCell方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: applyGMCVariantForFDDOutdoor
void GMCWriter::applyGMCVariantForFDDOutdoor(FDDOutdoorTable * fdd, GMCDocument * doc, std::string hz )
{
// Find column
int columnIndex = -1;
CSVRow * hzRow = fdd->getParameterRowByName("dlChBw");
if ( hzRow == NULL )
return;
int cellsCount = hzRow->getCells().size();
for ( int i = 1; i < cellsCount; i ++ )
{
if ( hzRow->getCell(i) == hz )
{
columnIndex = i;
break;
}
}
if ( columnIndex == -1 )
return;
// Apply changes to LNCEL
vector<GMCManagedObject*> mocs = doc->getMocsByClassName("LNCEL");
for ( vector<GMCManagedObject*>::iterator it = mocs.begin(); it != mocs.end(); it ++ )
{
vector<CSVRow*> parameterRows = fdd->getParameterRows();
for ( vector<CSVRow*>::iterator itParRow = parameterRows.begin(); itParRow != parameterRows.end(); itParRow ++ )
{
GMCManagedObject * m = *it;
CSVRow * parRow = *itParRow;
GMCManagedObjectParameter * p = m->getParameterByName(parRow->getCell(3));
if ( p != NULL )
{
if ( parRow->getCell(3) != "earfcnDL" && parRow->getCell(3) != "earfcnUL" )
{
if ( parRow->getCell(1) != "" )
{
GMCManagedObjectParameter * compPar = m->getParameterByName(parRow->getCell(1));
if ( compPar != NULL )
modifyParameterComplexTypeFromSameGmc(doc, compPar, parRow->getCell(3), parRow->getCell(columnIndex));
}
else
{
if ( XmlElementReader::getName(p->getElement()) == "p" )
modifyParameterSimpleTypeFromSameGmc(doc, p, parRow->getCell(columnIndex));
}
}
}
}
}
}
示例2: applyGMCVariantForTDD
void GMCWriter::applyGMCVariantForTDD(TDDTable * tdd, GMCDocument * doc,
std::string type, std::string hz, std::string frameConf, std::string specSubfConf )
{
// Find column
int columnIndex = -1;
std::string cellType = type == "Indoor" ? "very_small" : "small";
CSVRow * cellTypeRow = tdd->getParameterRowByName("cellType");
CSVRow * hzRow = tdd->getParameterRowByName("chBw (MHz)");
CSVRow * frameConfRow = tdd->getParameterRowByName("tddFrameConf");
CSVRow * specSubfConfRow = tdd->getParameterRowByName("tddSpecSubfConf");
if ( cellTypeRow == NULL || hzRow == NULL || frameConfRow == NULL || specSubfConfRow == NULL )
return;
int cellsCount = cellTypeRow->getCells().size();
for ( int i = 1; i < cellsCount; i ++ )
{
if ( cellTypeRow->getCell(i) == cellType &&
hzRow->getCell(i) == hz &&
frameConfRow->getCell(i) == frameConf &&
specSubfConfRow->getCell(i) == specSubfConf)
{
columnIndex = i;
break;
}
}
if ( columnIndex == -1 )
return;
// Apply changes to LNCEL
vector<GMCManagedObject*> mocs = doc->getMocsByClassName("LNCEL");
for ( vector<GMCManagedObject*>::iterator it = mocs.begin(); it != mocs.end(); it ++ )
{
vector<CSVRow*> parameterRows = tdd->getParameterRows();
for ( vector<CSVRow*>::iterator itParRow = parameterRows.begin(); itParRow != parameterRows.end(); itParRow ++ )
{
GMCManagedObject * m = *it;
CSVRow * parRow = *itParRow;
GMCManagedObjectParameter * p = m->getParameterByName(parRow->getCell(0));
if ( p != NULL )
{
modifyParameterSimpleTypeFromSameGmc(doc, p, parRow->getCell(columnIndex));
}
}
}
}