当前位置: 首页>>代码示例>>C++>>正文


C++ CSVRow::getCell方法代码示例

本文整理汇总了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));
                    }
                }
            }
        }
    }
}
开发者ID:fzmse,项目名称:FZMSE_UI,代码行数:52,代码来源:gmcwriter.cpp

示例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));
            }
        }
    }

}
开发者ID:fzmse,项目名称:FZMSE_UI,代码行数:48,代码来源:gmcwriter.cpp


注:本文中的CSVRow::getCell方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。